kater 0 Posted June 11 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 Quote Share this post Link to post Share on other sites
0 MrMarx 0 Posted June 13 *savepoint("<map name>", <x>, <y>) This command saves where the invoking character will return to upon 'return to save point', if dead or in some other cases. The two versions are equivalent. Map name, X coordinate and Y coordinate should be perfectly obvious. This ignores any and all map flags, and can make a character respawn where no teleportation is otherwise possible. savepoint("place", 350, 75); By using savepoint on the script, one can set up a logic of having the spawn point being map 'A' during a session of the event, and having a trigger to change it to map 'B' if another event happened. Can tweak it to your use case, for example setting Prontera as savepoint once landing or being warped to the pvp map. Quote Share this post Link to post Share on other sites
0 kater 0 Posted June 14 (edited) On 6/13/2024 at 10:05 AM, MrMarx said: *savepoint("<map name>", <x>, <y>) This command saves where the invoking character will return to upon 'return to save point', if dead or in some other cases. The two versions are equivalent. Map name, X coordinate and Y coordinate should be perfectly obvious. This ignores any and all map flags, and can make a character respawn where no teleportation is otherwise possible. savepoint("place", 350, 75); *savepoint("<map name>", <x>, <y>) This command saves where the invoking character will return to upon 'return to save point', if dead or in some other cases. The two versions are equivalent. Map name, X coordinate and Y coordinate should be perfectly obvious. This ignores any and all map flags, and can make a character respawn where no teleportation is otherwise possible. savepoint("place", 350, 75); By using savepoint on the script, one can set up a logic of having the spawn point being map 'A' during a session of the event, and having a trigger to change it to map 'B' if another event happened. Can tweak it to your use case, for example setting Prontera as savepoint once landing or being warped to the pvp map. I added the command, it is returning to the savepoint, plus the atcommand script "@alive "+strcharinfo(0); it is not being interrupted, taking the character back to the pvp map. Edited June 14 by kater Quote Share this post Link to post Share on other sites
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
Share this post
Link to post
Share on other sites