17-12-2006, 03:34 AM
Author: Izzy545
Difficulty: 1/5
:: SERVER SIDE ::
In sub CanAttackNpc, under "' Make sure they are on the same map", in the select case statement, for all directions replace:With:Remember to replace the code for all directions, i.e: Case DIR_UP, Case DIR_DOWN, etc.
Difficulty: 1/5
:: SERVER SIDE ::
In sub CanAttackNpc, under "' Make sure they are on the same map", in the select case statement, for all directions replace:
Code:
If Npc(NpcNum).Behavior NPC_BEHAVIOR_FRIENDLY And Npc(NpcNum).Behavior NPC_BEHAVIOR_SHOPKEEPER Then
CanAttackNpc = True
Else
Call PlayerMsg(Attacker, "You cannot attack a " & Trim(Npc(NpcNum).Name) & "!", BrightBlue)
End If
Code:
If Npc(NpcNum).Behavior NPC_BEHAVIOR_FRIENDLY And Npc(NpcNum).Behavior NPC_BEHAVIOR_SHOPKEEPER Then
CanAttackNpc = True
Else
Call PlayerMsg(Attacker, Trim(Npc(NpcNum).Name) & " says: '" & Trim(Npc(NpcNum).AttackSay) & "'", BrightBlue)
End If