Jump to content
  • 0

Help make the player return to prontera


Question

Posted (edited)

I have a script that resurrects in pvp when the player dies in a countdown.
But if the character is dead and selects to go to prontera, he returns to pvp.
How to adjust the script so it comes out promptly.

 

 

OnPCDieEvent:
	if( strcharinfo(3) == "pvpamap" ) {
		sleep2 1000;
}
	end;
}

 

Where to change so that when he clicks back to ready, the script does not take him back to pvp
8xzEy6y.jpg

Edited by Kater

10 answers to this question

Recommended Posts

  • 0
Posted
9 hours ago, Kater said:

Where to change so that when he clicks back to ready, the script does not take him back to pvp

image.png.4b7e40f373a6690563f08da0c47d2e37.png

 

Isn't this the button that appears when carrying Token Of Siegfried?

  • 0
Posted
10 hours ago, Kater said:

I have a script that resurrects in pvp when the player dies in a countdown.
But if the character is dead and selects to go to prontera, he returns to pvp.
How to adjust the script so it comes out promptly.

 

 

OnPCDieEvent:
	if( strcharinfo(3) == "pvpamap" ) {
		sleep2 1000;
}
	end;
}

 

Where to change so that when he clicks back to ready, the script does not take him back to pvp

image.png.4b7e40f373a6690563f08da0c47d2e37.png

try change the script into this

OnPCDieEvent:
	if( strcharinfo(3) == "pvpamap" ) {
		warp "prontera",0,0;
}
	end;
}

 

  • 0
Posted
8 hours ago, hendra814 said:

try change the script into this

OnPCDieEvent:
	if( strcharinfo(3) == "pvpamap" ) {
		warp "prontera",0,0;
}
	end;
}

 

 

Hi, this way, when the player dies he goes straight to the ready and then returns to the pvp map.

The idea is when he dies and he clicks to return to ready and stay ready, the resurrect script on the pvp map will be bypassed.

 

  • 0
Posted
8 hours ago, Akbare-2nd said:

 

Isn't this the button that appears when carrying Token Of Siegfried?

 

This button appears when the player dies.

As I have a script to resurrect on the map in random warp, if the player clicks to return to ready, the script is not cancelled, so the player returns to the pvp map...

  • 0
Posted
1 hour ago, Kater said:

 

Hi, this way, when the player dies he goes straight to the ready and then returns to the pvp map.

The idea is when he dies and he clicks to return to ready and stay ready, the resurrect script on the pvp map will be bypassed.

 

try change prontera map name into pvpmap name.

  • 0
Posted
13 minutes ago, hendra814 said:

try change prontera map name into pvpmap name.

 

I will include the complete script, to make it easier to understand.

Now I need that when the player selects to return to ready, the script is interrupted and does not teleport the player back to the pvp map.

  -	script	resspvp	-1,{ 
	end;
OnPCDieEvent:
	if( strcharinfo(3) == "pvp_map" ) {
		sleep2 1000;
	 
		atcommand "@alive "+strcharinfo(0);
		warp "pvp_map",0,0;

	}
	end;
}

 

  • 0
Posted (edited)
  -	script	resspvp	-1,{ 
	end;
OnPCDieEvent:
	if( strcharinfo(3) == "pvp_map" ) {
		mes "Continue PVP or Quit?";
		next;
		switch(select("Continue:Quit")) {
		case 1:
			atcommand "@alive "+strcharinfo(0);
			warp "pvp_map",0,0;
			break;
		case 2:
			end;
		}
	close;
	}
}

Maybe you can do it like this. Not test. But it's just an idea.

Edited by mrfizi
edit missing }
  • Like 1
  • 0
Posted
38 minutes ago, mrfizi said:
  -	script	resspvp	-1,{ 
	end;
OnPCDieEvent:
	if( strcharinfo(3) == "pvp_map" ) {
		mes "Continue PVP or Quit?";
		next;
		switch(select("Continue:Quit")) {
		case 1:
			atcommand "@alive "+strcharinfo(0);
			warp "pvp_map",0,0;
			break;
		case 2:
			end;
		}
	close;
	}
}

Maybe you can do it like this. Not test. But it's just an idea.

This way I had done it provisionally, more like I put a cutin for a countdown, opening a window is taking away the purpose.
But I was looking for a way to use the game's own window, but apparently it's not through scrip, there must be some editing in the src.

  • 0
Posted

Does anyone know how to activate Respawn map pvp and be able to use the function below.

Interrupt the spawn script if the player chooses the option.

return last save point

8xzEy6y.jpg

  • 0
Posted

Simply check again the current location before reviving and warping. If not on the same map, it will be skipped.

-	script	resspvp	-1,{ 
OnPCDieEvent:
	if( strcharinfo(3) == "pvp_map" ) {
		sleep2 1000;

		if( strcharinfo(3) == "pvp_map" ) {
			atcommand "@alive "+strcharinfo(0);
			warp "pvp_map",0,0;
		}
	}
	end;
}

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