Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC Vs. NPC
#4
Code:
Type MapNpcRec
    Num As Integer
    
    Target As Integer
    
    HP As Long
    MP As Long
    SP As Long
        
    x As Byte
    y As Byte
    Dir As Integer
    
    ' For server use only
    SpawnWait As Long
    AttackTimer As Long
End Type
Npcs can attack only other players by now.
First you need to be able to specify if you are attacking a Player or an other NPC. Do this the same way players do it, adding the "TargetType As Byte" to the npc's type.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)