summaryrefslogtreecommitdiff
path: root/npc/custom/item_signer.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/item_signer.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/item_signer.txt')
-rw-r--r--npc/custom/item_signer.txt20
1 files changed, 10 insertions, 10 deletions
diff --git a/npc/custom/item_signer.txt b/npc/custom/item_signer.txt
index fad2f92f9..dfc93fb85 100644
--- a/npc/custom/item_signer.txt
+++ b/npc/custom/item_signer.txt
@@ -13,7 +13,7 @@
prt_in,24,61,7 script Perchik 1_M_01,{
- setarray .@Item[0],644,3; // Item requirements: <ID>,<Count>{,...} (0 to disable)
+ setarray .@item[0],644,3; // Item requirements: <ID>,<Count>{,...} (0 to disable)
setarray .@Cost[0],0,5000; // Zeny requirements: <base price>,<price per refine>
disable_items;
@@ -26,10 +26,10 @@ prt_in,24,61,7 script Perchik 1_M_01,{
emotion e_ic;
next;
mes "[Perchik]";
- if (getarraysize(.@Item) || getarraysize(.@Cost)) {
+ if (getarraysize(.@item) || getarraysize(.@Cost)) {
mes "For my work I accept:";
- if (getarraysize(.@Item)) for(set .@i,0; .@i<getarraysize(.@Item); set .@i,.@i+2)
- mes " ~ "+.@Item[.@i+1]+"x "+getitemname(.@Item[.@i]);
+ if (getarraysize(.@item)) for(set .@i,0; .@i<getarraysize(.@item); set .@i,.@i+2)
+ mes " ~ "+.@item[.@i+1]+"x "+getitemname(.@item[.@i]);
if (.@Cost[0]) mes " ~ "+.@Cost[0]+" Zeny";
if (.@Cost[1]) mes " ~ "+.@Cost[1]+" Zeny per refine";
}
@@ -92,11 +92,11 @@ prt_in,24,61,7 script Perchik 1_M_01,{
close;
}
set .@price, .@Cost[0]+(.@Cost[1]*.@ref);
- if (getarraysize(.@Item) || .@price) {
+ if (getarraysize(.@item) || .@price) {
mes "I will need:";
- if (getarraysize(.@Item)) for(set .@i,0; .@i<getarraysize(.@Item); set .@i,.@i+2) {
- mes " ~ "+.@Item[.@i+1]+"x "+getitemname(.@Item[.@i]);
- if (countitem(.@Item[.@i]) < .@Item[.@i+1]) set .@nr,1;
+ if (getarraysize(.@item)) for(set .@i,0; .@i<getarraysize(.@item); set .@i,.@i+2) {
+ mes " ~ "+.@item[.@i+1]+"x "+getitemname(.@item[.@i]);
+ if (countitem(.@item[.@i]) < .@item[.@i+1]) set .@nr,1;
}
if (.@price) mes " ~ "+.@price+" Zeny";
}
@@ -122,8 +122,8 @@ prt_in,24,61,7 script Perchik 1_M_01,{
close;
}
if (.@price) set Zeny, Zeny-.@price;
- if (getarraysize(.@Item)) for(set .@i,0; .@i<getarraysize(.@Item); set .@i,.@i+2)
- delitem .@Item[.@i], .@Item[.@i+1];
+ if (getarraysize(.@item)) for(set .@i,0; .@i<getarraysize(.@item); set .@i,.@i+2)
+ delitem .@item[.@i], .@item[.@i+1];
delitem2 .@id,1,1,.@ref,0,.@slot[0],.@slot[1],.@slot[2],.@slot[3];
mes "Done!";
emotion e_proud;