Jump to content
  • 0

Auto-kick script request


Question

Posted

Hello everyone!

 

I would like to request for a script that will kick a player (warp back to savepoint) if he was not able to kill another player within a 10 minute time limit. Lets say the map is guild_vs1. He has to be able to kill at least 1 player within 10 mins or will be kicked or warped out.

 

It will be great if there is a dispbottom message of "last 3 mins to kill or will be kicked out" on last 3 mins. And a dispbottom of "You have been kick beacuse of failure to kill" once the players has been warped back to savepoint.

 

Is this possible?

 

This would be awesome if ever somebody could do this. This will also help all the Server owners. :)

 

Thank you for the help guys. :)

6 answers to this question

Recommended Posts

Posted

prontera,156,185,6	script	kdsjfhsdkfs	100,{

warp "guild_vs2", 49,49;

deltimer strnpcinfo(0)+"::Onaaa";

deltimer strnpcinfo(0)+"::Onbbb";

addtimer 7000, strnpcinfo(0)+"::Onaaa";

end;

Onaaa:

if ( strcharinfo(3) != "guild_vs2" ) end;

addtimer 3000, strnpcinfo(0)+"::Onbbb";

dispbottom "last 3 mins to kill or will be kicked out";

end;

Onbbb:

if ( strcharinfo(3) != "guild_vs2" ) end;

warp "Save", 0,0;

dispbottom "You have been kick beacuse of failure to kill";

end;

OnPCKillEvent:

if ( strcharinfo(3) != "guild_vs2" ) end;

// if ( killedrid == getcharid(3) ) end;

deltimer strnpcinfo(0)+"::Onaaa";

deltimer strnpcinfo(0)+"::Onbbb";

addtimer 7000, strnpcinfo(0)+"::Onaaa";

end;

}

guild_vs2 mapflag pvp

Posted
prontera,156,185,6	script	kdsjfhsdkfs	100,{
	warp "guild_vs2", 49,49;
	deltimer strnpcinfo(0)+"::Onaaa";
	deltimer strnpcinfo(0)+"::Onbbb";
	addtimer 7000, strnpcinfo(0)+"::Onaaa";
	end;
Onaaa:
	if ( strcharinfo(3) != "guild_vs2" ) end;
	addtimer 3000, strnpcinfo(0)+"::Onbbb";
	dispbottom "last 3 mins to kill or will be kicked out";
	end;
Onbbb:
	if ( strcharinfo(3) != "guild_vs2" ) end;
	warp "Save", 0,0;
	dispbottom "You have been kick beacuse of failure to kill";
	end;
OnPCKillEvent:
	if ( strcharinfo(3) != "guild_vs2" ) end;
//	if ( killedrid == getcharid(3) ) end;
	deltimer strnpcinfo(0)+"::Onaaa";
	deltimer strnpcinfo(0)+"::Onbbb";
	addtimer 7000, strnpcinfo(0)+"::Onaaa";
	end;
}
guild_vs2	mapflag	pvp

 

 

Nice working!

 

Also, this NPC needed to be used for the timers to take effect but what if the map allows emergency call or marriage skills to be used to recall another player then the player can be able to bypass the timers. Can we make these timers to take effect starting on respawn of the character in the map? So the timers will take effect even if character what just recalled to the map.

 

May I also request for an edit that it will show the dispbottom on both last 5 mins and last 3 mins remaining?

 

Thank you for this. A big help. :)

Posted

try

http://upaste.me/r/0bbbdc

 

*annieruru version

 

I am sorry I got a small problem. I got this error message when I loaded it:

 

 

[02:57:04][Error]:  Loading NPC file: npc/extras/nokill_autokick.txt

script error on npc/extras/nokill_autokick.txt line 3

    parse_line: expect command, missing function name or calling undeclared func

tion

     1 : {

     2 : OnInit:

*    3 :        '.'@map$ = "prontera";

     4 :        .npc_name$ = strnpcinfo(0);

     5 :        setmapflag .@map$,mf_loadevent;

     6 :        setmapflag .@map$,mf_pvp;

     7 :        end;

 

 

 

I forgot to tell you that I am using 3ceam with only some rathena modifications.

 

Thank you very much for the help my friend. :)

Posted

you should have start learn how to convert it manually. /swt

	set .map$,"prontera";
	set .npc_name$,strnpcinfo(0);

HlsudzW.jpg

 

same things....same questions....same solution .....keep on repeat asking on forum ....

 

it would be for you to learn to convert... or just switch.... O__O

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...