So I'm trying to write a condition where if your character is not on one of these maps:
// Town Definitions
setarray .@mapname$[0],"prontera","morocc","geffen","payon","alberta","izlude","aldebaran","xmas","comodo","yuno","amatsu","gonryun","umbala","niflheim","louyang","lunette","in_moc_16","jawaii","ayothaya","einbroch","lighthalzen","einbech","hugel","rachel","veins","moscovia","schenberg";
you will be undisguised:
OnPCLoadMapEvent:
for(set .@i,0; .@i < getarraysize(.@mapname$); set .@i,.@i+1) {
if( "+.@mapname$[.@i]+" == strcharinfo(3))
set .@a,1;
if(!.@a) {
undisguise;
end;
}
As written, it's not quite confirming that you are not on the maps in the array. What am I doing wrong?
Question
Mumbles
So I'm trying to write a condition where if your character is not on one of these maps:
you will be undisguised:
As written, it's not quite confirming that you are not on the maps in the array. What am I doing wrong?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.