showevent appear on all loadevent mapflag

Javanese

New member
Messages
46
Points
0
Hello there,

I use showevent on some npc on different map.

showevent QTYPE_QUEST,1;
The problem is, all the mark on map(from all npc that use it) are shown on all map that use mapflag loadevent. Even though i put the

OnPCLoadMapEvent:
 showevent QTYPE_QUEST,1;
 end;
at different npc.

I am using client 2013-06-05

any help would be appreciate, thank you.

 
Because the label is executed on all maps when player enters, if you want an exclusive map you have to add an codition like

Code:
OnPCLoadMapEvent:if (strcharinfo(3) == strnpcinfo(4))    showevent QTYPE_QUEST,1;end;
 
Last edited by a moderator:
Because the label is executed on all maps when player enters, if you want an exclusive map you have to add an codition like

OnPCLoadMapEvent:if (strcharinfo(3) == strnpcinfo(4)) showevent QTYPE_QUEST,1;end;
I see, it worked dude. thank you very much
default_wink.png


 
Back
Top