Jump to content
  • 0

Kick a player from a map after 30 seconds?


Question

Posted

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

 

5 answers to this question

Recommended Posts

Posted

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;
}
Posted
-	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~

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...