summaryrefslogtreecommitdiff
path: root/npc/other/sealstatus.txt
diff options
context:
space:
mode:
authoreuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-20 02:06:41 +0000
committereuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-20 02:06:41 +0000
commit0836d92ab347ad3e8c5b35a360a20367e1ef9f36 (patch)
tree5fa5190eb4f5307c570bc15e15afe4c40901bcee /npc/other/sealstatus.txt
parent1cf8506c4b51235a0e48cd7d55559062b782315f (diff)
downloadhercules-0836d92ab347ad3e8c5b35a360a20367e1ef9f36.tar.gz
hercules-0836d92ab347ad3e8c5b35a360a20367e1ef9f36.tar.bz2
hercules-0836d92ab347ad3e8c5b35a360a20367e1ef9f36.tar.xz
hercules-0836d92ab347ad3e8c5b35a360a20367e1ef9f36.zip
* Optimized "Guild Battle NPC" (other\guildpvp.txt)
* Cleanup of "Gonryun Power Arena" script (other\powernpc.txt) * Condensed "Seal Status" script a little bit (other\sealstatus.txt) * Other general cleaning... :3 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16323 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/other/sealstatus.txt')
-rw-r--r--npc/other/sealstatus.txt56
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