Hello. Could you help me with my script? Why does it work only for chars with gm level higher than 0?
Whenever I warped in pvp_2vs2 using my gm account. The script works well.
BUT, when I use a normal char the script stops. It doesn't trigger the timer script.
When I use GM Account, everytime I switched headgear (upper,mid,or low) it always trigger
the script on the timer.
But, when using Normal Account, the scripts in the "OnTimer500:" are not triggered.
Any help please? Thanks!
- script autochange -1,{
OnPCLoadMapEvent:
getmapxy(.@map$,.@x,.@y,0);
if(.@map$=="pvp_2vs2") {
set .@equip_top, getequipid(1);
set .@equip_mid, getequipid(9);
set .@equip_low, getequipid(10);
atcommand "@changelook 1 0";
atcommand "@changelook 2 0";
atcommand "@changelook 3 0";
attachnpctimer ""+strcharinfo(0)+"";
initnpctimer;
end;
} else {
end;
}
OnTimer500:
if( .@equip_top != getequipid(1) ) {
set .@equip_top, getequipid(1);
atcommand "@changelook 1 0";
}
if( .@equip_mid != getequipid(9) ) {
set .@equip_mid, getequipid(9);
atcommand "@changelook 2 0";
}
if( .@equip_low != getequipid(10) ) {
set .@equip_low, getequipid(10);
atcommand "@changelook 3 0";
}
stopnpctimer;
initnpctimer;
end;
OnPCLogoutEvent:
//if (getgmlevel() > 0) end;
getmapxy(.@map$,.@x,.@y,0);
if(.@map$=="pvp_2vs2") {
stopnpctimer;
end;
}
}
pvp_2vs2 mapflag loadevent