17-12-2006, 01:33 AM
Ok I pretty much have it but I just have some trouble... right now I have it open a form and say the attacksay and the npcs name. How its set now it only does it when you attack an agressive NPC.
I tried on a friendly one but it says I cant hurt it and wont bring it up. I tried to set it if FRIENDLY then to do it but some reason its not working.
On the Server in modGameLogic I have this in the AttackNPC sub
Thats when it used to call AttackSay but I made it open the chatbox and so on.
Anyways where should I place the code or whatever to get it to do it when I try to attack a Friendly Target... that way it wont bring up a chat when you attack a monster and only when its friendly.
Thanks
I tried on a friendly one but it says I cant hurt it and wont bring it up. I tried to set it if FRIENDLY then to do it but some reason its not working.
On the Server in modGameLogic I have this in the AttackNPC sub
Code:
' Check if we should send a message
If MapNpc(MapNum, MapNpcNum).Target = 0 And MapNpc(MapNum, MapNpcNum).Target Attacker Then
If Trim(Npc(NpcNum).AttackSay) "" Then
Call NPCTalk(Attacker, Trim(Npc(NpcNum).Name), Trim(Npc(NpcNum).AttackSay), SayColor)
End If
End If
Thats when it used to call AttackSay but I made it open the chatbox and so on.
Anyways where should I place the code or whatever to get it to do it when I try to attack a Friendly Target... that way it wont bring up a chat when you attack a monster and only when its friendly.
Thanks