Would anyone be so kind to help me with this timer script?
Emistry gave this and it seemed to work at first. If I had a party of 3 on the mentioned map everything went fine and no one got warped out. However, if I partied up and warped with NPC (to another map) before 30 seconds have passed, the timer continued and (even the party of => 3) are being warped back to their savepoint, while they're at the map they're suppose to be at.
I've tested this script with a party of 3. Does anyone know what the cause can be of my problem?
Perhaps I should add a enablenpc trigger on the warper after 30 seconds so they can't warp before then? I'm not really sure what other options there are for this.
This is the script;
//- script Sample -1,{
OnInit:
set .map$,"job3_arch01";
set .min_party,3;
set .delay_second,30;
setmapflag .map$,mf_loadevent;
end;
OnPCLoadMapEvent:
if( strcharinfo(3) == "job3_arch01" ){
dispbottom "Please create and prepare a party in the coming 30 seconds.";
if( getcharid( 1 ) ){
getpartymember getcharid(1);
if( $@partymembercount >= 3 ){
end;
}
sleep2 50000;
warp "SavePoint",0,0;
dispbottom "You have been warped out.";
end;
}
end;
}
}
job3_arch01 mapflag loadevent
Question
Mistique
Hello rAthena.
Would anyone be so kind to help me with this timer script?
Emistry gave this and it seemed to work at first. If I had a party of 3 on the mentioned map everything went fine and no one got warped out. However, if I partied up and warped with NPC (to another map) before 30 seconds have passed, the timer continued and (even the party of => 3) are being warped back to their savepoint, while they're at the map they're suppose to be at.
I've tested this script with a party of 3. Does anyone know what the cause can be of my problem?
Perhaps I should add a enablenpc trigger on the warper after 30 seconds so they can't warp before then? I'm not really sure what other options there are for this.
This is the script;
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.