Kater Posted June 12, 2024 Group: Members Topic Count: 76 Topics Per Day: 0.20 Content Count: 175 Reputation: 2 Joined: 04/03/24 Last Seen: Wednesday at 08:15 PM Share Posted June 12, 2024 (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 Edited June 14, 2024 by Kater Quote Link to comment Share on other sites More sharing options...
0 Akbare-2nd Posted June 13, 2024 Group: Members Topic Count: 6 Topics Per Day: 0.01 Content Count: 62 Reputation: 4 Joined: 06/11/23 Last Seen: April 12 Share Posted June 13, 2024 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 Isn't this the button that appears when carrying Token Of Siegfried? Quote Link to comment Share on other sites More sharing options...
0 hendra814 Posted June 13, 2024 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 1281 Reputation: 170 Joined: 06/12/12 Last Seen: 13 hours ago Share Posted June 13, 2024 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 try change the script into this OnPCDieEvent: if( strcharinfo(3) == "pvpamap" ) { warp "prontera",0,0; } end; } Quote Link to comment Share on other sites More sharing options...
0 Kater Posted June 13, 2024 Group: Members Topic Count: 76 Topics Per Day: 0.20 Content Count: 175 Reputation: 2 Joined: 04/03/24 Last Seen: Wednesday at 08:15 PM Author Share Posted June 13, 2024 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. Quote Link to comment Share on other sites More sharing options...
0 Kater Posted June 13, 2024 Group: Members Topic Count: 76 Topics Per Day: 0.20 Content Count: 175 Reputation: 2 Joined: 04/03/24 Last Seen: Wednesday at 08:15 PM Author Share Posted June 13, 2024 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... Quote Link to comment Share on other sites More sharing options...
0 hendra814 Posted June 13, 2024 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 1281 Reputation: 170 Joined: 06/12/12 Last Seen: 13 hours ago Share Posted June 13, 2024 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. Quote Link to comment Share on other sites More sharing options...
0 Kater Posted June 13, 2024 Group: Members Topic Count: 76 Topics Per Day: 0.20 Content Count: 175 Reputation: 2 Joined: 04/03/24 Last Seen: Wednesday at 08:15 PM Author Share Posted June 13, 2024 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; } Quote Link to comment Share on other sites More sharing options...
0 mrfizi Posted June 13, 2024 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 383 Reputation: 78 Joined: 10/30/12 Last Seen: March 17 Share Posted June 13, 2024 (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 June 13, 2024 by mrfizi edit missing } 1 Quote Link to comment Share on other sites More sharing options...
0 Kater Posted June 13, 2024 Group: Members Topic Count: 76 Topics Per Day: 0.20 Content Count: 175 Reputation: 2 Joined: 04/03/24 Last Seen: Wednesday at 08:15 PM Author Share Posted June 13, 2024 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. Quote Link to comment Share on other sites More sharing options...
0 Kater Posted June 14, 2024 Group: Members Topic Count: 76 Topics Per Day: 0.20 Content Count: 175 Reputation: 2 Joined: 04/03/24 Last Seen: Wednesday at 08:15 PM Author Share Posted June 14, 2024 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 Quote Link to comment Share on other sites More sharing options...
0 Magnetix Posted July 1, 2024 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 446 Reputation: 30 Joined: 12/08/11 Last Seen: October 13, 2024 Share Posted July 1, 2024 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; } Quote Link to comment Share on other sites More sharing options...
Question
Kater
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.
Where to change so that when he clicks back to ready, the script does not take him back to pvp
Edited by KaterLink to comment
Share on other sites
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.