Jump to content
  • 0
Sign in to follow this  
heroji

OnPCLoadMapEvent: Problem

Question

Hello i have a problem with OnPCLoadMapEvent: works only at prontera, when i try to go to the other cities is not working..


-	script	sadas	-1,{
OnPCLoadMapEvent:
mes "hi";
end;
}

also OnPCLoginEvent: is not working in other cities...

please help, thank you.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi.

 

From doc/script_commands.txt:

Quote

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...)

You have to enable this event for all maps you need.

 

OnPCLoginEvent works fine for me.

 

 

~Kenpachi

Share this post


Link to post
Share on other sites
  • 0

adding the 'loadevent' mapflag didn't work..

-	script	sadas	-1,{
OnPCLoadMapEvent:
mes "hi";
end;
}
izlude	mapflag	loadevent

But somehow reinstalling the open_server folder solved it..also OnPCLoginEvent works fine now but i lost all the database..

i'm using @anacondaq Guide RO server.

Do you why is this happening sir @Kenpachi?

Thank you

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.