summaryrefslogtreecommitdiff
path: root/npc/custom/quests/kings_items.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-11-10 04:28:03 +0100
committerHaru <haru@dotalux.com>2013-11-10 04:31:28 +0100
commitb4f1b3b5c5c009ed4f7635c5349ea97c80c08c25 (patch)
treecbd305d3896bdc9f498ed9eb72836dc7b6c32b99 /npc/custom/quests/kings_items.txt
parentc9b63614070f7fce81c88cd60e5edad5a7730df0 (diff)
downloadhercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.tar.gz
hercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.tar.bz2
hercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.tar.xz
hercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.zip
Follow-up to 857bdc4f98be6cd1e185a24565d6b6b54752b9b4
- Consolidated case in variables, labels, constants. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/custom/quests/kings_items.txt')
-rw-r--r--npc/custom/quests/kings_items.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/npc/custom/quests/kings_items.txt b/npc/custom/quests/kings_items.txt
index b8c7a5538..345f8b051 100644
--- a/npc/custom/quests/kings_items.txt
+++ b/npc/custom/quests/kings_items.txt
@@ -24,15 +24,15 @@ prt_castle,80,170,4 script King of Prontera 1_M_PRON_KING,{
mes "If you get her these items I'm sure she'll calm down.";
mes "I'll give you my crown or my sword as a reward.";
next;
- setarray .@Items1[0],5007,742,30,741,50,753,20,732,1,710,20,629,20;
- setarray .@Items2[0],1137,2254,1,2282,1,714,1;
+ setarray .@items1[0],5007,742,30,741,50,753,20,732,1,710,20,629,20;
+ setarray .@items2[0],1137,2254,1,2282,1,714,1;
switch(select("What do you need?:I have the items!:Forget it.")) {
case 1:
for(set .@i,1; .@i<3; set .@i,.@i+1) {
mes "[King of Prontera]";
mes "If you could get me:";
- for(set .@j,1; .@j<getarraysize(getd(".@Items"+.@i)); set .@j,.@j+2)
- mes " ~ ^0055FF"+getd(".@Items"+.@i+"["+(.@j+1)+"]")+"^000000x "+getitemname(getd(".@Items"+.@i+"["+.@j+"]"));
+ for(set .@j,1; .@j<getarraysize(getd(".@items"+.@i)); set .@j,.@j+2)
+ mes " ~ ^0055FF"+getd(".@items"+.@i+"["+(.@j+1)+"]")+"^000000x "+getitemname(getd(".@items"+.@i+"["+.@j+"]"));
mes "I'll give my "+((.@i)?"sword.":"crown.");
if (.@i==2) close;
next; }
@@ -41,16 +41,16 @@ prt_castle,80,170,4 script King of Prontera 1_M_PRON_KING,{
mes "What item do you want?";
next;
set .@i, select("Crown:Sword");
- for(set .@j,1; .@j<getarraysize(getd(".@Items"+.@i)); set .@j,.@j+2)
- if (countitem(getd(".@Items"+.@i+"["+.@j+"]")) < getd(".@Items"+.@i+"["+(.@j+1)+"]")) set .@nr,1;
+ for(set .@j,1; .@j<getarraysize(getd(".@items"+.@i)); set .@j,.@j+2)
+ if (countitem(getd(".@items"+.@i+"["+.@j+"]")) < getd(".@items"+.@i+"["+(.@j+1)+"]")) set .@nr,1;
mes "[King of Prontera]";
if (.@nr) {
mes "You're missing something.";
mes "Come back after you get ALL the items.";
close; }
- for(set .@j,1; .@j<getarraysize(getd(".@Items"+.@i)); set .@j,.@j+2)
- delitem getd(".@Items"+.@i+"["+.@j+"]"), getd(".@Items"+.@i+"["+(.@j+1)+"]");
- getitem getd(".@Items"+.@i+"[0]"),1;
+ for(set .@j,1; .@j<getarraysize(getd(".@items"+.@i)); set .@j,.@j+2)
+ delitem getd(".@items"+.@i+"["+.@j+"]"), getd(".@items"+.@i+"["+(.@j+1)+"]");
+ getitem getd(".@items"+.@i+"[0]"),1;
mes "THANK YOU SOO MUCH!!";
mes "This will surely calm her down.";
mes "As promised, here is my "+((.@i==1)?"crown.":"sword.");