Hello, i find a script in google that is suposed to warp the players out of the castle if they are not baby
i teste in my test server and i had no errors, but in my test server nothing happens when i go into the castle, here is the script
script babywoe -1,{
//setarray .Mapas$[0],"prtg_cas01","prtg_cas02","prtg_cas03";
OnInit:
setarray .IdBaby[0],23,4046,4023,4024,4025,4026,4027,4028,4029,4030,4031,4032,4033,4034,4035,4036,4037,4038,4039,4040,4041,40422,4043,4044,4045;
setarray .Maps$[0],"gefg_cas04","aldeg_cas04";
end;
OnPCLoadMapEvent:
for (set .@c, 0; .@c < getarraysize(.Maps$); set .@c, .@c + 1)
if (.Maps$[.@c] != strcharinfo(3)) end;
for( set .@i, 0; .@i < getarraysize(.IdBaby); set .@i, .@i + 1 )
if(class ==.IdBaby[.@i]) end;
warp "celerian",33,73;// just a custom map 'Celerian'
dispbottom "Only Baby Class is allowed to enter.";
end;
} // End Script
aldeg_cas04 mapflag loadevent
gefg_cas04 mapflag loadevent
i would like to now how to kae it work ):
thanks in advance o:!