Script activated once player warped to a map

dfabsgwapings

New member
Messages
165
Points
0
Github
dfabsgwapings
How can i make it work guys. Is it possible that once a player warped inside a map it will activate a script like for example if a player warped in prontera script that will activate will be mapanounce "prontera","hello "+strcharinfo(0)+".",0;

Thanks everyone.

 
Code:
header: {
OnPCLoadMapEvent:
if( strcharinfo(3) == "prontera" )
    announce "Hello, " + strcharinfo(0), bc_self; // self-announce
end;
}

prontera[tab]mapflag[tab]loadevent
Code:
OnPCLoadMapEvent:

This special label will trigger once a player steps in a map marked with 
the 'loadevent' mapflag and attach its RID. The fact that this label 
requires a mapflag for it to work is because, otherwise, it'd be 
server-wide and trigger every time a player would change maps. Imagine the 
server load with 1,000 players (oh the pain...)

Only the special labels which are not associated with any script command 
are listed here. There are other kinds of labels which may be triggered in 
a similar manner, but they are described with their associated commands.
 
Last edited by a moderator:
@@Kubix

thanks its working.. I already saw that OnPCLoadMapEvent in script_commands.txt but its not working, my mistake is I didn't put prontera[tab]mapflag[tab]loadevent. But now its perfectly working the way I like it. 

 
Back
Top