Jump to content
  • 0

Help make the player return to prontera


Kater

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.51
  • Content Count:  101
  • Reputation:   0
  • Joined:  04/03/24
  • Last Seen:  

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
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   2
  • Joined:  06/11/23
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  1210
  • Reputation:   163
  • Joined:  06/12/12
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.51
  • Content Count:  101
  • Reputation:   0
  • Joined:  04/03/24
  • Last Seen:  

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.

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.51
  • Content Count:  101
  • Reputation:   0
  • Joined:  04/03/24
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  1210
  • Reputation:   163
  • Joined:  06/12/12
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.51
  • Content Count:  101
  • Reputation:   0
  • Joined:  04/03/24
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  337
  • Reputation:   64
  • Joined:  10/30/12
  • Last Seen:  

  -	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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.51
  • Content Count:  101
  • Reputation:   0
  • Joined:  04/03/24
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.51
  • Content Count:  101
  • Reputation:   0
  • Joined:  04/03/24
  • Last Seen:  

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

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