Dzastin Posted March 13, 2011 Author Share Posted March 13, 2011 Hi, how rewrite this code :```SendActionMsg GetPlayerMap(index), message, Yellow, ACTIONMSG_STATIC, GetPlayerX(index) * 32, (GetPlayerY(index) * 32) - 50```to show actionmsg message on NPC over his head when he says something…?Thanks! Link to comment Share on other sites More sharing options...
zdearborn Posted March 13, 2011 Share Posted March 13, 2011 Serverside, in modCombat, under sub CanPlayerAttackNpcFind:``` If Len(Trim$(Npc(npcNum).AttackSay)) > 0 Then playerMsg attacker, Trim$(Npc(npcNum).Name) & ": " & Trim$(Npc(npcNum).AttackSay), White End If```change to:``` If Len(Trim$(Npc(npcNum).AttackSay)) > 0 Then SendActionMsg mapNum, Trim$(Npc(npcNum).Name) & ": " & Trim$(Npc(npcNum).AttackSay), Yellow, ACTIONMSG_STATIC, MapNpc(mapNum).Npc(mapNpcNum).x * 32, (MapNpc(mapNum).Npc(mapNpcNum).y * 32) - 50 playerMsg attacker, Trim$(Npc(npcNum).Name) & ": " & Trim$(Npc(npcNum).AttackSay), White End If``` Link to comment Share on other sites More sharing options...
Dzastin Posted March 13, 2011 Author Share Posted March 13, 2011 Thanks, just how to make it to the NPC who attack us? Link to comment Share on other sites More sharing options...
Dzastin Posted March 13, 2011 Author Share Posted March 13, 2011 This don't work in Attackonsight NPC!Help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now