Jump to content
  • 0

Question

3 answers to this question

Recommended Posts

Posted


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

}

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

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