Mistique Posted July 15, 2013 Posted July 15, 2013 What I want I think is simple, but I've no idea how to script it... When a player enters this map (job3_arch01), I want them to only be able to be there for 30 seconds unless he parties up with the others. I want him to be kicked out if he isn't willing to co-operate/join. It's kinda a violation thing so a specific player won't hold up the other players by just standing there and keeping them from playing the event... Does anyone know how I can make this work? - script mapwarp1 -1,{ OnPCLoadMapEvent: getmapxy @map$,@x,@y,0; if (@map$ == "job3_arch01"){ sleep2 10; dispbottom "Please prepare your party in the coming 30 seconds. Those who don't join will automatically be warped out."; sleep 30000; getpartymember getcharid(1); if($@partymembercount < 4) { warp "SavePoint",0,0; end; } } } job3_arch01 mapflag loadevent Quote
Patskie Posted July 15, 2013 Posted July 15, 2013 When a player enters this map (job3_arch01), I want them to only be able to be there for 30 seconds unless he parties up with the others. I want him to be kicked out if he isn't willing to co-operate/join. - script Kick -1,{ if ( strcharinfo(3) == "job3_arch01" && getcharid(1) ) end; sleep 30000; warp "SavePoint",0,0; end; } Quote
Emistry Posted July 15, 2013 Posted July 15, 2013 - script Sample -1,{ OnInit: set .map$,"job_arch01"; set .min_party,4; set .delay_second,30; setmapflag .map$,mf_loadevent; end; OnPCLoadMapEvent: if( strcharinfo(3) == .map$ ){ if( getcharid( 1 ) ){ getpartymember getcharid(1); if( $@partymembercount >= 4 ) end; } sleep2 ( .delay_second * 1000 ); warp "SavePoint",0,0; } end; } try~ Quote
Patskie Posted July 15, 2013 Posted July 15, 2013 It says player not attached. try changing sleep from sleep2 Quote
Question
Mistique
What I want I think is simple, but I've no idea how to script it...
When a player enters this map (job3_arch01), I want them to only be able to be there for 30 seconds unless he parties up with the others.
I want him to be kicked out if he isn't willing to co-operate/join.
It's kinda a violation thing so a specific player won't hold up the other players by just standing there and keeping them from playing the event...
Does anyone know how I can make this work?
5 answers 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.