Jump to content
  • 0

PVP auto resu on death


retroflav

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   4
  • Joined:  08/09/12
  • Last Seen:  

Hello can I request an Izlude type pvp that will auto resu and auto random warp a player on death and player could only get out the pvp room when he types @die.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  


- script pvpresu -1,{

OnInit:

set .map$,"pvp_y_1-2";

OnPCDieEvent:

if(getmapflag(strcharinfo(3),mf_pvp) == 0) end;

if(strcharinfo(3) != .map$) end;

dispbottom "You'll be revived in 3 seconds";

sleep2 3000;

warp strcharinfo(3),0,0;

if(HP == 0) atcommand "@alive";

percentheal 100,100;

}

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

-	script	junion	-1,{
OnInit:
	set .map$,"pvp_y_1-2";
	end;
OnPCDieEvent:
	if(strcharinfo(3) != .map$) end;
	if( !killerrid )// suicide
		warp "prontera",0,0;
	else
		warp strcharinfo(3),0,0;
	percentheal 100,100; 
}

 

@Anakid

You forgot an end after set .map$,"pvp_y_1-2";

 

You can remove the unecessary getmapflag since you already defined the map in oninit

if(getmapflag(strcharinfo(3),mf_pvp) == 0) end;

 

	warp strcharinfo(3),0,0;
	if(HP == 0) atcommand "@alive";

The hp value of player warped is always 1.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   4
  • Joined:  08/09/12
  • Last Seen:  

This is such a great help. Thank you! It works finally!

Edited by retroflav
Link to comment
Share on other sites

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.

×
×
  • Create New...