Thanks Emistry. but, could you modify my script? I don't know where to put it in my script.
EDIT:
I came up with this script, but it doesn't work. would anyone help me with this? Thanks!
- script autochange -1,{
OnPCLoadMapEvent:
if (getgmlevel() > 0) end;
getmapxy(.@map$,.@x,.@y,0);
if(.@map$=="pvp_c_room") {
set .@equip_top, getequipid(EQI_HEAD_TOP);
set .@equip_mid, getequipid(EQI_HEAD_MID);
set .@equip_bot, getequipid(EQI_HEAD_LOW);
attachnpctimer ""+strcharinfo(0)+"";
goto a_timer;
}
end;
a_timer:
initnpctimer;
end;
OnTimer1000:
end;
OnTimer1100:
if( .@equip_top != getequipid(EQI_HEAD_TOP) ) {
set .@equip_top, getequipid(EQI_HEAD_TOP);
atcommand "@changelook 1 0";
goto a_timer;
stopnpctimer;
end;
}
if( .@equip_mid != getequipid(EQI_HEAD_MID) ) {
set .@equip_mid, getequipid(EQI_HEAD_MID);
atcommand "@changelook 2 0";
goto a_timer;
stopnpctimer;
end;
}
if( .@equip_bot != getequipid(EQI_HEAD_LOW) ) {
set .@equip_bot, getequipid(EQI_HEAD_LOW);
atcommand "@changelook 3 0";
goto a_timer;
stopnpctimer;
end;
} else {
goto a_timer;
stopnpctimer;
end;
}
OnPCDieEvent:
getmapxy(.@map$,.@x,.@y,0);
if(.@map$=="pvp_c_room") stopnpctimer;
end;
OnPCLogoutEvent:
getmapxy(.@map$,.@x,.@y,0);
if(.@map$=="pvp_c_room") stopnpctimer;
end;
}