How can I make a dead player inside a map automatically warp out from the said map. I know when mapflag GVG is on. but I don't want to be the map a pk-map. Just where when the player is killed he/she will be warped out on the map immediately.. TY
prontera,160,181,4 script Run Or Die 100,{
if ( getarraysize($@pb_aidlist) >= 100 ) {
mes "I'm sorry, the room is full";
close;
}
percentheal 100, 100;
warp "guild_vs5", 0, 0;
set $@pb_aidlist[ getarraysize($@pb_aidlist) ], getcharid(3);
end;
}
- script runordie -1,{
OnInit:
disablenpc "Run Or Die";
end;
OnWhisperGlobal:
if ( getgmlevel() < 99 ) end;
OnClock0150: // these are time to start event
OnClock0450:
OnClock0750:
OnClock1050:
OnClock1350:
OnClock1650:
OnClock1950:
OnClock2250:
if(agitcheck() == 1) end;
announce "Run Or Die!!!: Are you ready to join Run Or Die event???", 0;
enablenpc "Run Or Die";
mapwarp "guild_vs5", "prontera", 148,172;
sleep 4000;
announce "Run Or Die: For Those who dare to join please '@warp prontera 158 181' to participate.", 0;
sleep 6000;
announce "Run Or Die: Registration will be closed after 1 minute.", 0;
sleep 20000;
announce "Run Or Die: Last 30 second.", 0;
sleep 10000;
announce "Run Or Die: Rush type in '@warp prontera 158 181' to join.", 0;
sleep 10000;
announce "Run Or Die: Last 10 second to register.", 0;
sleep 5000;
announce "Run Or Die: 5", 0;
sleep 1000;
announce "Run Or Die: 4", 0;
sleep 1000;
announce "Run Or Die: 3", 0;
sleep 1000;
announce "Run Or Die: 2", 0;
sleep 1000;
announce "Run Or Die: 1", 0;
sleep 1000;
announce "Run Or Die: Time is up...I will come again 3 hour later..", 0;
disablenpc "Run Or Die";
mapannounce "guild_vs5", "Welcome to Run Or Die event.", 0;
sleep 3000;
mapannounce "guild_vs5", "This is an easy event.", 0;
sleep 3000;
mapannounce "guild_vs5", "Just stay AWAY from anything that you think its DANGEROUS!!", 0;
sleep 3000;
mapannounce "guild_vs5", "Stay alive as long as YOU CAN!!!!", 0;
sleep 3000;
mapannounce "guild_vs5", "The LAST SURVIVOR will be the WINNER.", 0;
sleep 3000;
mapannounce "guild_vs5", "event will start in 3", 0;
sleep 1000;
mapannounce "guild_vs5", "2...", 0;
sleep 1000;
mapannounce "guild_vs5", "1...", 0;
sleep 1000;
mapannounce "guild_vs5", "Its time to run !!", 0;
initnpctimer;
set .stop, 0;
while (1) {
monster "guild_vs5", 0,0, "Come On Baby!!!", 1904, 5 + .@extra;
sleep 5000;
if ( .stop ) end;
set .@extra, .@extra + rand(1,5);
set .@round, .@round +1;
}
end;
OnTimer500:
stopnpctimer;
while ( getarraysize($@pb_aidlist) > 1 ) {
sleep 500;
for ( set .@i, 0; .@i < getarraysize($@pb_aidlist); set .@i, .@i +1 ) {
if ( isloggedin(.aidlist[.@i] == 0 ) ) {
deletearray $@pb_aidlist[.@i], 1;
set .@i, .@i -1;
}
else {
attachrid $@pb_aidlist[.@i];
if ( strcharinfo(3) != "guild_vs5" || hp == 0 ) {
deletearray $@pb_aidlist[.@i], 1;
set .@i, .@i -1;
}
}
}
}
detachrid;
set .stop, 1;
killmonsterall "guild_vs5";
if ( getarraysize($@pb_aidlist) == 1 ) {
announce "Congratulations! The winner is "+ rid2name($@pb_aidlist), 0;
sleep 5000;
announce rid2name($@pb_aidlist) +" Won 2 TCG", 0;
attachrid $@pb_aidlist;
getitem 7227, 2; // winner prize
warp "prontera", 148,172;
deletearray $@pb_aidlist;
}
else {
announce "Congratulations! Nobody won, too bad", 0;
}
end;
}
guild_vs5 mapflag nowarp
guild_vs5 mapflag nowarpto
guild_vs5 mapflag noteleport
guild_vs5 mapflag noskill
guild_vs5 mapflag nomemo
guild_vs5 mapflag gvg
guild_vs5 mapflag pvp off
Question
Meister
How can I make a dead player inside a map automatically warp out from the said map. I know when mapflag GVG is on. but I don't want to be the map a pk-map. Just where when the player is killed he/she will be warped out on the map immediately.. TY
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.