Hello guys i made this hide on and off npc script, it works fine. but i need to inside mapwarp to the script, so when the event is done. all players in the map will be teleported. can anyone help me?
- script diatrigger -1,{
OnInit:
disablenpc "Diamond Tower#diaroom";
bindatcmd "diatower", strnpcinfo(0)+"::OnCommand",99,100;
end;
OnCommand:
if ( compare( .@atcmd_parameters$, "on" ) ) goto Ondiatrigger;
else {
dispbottom "type - '@diatower on' to start the dia tower";
}
end;
end;
OnClock0300:
OnClock0600:
OnClock0900:
Ondiatrigger:
if(agitcheck() == 1) end;
enablenpc "Diamond Tower#diaroom";
announce "Diagate Keeper: Diamond Tower is NOW OPEN! ",bc_all,0xFFFF00;
sleep 1000;
announce "Diagate Keeper: For those who want to hunt ORES for Safe refine, now is the time!",bc_all,0xFFFF00;
sleep 1000;
announce "Diagate Keeper: Diamont Tower would be open for 1 Hour!",bc_all,0xFFFF00;
sleep 30000;
announce "Diagate Keeper: Diamond Tower is NOW OPEN!",bc_all,0xFFFF00;
sleep 30000;
announce "Diagate Keeper: Diamond Tower will only be open for 1 Hour every 4hrs.",bc_all,0xFFFF00;
sleep ( 60 * 60000 ); // How long before hide again.
announce "Diagate Keeper: Diamond Tower is now close, Dia Tower will be open after 4hrs.",bc_all,0xFFFF00;
disablenpc "Diamond Tower#diaroom";
end;
}
Question
BabaVoss
Hello guys i made this hide on and off npc script, it works fine. but i need to inside mapwarp to the script, so when the event is done. all players in the map will be teleported. can anyone help me?
- script diatrigger -1,{ OnInit: disablenpc "Diamond Tower#diaroom"; bindatcmd "diatower", strnpcinfo(0)+"::OnCommand",99,100; end; OnCommand: if ( compare( .@atcmd_parameters$, "on" ) ) goto Ondiatrigger; else { dispbottom "type - '@diatower on' to start the dia tower"; } end; end; OnClock0300: OnClock0600: OnClock0900: Ondiatrigger: if(agitcheck() == 1) end; enablenpc "Diamond Tower#diaroom"; announce "Diagate Keeper: Diamond Tower is NOW OPEN! ",bc_all,0xFFFF00; sleep 1000; announce "Diagate Keeper: For those who want to hunt ORES for Safe refine, now is the time!",bc_all,0xFFFF00; sleep 1000; announce "Diagate Keeper: Diamont Tower would be open for 1 Hour!",bc_all,0xFFFF00; sleep 30000; announce "Diagate Keeper: Diamond Tower is NOW OPEN!",bc_all,0xFFFF00; sleep 30000; announce "Diagate Keeper: Diamond Tower will only be open for 1 Hour every 4hrs.",bc_all,0xFFFF00; sleep ( 60 * 60000 ); // How long before hide again. announce "Diagate Keeper: Diamond Tower is now close, Dia Tower will be open after 4hrs.",bc_all,0xFFFF00; disablenpc "Diamond Tower#diaroom"; end; }
Link to comment
Share on other sites
1 answer 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.