Mistique Posted July 15, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 53 Reputation: 1 Joined: 09/15/12 Last Seen: December 10, 2019 Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted July 15, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 11 minutes ago Share 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 Link to comment Share on other sites More sharing options...
Mistique Posted July 15, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 53 Reputation: 1 Joined: 09/15/12 Last Seen: December 10, 2019 Author Share Posted July 15, 2013 It says player not attached. Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 15, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: April 20 Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted July 15, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 11 minutes ago Share Posted July 15, 2013 It says player not attached. try changing sleep from sleep2 Quote Link to comment Share on other sites More sharing options...
Mistique Posted July 15, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 53 Reputation: 1 Joined: 09/15/12 Last Seen: December 10, 2019 Author Share Posted July 15, 2013 Thanks guys, it works now! Quote Link to comment Share on other sites More sharing options...
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?
Link to comment
Share on other sites
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.