Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO]ActionsMsg on NPC


Dzastin
 Share

Recommended Posts

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

Serverside, in modCombat, under sub CanPlayerAttackNpc

Find:
```
                        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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...