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.
_________________
http://www.blackages.com.brDave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.