diff options
Diffstat (limited to 'npc/other/sealstatus.txt')
-rw-r--r-- | npc/other/sealstatus.txt | 56 |
1 files changed, 19 insertions, 37 deletions
diff --git a/npc/other/sealstatus.txt b/npc/other/sealstatus.txt index c314ba976..74cae182e 100644 --- a/npc/other/sealstatus.txt +++ b/npc/other/sealstatus.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= L0ne_W0lf //===== Current Version: ===================================== -//= 1.1 +//= 1.2 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= @@ -11,45 +11,27 @@ //===== Additional Comments: ================================= //= 1.0 Translated from the official. [L0ne_W0lf] //= 1.1 Now checks proper char vars. [L0ne_W0lf] +//= 1.2 Cleaning. [Euphy] //============================================================ prontera,113,294,3 script Sign Post 837,{ mes "======== God Seal Status ========"; - - if ($god1 == 0) { mes "Sleipnir Seal: Unseen"; } - else if ($god1 < 50) { mes "Sleipnir Seal: Active"; } - else if ($god1 < 100) { mes "Sleipnir Seal: Appeared"; } - else { mes "Sleipnir Seal: Released"; } - - if ($god2 == 0) { mes "Megingjard Seal: Unseen"; } - else if ($god2 < 50) { mes "Megingjard Seal: Active"; } - else if ($god2 < 100) { mes "Megingjard Seal: Appeared"; } - else { mes "Megingjard Seal: Released"; } - - if ($god3 == 0) { mes "Brisingamen Seal: Unseen"; } - else if ($god3 < 50) { mes "Brisingamen Seal: Active"; } - else if ($god3 < 100) { mes "Brisingamen Seal: Appeared"; } - else { mes "Brisingamen Seal: Released"; } - - if ($god4 == 0) { mes "Mjolnir Seal: Unseen"; } - else if ($god4 < 50) { mes "Mjolnir Seal: Active"; } - else if ($god4 < 100) { mes "Mjolnir Seal: Appeared"; } - else { mes "Mjolnir Seal: Released"; } - + setarray .@n$[1], "Sleipnir","Megingjard","Brisingamen","Mjolnir"; + for(set .@i,1; .@i<5; set .@i,.@i+1) { + if (getd("$god"+.@i) == 0) mes .@n$[.@i]+" Seal: Unseen"; + else if (getd("$god"+.@i) < 50) mes .@n$[.@i]+" Seal: Active"; + else if (getd("$god"+.@i) < 100) mes .@n$[.@i]+" Seal: Appeared"; + else mes .@n$[.@i]+" Seal: Released"; + } mes " "; mes "======= Your Seal Status ========"; - - if (god_sl_1 < 51) { mes "^ff0000Sleipnir Seal: Not Completed^000000"; } - else { mes "^00ff00Sleipnir Seal: Completed^000000"; } - - if (god_eremes < 28) { mes "^ff0000Megingjard Seal: Not Completed^000000"; } - else { mes "^00ff00Megingjard Seal: Completed^000000"; } - - if (god_brising < 50) { mes "^ff0000Brisingamen Seal: Not Completed^000000"; } - else { mes "^00ff00Brisingamen Seal: Completed^000000"; } - - if (god_mjo_0 < 11) { mes "^ff0000Mjolnir Seal: Not Completed^000000"; } - else { mes "^00ff00Mjolnir Seal: Completed^000000"; } - -close; -} + if (god_sl_1 < 51) mes "^ff0000Sleipnir Seal: Not Completed^000000"; + else mes "^00ff00Sleipnir Seal: Completed^000000"; + if (god_eremes < 28) mes "^ff0000Megingjard Seal: Not Completed^000000"; + else mes "^00ff00Megingjard Seal: Completed^000000"; + if (god_brising < 50) mes "^ff0000Brisingamen Seal: Not Completed^000000"; + else mes "^00ff00Brisingamen Seal: Completed^000000"; + if (god_mjo_0 < 11) mes "^ff0000Mjolnir Seal: Not Completed^000000"; + else mes "^00ff00Mjolnir Seal: Completed^000000"; + close; +}
\ No newline at end of file |