Jump to content
  • 0

OnPCLoadMapEvent runs multiple times


Jethro

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  05/09/12
  • Last Seen:  

OnPCLoadMapEvent:
    getmapxy @map$,@x,@y,0;
    if(@map$ == "guild_vs1") {
        announce strcharinfo(0) +" has entered GvG 1",bc_all,0x9B30FF;
    }

end;

Result:

Player1 has entered GvG 1
Player1 has entered GvG 1
Player1 has entered GvG 1
Player1 has entered GvG 1
Player1 has entered GvG 1
Player1 has entered GvG 1
Player1 has entered GvG 1
Player1 has entered GvG 1
Player1 has entered GvG 1
Player1 has entered GvG 1
Player1 has entered GvG 1

 

yup, it announce 11 times.

what could be the cause? thanks!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  05/09/12
  • Last Seen:  

answered my own question, it was the duplicate causing the repeat

 

prontera,142,182,4    duplicate(pvpw)    PVP Warper#pw1    540
morocc,162,102,4    duplicate(pvpw)    PVP Warper#pw2    540
geffen,121,55,8    duplicate(pvpw)    PVP Warper#pw3    540
payon,179,220,4    duplicate(pvpw)    PVP Warper#pw4    540
alberta,109,67,4    duplicate(pvpw)    PVP Warper#pw5    540
izlude,141,142,5    duplicate(pvpw)    PVP Warper#pw6    540
aldebaran,146,113,6    duplicate(pvpw)    PVP Warper#pw7    540
amatsu,102,153,6    duplicate(pvpw)    PVP Warper#pw8    540
moscovia,216,188,6    duplicate(pvpw)    PVP Warper#pw9    540
ayothaya,155,118,6    duplicate(pvpw)    PVP Warper#pw10    540

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...