viewing paste OnDeath Script | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
//===== rAthena Script =======================================
//= OnDeath Script
//===== By: ==================================================
//= Mysterious
//===== Current Version: =====================================
//= 1.2
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= Basically, when a player dies, they will warp to the map you specify
//= then there will be a countdown before they can go back to their saved spot.
//===== Additional Comments: =================================
//= 1.0 - First release [Mysterious]
//= 1.1 - Changed a few things [Mysterious]
//= 1.2 - Changed a few more things [Mysterious]
//============================================================
xxx,xxx,xxx,xxx  script xxx     xxx,{
OnPCDieEvent:
                warp "<yourmap>",xxx,xxx;
                sleep2 1000;
                announce "Hey "+strcharinfo(0)+", it seems you have died! Don't worry, you'll spawn in 13 Seconds!",bc_blue|bc_self;
                sleep2 3000;
                announce "10",bc_blue|bc_self;
                sleep2 1000;
                announce "9",bc_blue|bc_self;
                sleep2 1000;
                announce "8",bc_blue|bc_self;
                sleep2 1000;
                announce "7",bc_blue|bc_self;
                sleep2 1000;
                announce "6",bc_blue|bc_self;
                sleep2 1000;
                announce "5",bc_blue|bc_self;
                sleep2 1000;
                announce "4",bc_blue|bc_self;
                sleep2 1000;
                announce "3",bc_blue|bc_self;
                sleep2 1000;
                announce "2",bc_blue|bc_self;
                sleep2 1000;
                announce "1",bc_blue|bc_self;
                sleep2 1000;
                announce "Respawning..",bc_blue|bc_self;
                atcommand "@alive "+strcharinfo(0);
                sleep2 1000;
                atcommand "@load "+strcharinfo(0);
}
Viewed 345 times, submitted by unknown.