summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/airports/airships.txt4
-rw-r--r--npc/airports/einbroch.txt2
-rw-r--r--npc/airports/hugel.txt2
-rw-r--r--npc/airports/izlude.txt2
-rw-r--r--npc/airports/lighthalzen.txt2
-rw-r--r--npc/airports/rachel.txt2
-rw-r--r--npc/airports/yuno.txt2
-rw-r--r--npc/cities/alberta.txt6
-rw-r--r--npc/cities/aldebaran.txt2
-rw-r--r--npc/cities/amatsu.txt2
-rw-r--r--npc/cities/ayothaya.txt2
-rw-r--r--npc/cities/comodo.txt4
-rw-r--r--npc/cities/einbech.txt2
-rw-r--r--npc/cities/einbroch.txt8
-rw-r--r--npc/cities/geffen.txt6
-rw-r--r--npc/cities/gonryun.txt2
-rw-r--r--npc/cities/hugel.txt2
-rw-r--r--npc/cities/izlude.txt4
-rw-r--r--npc/cities/jawaii.txt20
-rw-r--r--npc/cities/lighthalzen.txt4
-rw-r--r--npc/cities/louyang.txt4
-rw-r--r--npc/cities/morocc.txt4
-rw-r--r--npc/cities/moscovia.txt2
-rw-r--r--npc/cities/payon.txt2
-rw-r--r--npc/cities/umbala.txt6
-rw-r--r--npc/cities/yuno.txt8
-rw-r--r--npc/custom/bgqueue/flavius.txt6
-rw-r--r--npc/custom/card_remover.txt2
-rw-r--r--npc/custom/etc/bank.txt12
-rw-r--r--npc/custom/etc/bank_kafra.txt4
-rw-r--r--npc/custom/etc/blackjack.txt4
-rw-r--r--npc/custom/etc/lottery.txt6
-rw-r--r--npc/custom/etc/marriage.txt4
-rw-r--r--npc/custom/etc/monster_arena.txt4
-rw-r--r--npc/custom/etc/penal_servitude.txt2
-rw-r--r--npc/custom/etc/quest_warper.txt20
-rw-r--r--npc/custom/etc/shifty_assassin.txt2
-rw-r--r--npc/custom/etc/stock_market.txt44
-rw-r--r--npc/custom/events/valentinesdayexp.txt4
-rw-r--r--npc/custom/item_signer.txt2
-rw-r--r--npc/custom/quests/hunting_missions.txt4
-rw-r--r--npc/custom/quests/kaho_balmung.txt2
-rw-r--r--npc/custom/quests/kahohorn.txt2
-rw-r--r--npc/custom/quests/quest_shop.txt2
-rw-r--r--npc/custom/quests/questboard.txt4
-rw-r--r--npc/custom/quests/sphinx_mask.txt2
-rw-r--r--npc/custom/quests/sunglasses.txt4
-rw-r--r--npc/custom/quests/thq/THQS_GuildNPC.txt2
-rw-r--r--npc/custom/quests/thq/THQS_QuestNPC.txt2
-rw-r--r--npc/custom/quests/thq/THQS_TTShop.txt6
-rw-r--r--npc/custom/resetnpc.txt6
-rw-r--r--npc/custom/test.txt80
-rw-r--r--npc/events/bossnia.txt2
-rw-r--r--npc/events/dumplingfestival.txt4
-rw-r--r--npc/events/easter_2008.txt2
-rw-r--r--npc/events/easter_2010.txt2
-rw-r--r--npc/events/event_skill_reset.txt2
-rw-r--r--npc/events/halloween_2006.txt6
-rw-r--r--npc/events/lunar_2008.txt2
-rw-r--r--npc/events/nguild/nguild_managers.txt2
-rw-r--r--npc/events/valentinesday.txt2
-rw-r--r--npc/events/valentinesday_2009.txt12
-rw-r--r--npc/events/whiteday.txt2
-rw-r--r--npc/guild/agit_main.txt12
-rw-r--r--npc/guild2/agit_main_se.txt10
-rw-r--r--npc/instances/EndlessTower.txt4
-rw-r--r--npc/instances/SealedShrine.txt2
-rw-r--r--npc/jobs/2-1/blacksmith.txt2
-rw-r--r--npc/jobs/2-1/hunter.txt2
-rw-r--r--npc/jobs/2-1/knight.txt2
-rw-r--r--npc/jobs/2-2/alchemist.txt2
-rw-r--r--npc/jobs/2-2/dancer.txt2
-rw-r--r--npc/jobs/2-2/rogue.txt4
-rw-r--r--npc/jobs/2-2/sage.txt6
-rw-r--r--npc/jobs/novice/supernovice.txt2
-rw-r--r--npc/jobs/valkyrie.txt2
-rw-r--r--npc/kafras/cool_event_corp.txt16
-rw-r--r--npc/kafras/dts_warper.txt24
-rw-r--r--npc/kafras/functions_kafras.txt10
-rw-r--r--npc/kafras/kafras.txt2
-rw-r--r--npc/merchants/advanced_refiner.txt2
-rw-r--r--npc/merchants/alchemist.txt4
-rw-r--r--npc/merchants/ammo_boxes.txt2
-rw-r--r--npc/merchants/buying_shops.txt6
-rw-r--r--npc/merchants/clothes_dyer.txt2
-rw-r--r--npc/merchants/dye_maker.txt2
-rw-r--r--npc/merchants/enchan_arm.txt2
-rw-r--r--npc/merchants/hair_dyer.txt4
-rw-r--r--npc/merchants/hair_style.txt8
-rw-r--r--npc/merchants/hd_refine.txt4
-rw-r--r--npc/merchants/icecream.txt2
-rw-r--r--npc/merchants/inn.txt6
-rw-r--r--npc/merchants/milk_trader.txt2
-rw-r--r--npc/merchants/old_pharmacist.txt8
-rw-r--r--npc/merchants/quivers.txt4
-rw-r--r--npc/merchants/refine.txt38
-rw-r--r--npc/merchants/renters.txt6
-rw-r--r--npc/merchants/socket_enchant.txt4
-rw-r--r--npc/merchants/socket_enchant2.txt8
-rw-r--r--npc/other/acolyte_warp.txt4
-rw-r--r--npc/other/arena/arena_party.txt2
-rw-r--r--npc/other/comodo_gambling.txt6
-rw-r--r--npc/other/divorce.txt2
-rw-r--r--npc/other/fortune.txt4
-rw-r--r--npc/other/mail.txt2
-rw-r--r--npc/other/marriage.txt4
-rw-r--r--npc/other/mercenary_rent.txt4
-rw-r--r--npc/other/monster_race.txt12
-rw-r--r--npc/other/poring_war.txt2
-rw-r--r--npc/other/powernpc.txt2
-rw-r--r--npc/other/pvp.txt4
-rw-r--r--npc/other/turbo_track.txt2
-rw-r--r--npc/pre-re/jobs/1-1/mage.txt2
-rw-r--r--npc/pre-re/jobs/1-1/merchant.txt10
-rw-r--r--npc/pre-re/jobs/1-1/thief.txt2
-rw-r--r--npc/quests/bard_quest.txt2
-rw-r--r--npc/quests/cooking_quest.txt6
-rw-r--r--npc/quests/counteragent_mixture.txt4
-rw-r--r--npc/quests/dandelion_request.txt8
-rw-r--r--npc/quests/eye_of_hellion.txt2
-rw-r--r--npc/quests/first_class/tu_archer.txt2
-rw-r--r--npc/quests/first_class/tu_magician01.txt2
-rw-r--r--npc/quests/first_class/tu_merchant.txt30
-rw-r--r--npc/quests/first_class/tu_thief01.txt4
-rw-r--r--npc/quests/gunslinger_quests.txt10
-rw-r--r--npc/quests/juice_maker.txt2
-rw-r--r--npc/quests/kiel_hyre_quest.txt4
-rw-r--r--npc/quests/mage_solution.txt4
-rw-r--r--npc/quests/monstertamers.txt2
-rw-r--r--npc/quests/newgears/2004_headgears.txt20
-rw-r--r--npc/quests/newgears/2005_headgears.txt12
-rw-r--r--npc/quests/newgears/2006_headgears.txt4
-rw-r--r--npc/quests/ninja_quests.txt32
-rw-r--r--npc/quests/quests_13_1.txt18
-rw-r--r--npc/quests/quests_13_2.txt8
-rw-r--r--npc/quests/quests_alberta.txt2
-rw-r--r--npc/quests/quests_aldebaran.txt8
-rw-r--r--npc/quests/quests_amatsu.txt10
-rw-r--r--npc/quests/quests_ayothaya.txt10
-rw-r--r--npc/quests/quests_ein.txt10
-rw-r--r--npc/quests/quests_geffen.txt2
-rw-r--r--npc/quests/quests_hugel.txt14
-rw-r--r--npc/quests/quests_izlude.txt4
-rw-r--r--npc/quests/quests_lighthalzen.txt20
-rw-r--r--npc/quests/quests_louyang.txt10
-rw-r--r--npc/quests/quests_morocc.txt14
-rw-r--r--npc/quests/quests_moscovia.txt20
-rw-r--r--npc/quests/quests_nameless.txt16
-rw-r--r--npc/quests/quests_payon.txt2
-rw-r--r--npc/quests/quests_prontera.txt4
-rw-r--r--npc/quests/quests_rachel.txt4
-rw-r--r--npc/quests/quests_veins.txt8
-rw-r--r--npc/quests/quests_yuno.txt4
-rw-r--r--npc/quests/seals/brisingamen_seal.txt6
-rw-r--r--npc/quests/skills/bard_skills.txt4
-rw-r--r--npc/quests/skills/blacksmith_skills.txt2
-rw-r--r--npc/quests/thana_quest.txt6
-rw-r--r--npc/quests/the_sign_quest.txt20
-rw-r--r--npc/re/cities/brasilis.txt4
-rw-r--r--npc/re/cities/dewata.txt6
-rw-r--r--npc/re/cities/dicastes.txt2
-rw-r--r--npc/re/cities/eclage.txt2
-rw-r--r--npc/re/cities/malangdo.txt4
-rw-r--r--npc/re/cities/malaya.txt4
-rw-r--r--npc/re/cities/mora.txt10
-rw-r--r--npc/re/guild/invest_main.txt4
-rw-r--r--npc/re/jobs/3-1/guillotine_cross.txt18
-rw-r--r--npc/re/jobs/3-2/shadow_chaser.txt8
-rw-r--r--npc/re/jobs/novice/supernovice_ex.txt2
-rw-r--r--npc/re/merchants/3rd_trader.txt8
-rw-r--r--npc/re/merchants/advanced_refiner.txt2
-rw-r--r--npc/re/merchants/alchemist.txt2
-rw-r--r--npc/re/merchants/blessed_refiner.txt2
-rw-r--r--npc/re/merchants/card_separation.txt2
-rw-r--r--npc/re/merchants/catalog.txt2
-rw-r--r--npc/re/merchants/diamond.txt4
-rw-r--r--npc/re/merchants/enchan_mora.txt4
-rw-r--r--npc/re/merchants/enchan_upg.txt2
-rw-r--r--npc/re/merchants/flute.txt4
-rw-r--r--npc/re/merchants/hd_refiner.txt4
-rw-r--r--npc/re/merchants/inn.txt2
-rw-r--r--npc/re/merchants/quivers.txt2
-rw-r--r--npc/re/merchants/refine.txt8
-rw-r--r--npc/re/quests/eden/86-90.txt2
-rw-r--r--npc/re/quests/eden/91-99.txt2
-rw-r--r--npc/re/quests/eden/eden_iro.txt4
-rw-r--r--npc/re/quests/eden/eden_quests.txt16
-rw-r--r--npc/re/quests/eden/eden_service.txt2
-rw-r--r--npc/re/quests/homun_s.txt2
-rw-r--r--npc/re/quests/magic_books.txt10
-rw-r--r--npc/re/quests/quests_brasilis.txt2
-rw-r--r--npc/re/quests/quests_dewata.txt2
-rw-r--r--npc/re/quests/quests_dicastes.txt8
-rw-r--r--npc/re/quests/quests_eclage.txt2
-rw-r--r--npc/re/quests/quests_malangdo.txt4
-rw-r--r--npc/re/quests/quests_malaya.txt4
-rw-r--r--npc/re/quests/quests_morocc.txt2
197 files changed, 589 insertions, 619 deletions
diff --git a/npc/airports/airships.txt b/npc/airports/airships.txt
index bf2a17acf..a4048cd5f 100644
--- a/npc/airports/airships.txt
+++ b/npc/airports/airships.txt
@@ -531,7 +531,7 @@ airplane,50,66,5 script Apple Merchant#airplane 4_M_04,{
close;
}
else {
- set Zeny, Zeny - .@pay;
+ Zeny -= .@pay;
getitem 512,.@input; //Apple
mes "[Fruitz]";
mes "Thanks for stopping by";
@@ -895,7 +895,7 @@ airplane_01,50,66,5 script Apple Merchant#air01 4_M_04,{
close;
}
else {
- set Zeny, Zeny - .@pay;
+ Zeny -= .@pay;
getitem 512,.@input; //Apple
mes "[Meltz]";
mes "Thanks for stopping by";
diff --git a/npc/airports/einbroch.txt b/npc/airports/einbroch.txt
index bd6b72fcc..774bd14b3 100644
--- a/npc/airports/einbroch.txt
+++ b/npc/airports/einbroch.txt
@@ -31,7 +31,7 @@ airport,143,43,5 script Airport Staff#airport1a::airport1 4_F_01,{
end;
}
if (Zeny >= 1200) {
- set Zeny, Zeny - 1200;
+ Zeny -= 1200;
warp "airport",148,51;
end;
}
diff --git a/npc/airports/hugel.txt b/npc/airports/hugel.txt
index 015bf8efd..7d4b3f85a 100644
--- a/npc/airports/hugel.txt
+++ b/npc/airports/hugel.txt
@@ -21,7 +21,7 @@ OnTouch:
end;
}
if (Zeny >= 1200) {
- set Zeny, Zeny - 1200;
+ Zeny -= 1200;
warp "airplane",244,58;
end;
}
diff --git a/npc/airports/izlude.txt b/npc/airports/izlude.txt
index fe46c1169..aaf08b9a7 100644
--- a/npc/airports/izlude.txt
+++ b/npc/airports/izlude.txt
@@ -30,7 +30,7 @@
end;
}
if (Zeny >= 1200) {
- set Zeny, Zeny - 1200;
+ Zeny -= 1200;
warp "airplane_01",244,58;
end;
}
diff --git a/npc/airports/lighthalzen.txt b/npc/airports/lighthalzen.txt
index e2c5f67b4..de26fb0cc 100644
--- a/npc/airports/lighthalzen.txt
+++ b/npc/airports/lighthalzen.txt
@@ -29,7 +29,7 @@ lhz_airport,143,43,5 script Airport Staff#lhz_air1a::lhz_airport1 4_F_01,{
end;
}
if (Zeny >= 1200) {
- set Zeny, Zeny - 1200;
+ Zeny -= 1200;
warp "lhz_airport",148,51;
end;
}
diff --git a/npc/airports/rachel.txt b/npc/airports/rachel.txt
index f157f5f6b..65ea35425 100644
--- a/npc/airports/rachel.txt
+++ b/npc/airports/rachel.txt
@@ -21,7 +21,7 @@ OnTouch:
end;
}
if (Zeny >= 1200) {
- set Zeny, Zeny - 1200;
+ Zeny -= 1200;
warp "airplane_01",245,60;
end;
}
diff --git a/npc/airports/yuno.txt b/npc/airports/yuno.txt
index 4e697918b..2146dc671 100644
--- a/npc/airports/yuno.txt
+++ b/npc/airports/yuno.txt
@@ -28,7 +28,7 @@ y_airport,143,43,5 script Airport Staff#y_air1a::y_airport1 4_F_01,{
end;
}
if (Zeny >= 1200) {
- set Zeny, Zeny - 1200;
+ Zeny -= 1200;
warp "y_airport",148,51;
end;
}
diff --git a/npc/cities/alberta.txt b/npc/cities/alberta.txt
index 0fb5ce2f2..232fb5da3 100644
--- a/npc/cities/alberta.txt
+++ b/npc/cities/alberta.txt
@@ -205,7 +205,7 @@ alberta,189,151,5 script Fisk 4W_SAILOR,{
mes "Hey now, don't try to cheat me! I said 250 zeny!";
close;
}
- set Zeny,Zeny - 250;
+ Zeny -= 250;
warp "alb2trea",43,53;
end;
case 2:
@@ -214,7 +214,7 @@ alberta,189,151,5 script Fisk 4W_SAILOR,{
mes "Ain't no way yer getting there without the 500 zeny first!";
close;
}
- set Zeny,Zeny - 500;
+ Zeny -= 500;
if(checkre(0))
warp "izlude",195,212;
else
@@ -262,7 +262,7 @@ alberta,195,151,2 script Paul 4_M_04,{
mes "It seems you don't have the money, my friend. But please come back when you're able to pay.";
close;
} else {
- set Zeny,Zeny - 200;
+ Zeny -= 200;
warp "alb2trea",62,69;
close;
}
diff --git a/npc/cities/aldebaran.txt b/npc/cities/aldebaran.txt
index cbd79a50b..1bc78f0fd 100644
--- a/npc/cities/aldebaran.txt
+++ b/npc/cities/aldebaran.txt
@@ -800,7 +800,7 @@ aldeba_in,84,166,4 script Kafra Service#alde 4_F_KAFRA1,{
end;
}
delitem 1084,countitem(1084); //Kapra's_Pass
- set Zeny,Zeny+.@kafrapassmoney;
+ Zeny += .@kafrapassmoney;
mes "[Kafra Pavianne]";
mes "Thank you.";
}
diff --git a/npc/cities/amatsu.txt b/npc/cities/amatsu.txt
index c86db8a67..18ae79bdc 100644
--- a/npc/cities/amatsu.txt
+++ b/npc/cities/amatsu.txt
@@ -96,7 +96,7 @@
mes "[Walter Moers]";
mes "Alright, I will start the engine!";
close2;
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
warp "amatsu",197,83;
end;
}
diff --git a/npc/cities/ayothaya.txt b/npc/cities/ayothaya.txt
index e04a00ee1..86b1f3e94 100644
--- a/npc/cities/ayothaya.txt
+++ b/npc/cities/ayothaya.txt
@@ -56,7 +56,7 @@
mes "Let us be off! Back to my";
mes "beautiful Ayotaya!";
close2;
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
warp "ayothaya",149,71;
end;
}
diff --git a/npc/cities/comodo.txt b/npc/cities/comodo.txt
index cb36c38c1..f8a3f967f 100644
--- a/npc/cities/comodo.txt
+++ b/npc/cities/comodo.txt
@@ -349,12 +349,12 @@ cmd_fild07,299,83,4 script Zain#cmd 4W_SAILOR,{
switch(select("Alberta - 600 Zeny:Izlude - 800 Zeny:Cancel")) {
case 1:
if (Zeny < 600) break;
- set Zeny, Zeny-600;
+ Zeny -= 600;
warp "alberta",192,169;
end;
case 2:
if (Zeny < 800) break;
- set Zeny, Zeny-800;
+ Zeny -= 800;
if(checkre(0))
warp "izlude",195,212;
else
diff --git a/npc/cities/einbech.txt b/npc/cities/einbech.txt
index e1395e701..d3d853846 100644
--- a/npc/cities/einbech.txt
+++ b/npc/cities/einbech.txt
@@ -212,7 +212,7 @@ einbech,39,215,5 script Train Station Staff#ein3 4_M_EIN_SOLDIER,{
mes "we hope you enjoy";
mes "the ride. All aboard!";
close2;
- set Zeny, Zeny-200;
+ Zeny -= 200;
warp "einbroch",226,276;
end;
}
diff --git a/npc/cities/einbroch.txt b/npc/cities/einbroch.txt
index 9d1c1dcad..714b0bde6 100644
--- a/npc/cities/einbroch.txt
+++ b/npc/cities/einbroch.txt
@@ -128,7 +128,7 @@ function script EinTower {
mes "using our services.";
mes "Let me guide you to";
mes "the tower right away.";
- set Zeny, Zeny-10;
+ Zeny -= 10;
close2;
warp "einbroch",181,196;
end;
@@ -155,7 +155,7 @@ function script EinTower {
mes "using our services.";
mes "Let me guide you to";
mes "the tower right away.";
- set Zeny, Zeny-20;
+ Zeny -= 20;
getitem 512,1; //Apple
close2;
warp "einbroch",174,204;
@@ -203,7 +203,7 @@ einbroch,232,272,3 script Train Station Staff#ein1::EinbrochTrain 4_M_EIN_SOLDIE
mes "Have a safe trip.";
mes "^333333*Ahem*^000000 All aboard!";
close2;
- set Zeny, Zeny-200;
+ Zeny -= 200;
warp "einbech",43,215;
end;
}
@@ -834,7 +834,7 @@ ein_in01,206,224,3 script Hotel Employee#ein 4_M_EINMAN,{
mes "Please enjoy";
mes "your rest~";
close2;
- set Zeny, Zeny-5000;
+ Zeny -= 5000;
percentheal 100,100;
warp "ein_in01",272,167;
end;
diff --git a/npc/cities/geffen.txt b/npc/cities/geffen.txt
index d755af8b6..e19384997 100644
--- a/npc/cities/geffen.txt
+++ b/npc/cities/geffen.txt
@@ -286,7 +286,7 @@ OnTouch:
mes "^333333Now I gotta find some other sucker to dump this junk on!^000000 *Ahem* I mean, come again!";
close;
}
- set Zeny, Zeny-.@Red_potion_hap;
+ Zeny -= .@Red_potion_hap;
getitem 501,.@input; //Red_Potion
break;
case 2:
@@ -351,7 +351,7 @@ OnTouch:
mes "When the greatest deal in your life is right before your eyes?! Tragic, truly tragic...";
close;
}
- set Zeny, Zeny-.@Main_gauche_hap;
+ Zeny -= .@Main_gauche_hap;
getitem 1207,.@input; //Main_Gauche
break;
case 3:
@@ -403,7 +403,7 @@ OnTouch:
mes "Short on zeny, eh?";
close;
}
- set Zeny, Zeny-.@Hood__hap;
+ Zeny -= .@Hood__hap;
getitem 2501,.@input; //Hood
break;
case 4:
diff --git a/npc/cities/gonryun.txt b/npc/cities/gonryun.txt
index 7aa0f5e70..9c51dcd48 100644
--- a/npc/cities/gonryun.txt
+++ b/npc/cities/gonryun.txt
@@ -100,7 +100,7 @@
mes "[Wa Bai Hu]";
mes "Thank you, let me guide you there immediately.";
close2;
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
warp "gon_fild01",258,82;
end;
}
diff --git a/npc/cities/hugel.txt b/npc/cities/hugel.txt
index eb000b1ed..3302d640c 100644
--- a/npc/cities/hugel.txt
+++ b/npc/cities/hugel.txt
@@ -154,7 +154,7 @@ hu_in01,23,311,4 script Party Supplies Shop 4_M_HUMAN_01,{
mes "enough money~";
close;
}
- set Zeny,Zeny-500;
+ Zeny -= 500;
getitem 12018,5; // Fire_Cracker
mes "[Shopkeeper]";
mes "Here you go!";
diff --git a/npc/cities/izlude.txt b/npc/cities/izlude.txt
index 000b0893e..5aaceb709 100644
--- a/npc/cities/izlude.txt
+++ b/npc/cities/izlude.txt
@@ -48,7 +48,7 @@
mes "Only 150 Zeny to ride!";
close;
}
- set Zeny, Zeny - 150;
+ Zeny -= 150;
warp "izlu2dun",107,50;
end;
case 2:
@@ -58,7 +58,7 @@
mes "Only 500 Zeny to ride!";
close;
}
- set Zeny, Zeny - 500;
+ Zeny -= 500;
warp "alberta",188,169;
end;
case 3:
diff --git a/npc/cities/jawaii.txt b/npc/cities/jawaii.txt
index 501e0f336..1b3e5b12a 100644
--- a/npc/cities/jawaii.txt
+++ b/npc/cities/jawaii.txt
@@ -245,7 +245,7 @@ jawaii,141,200,3 script Employee#sroom 4_M_NFMAN,{
mes "ffffor you. Thank y-you.";
mes "Ha-have a good time.";
close2;
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
warp "jawaii_in",116,64;
end;
}
@@ -294,7 +294,7 @@ jawaii,108,199,5 script Employee#antroom 1_F_MERCHANT_02,{
mes "Make yourself";
mes "comfortable.";
close2;
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
warp "jawaii_in",129,110;
end;
}
@@ -325,7 +325,7 @@ jawaii,107,189,5 script Employee#horoom 4_F_04,{
mes "Eh, alright.";
mes "Let's get going.";
close2;
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
warp "jawaii_in",86,117;
end;
}
@@ -368,7 +368,7 @@ jawaii,112,173,7 script Employee#villroom 4_F_04,{
mes "Thank you~";
mes "Enjoy your stay.";
close2;
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
warp "jawaii_in",87,75;
end;
}
@@ -413,7 +413,7 @@ jawaii,214,168,5 script Honeymoon Helper#Jawaii 1_F_LIBRARYGIRL,{
if (select("I shall buy it.:No, thanks.") == 1) {
mes "[Helper]";
if (Zeny > 49999) {
- set Zeny, Zeny-50000;
+ Zeny -= 50000;
getitem 681,1; //Memory_Of_Wedding
mes "Thank you very much~!";
mes "Please remember, you";
@@ -737,7 +737,7 @@ jawaii_in,15,104,0 script Waitress#jawaii 1_F_PUBGIRL,{
if (select("Yes.:Wha--! It's too expensive!") == 1) {
mes "[Waitress]";
if (Zeny > 999) {
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
getitem 517,1; //Meat
mes "There you go~";
mes "Enjoy your meal~!";
@@ -763,7 +763,7 @@ jawaii_in,15,104,0 script Waitress#jawaii 1_F_PUBGIRL,{
if (select("Yes.:Wha--! It's too expensive!") == 1) {
mes "[Waitress]";
if (Zeny > 999) {
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
getitem 503,1; //Yelow_Potion
mes "There you go~";
mes "Enjoy your meal~!";
@@ -895,7 +895,7 @@ jawaii_in,28,124,0 script Bartender#jaw 1_ETC_01,{
percentheal -100,0;
end;
}
- if (Zeny > 99) set Zeny, Zeny-100;
+ if (Zeny > 99) Zeny -= 100;
switch(rand(4)) {
case 1:
mes "[Bartender]";
@@ -1105,7 +1105,7 @@ S_KillChar:
percentheal -100,0;
end;
}
- if (Zeny > 99) set Zeny, Zeny-100;
+ if (Zeny > 99) Zeny -= 100;
set .@roof_jaw,.@roof_jaw+getarg(0);
mes "[Bartender]";
mes "There you go.";
@@ -1431,7 +1431,7 @@ prt_in,170,14,0 script Customer#Bachewcca 4_M_ORIENT02,{
close;
}
else if (Zeny > 99999) {
- set Zeny, Zeny-100000;
+ Zeny -= 100000;
mes "Bon Voyage...!!";
mes "Let me guide";
mes "you to 'Jawaii!'";
diff --git a/npc/cities/lighthalzen.txt b/npc/cities/lighthalzen.txt
index d4e66a334..e6824f048 100644
--- a/npc/cities/lighthalzen.txt
+++ b/npc/cities/lighthalzen.txt
@@ -563,7 +563,7 @@ lighthalzen,182,102,3 script Lucius#zen5 4_M_LGTGRAND,{
mes "as much as you possibly can...";
close;
}
- set Zeny, Zeny-.@input;
+ Zeny -= .@input;
set $donatedzeny,$donatedzeny + .@input;
mes "[Lucius]";
mes "So far, I've received";
@@ -1020,7 +1020,7 @@ OnTouch:
mes "[" + strcharinfo(0) + "]";
mes "Here you go,";
mes "take this.";
- set Zeny, Zeny-50;
+ Zeny -= 50;
next;
mes "[Beggar]";
mes "Thank you so much.";
diff --git a/npc/cities/louyang.txt b/npc/cities/louyang.txt
index adb01b867..0b6bbb77c 100644
--- a/npc/cities/louyang.txt
+++ b/npc/cities/louyang.txt
@@ -70,7 +70,7 @@
mes "Ready!";
mes "Have fun!";
close2;
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
warp "lou_fild01",190,101;
end;
}
@@ -292,7 +292,7 @@ lou_in01,25,23,5 script Friendly Looking Lady#lo 4_F_CHNDRESS3,{
mes "We are trying to provide you with the best of service. Please";
mes "come again.";
next;
- set Zeny, Zeny-500;
+ Zeny -= 500;
warp "lou_in01",17,19;
end;
case 3:
diff --git a/npc/cities/morocc.txt b/npc/cities/morocc.txt
index d2afe9d8d..cb5b608e9 100644
--- a/npc/cities/morocc.txt
+++ b/npc/cities/morocc.txt
@@ -722,7 +722,7 @@ morocc_in,166,76,3 script Bartender#02 1_ETC_01,{
switch(select("Tropical Sograt:Vemillion the Beach:Nothing.")) {
case 1:
if (Zeny >= 1000 ) {
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
getitem 12112,1;
mes "[Bartender]";
mes "Here you go.";
@@ -733,7 +733,7 @@ morocc_in,166,76,3 script Bartender#02 1_ETC_01,{
break;
case 2:
if (Zeny >= 1000 ) {
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
getitem 12113,1;
mes "[Bartender]";
mes "Here you go.";
diff --git a/npc/cities/moscovia.txt b/npc/cities/moscovia.txt
index 4872f94e0..ac6ef0bb4 100644
--- a/npc/cities/moscovia.txt
+++ b/npc/cities/moscovia.txt
@@ -77,7 +77,7 @@
mes "[Moscovia P.R. Officer]";
mes "Ok then, we're leaving now.";
close2;
- set Zeny,Zeny - 10000;
+ Zeny -= 10000;
warp "moscovia",163,55;
end;
}
diff --git a/npc/cities/payon.txt b/npc/cities/payon.txt
index 5a4bb811d..3bbe52908 100644
--- a/npc/cities/payon.txt
+++ b/npc/cities/payon.txt
@@ -253,7 +253,7 @@ payon,210,110,1 script Drunkard#payon 2_M_PHARMACIST,{
next;
switch(select("Alright, but only one drink.:No thanks, pal.:Oh my God! Hell no!")) {
case 1:
- set Zeny, (Zeny < 100)?0:(Zeny - 100);
+ Zeny = (Zeny < 100) ? 0 : (Zeny - 100);
mes "[Drunkard]";
mes "Thanks...!";
mes "..Brother!";
diff --git a/npc/cities/umbala.txt b/npc/cities/umbala.txt
index 88bbcb36f..6436f3521 100644
--- a/npc/cities/umbala.txt
+++ b/npc/cities/umbala.txt
@@ -76,7 +76,7 @@ comodo,171,137,1 script Haith#um 4_F_03,{
next;
if (select("Pay 1,000 zeny:Refuse to pay") == 1) {
if (Zeny > 999) {
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
mes "[Haith]";
mes "Hahahaha! You the man!";
next;
@@ -273,7 +273,7 @@ umbala,70,106,3 script Utan Kid#um 4_F_UMGIRL,{
mes "You the man~!";
mes "Thank you so much, yay~!";
if (Zeny > 1000) {
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
if (checkweight(517,1)) {
getitem 517,1; //Meat
}
@@ -334,7 +334,7 @@ umbala,70,106,3 script Utan Kid#um 4_F_UMGIRL,{
mes "Um~bahumbah~ Um~baumbah~";
mes "Um~baumbah~ um~baumbah~";
if (Zeny > 1000) {
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
if (checkweight(517,1)) {
getitem 517,1; //Meat
}
diff --git a/npc/cities/yuno.txt b/npc/cities/yuno.txt
index c1432c4c2..8ecc4910b 100644
--- a/npc/cities/yuno.txt
+++ b/npc/cities/yuno.txt
@@ -76,7 +76,7 @@ yuno,337,227,4 script Juno Granny#juno 8_F_GRANDMOTHER,{
mes "[Granny]";
mes "*Giggle*";
mes "There you go~";
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
getitem 529,1; //Candy
next;
mes "[Granny]";
@@ -167,7 +167,7 @@ yuno,165,111,4 script Juno Sage#juno 2_F_MAGICMASTER,,{
if (select("Choose ^FF3355Red Herb^000000:Choose ^3355FFBlue Herb^000000.") == 1) {
mes "[Le Morpheus]";
mes "As you have chosen, you will forget everything, and remain in this virtual reality.";
- set Zeny, Zeny-5000;
+ Zeny -= 5000;
getitem 507,1; //Red_Herb
close2;
warp "prontera",182,206;
@@ -175,7 +175,7 @@ yuno,165,111,4 script Juno Sage#juno 2_F_MAGICMASTER,,{
}
mes "[Le Morpheus]";
mes "You will see the truth.";
- set Zeny, Zeny-5000;
+ Zeny -= 5000;
getitem 510,1; //Blue_Herb
close2;
warp "pay_dun03",200,222;
@@ -378,7 +378,7 @@ yuno,142,183,5 script Airship Representative 4W_SAILOR,{
S_Warp:
if (Zeny >= 1800) {
- set Zeny, Zeny-1800;
+ Zeny -= 1800;
warp getarg(0),getarg(1),getarg(2);
end;
}
diff --git a/npc/custom/bgqueue/flavius.txt b/npc/custom/bgqueue/flavius.txt
index bcfe32322..0e336ccb4 100644
--- a/npc/custom/bgqueue/flavius.txt
+++ b/npc/custom/bgqueue/flavius.txt
@@ -222,7 +222,7 @@ OnMyMobDead:
else {
set $@Croix_ScoreBG1,1;
donpcevent "time#bat_b01::OnEnable";
- donpcevent "start#bat_b01::onReset";
+ donpcevent "start#bat_b01::OnReset";
}
bg_updatescore "bat_b01",$@Guill_ScoreBG1,$@Croix_ScoreBG1;
bg_warp $@FlaviusBG1_id1,"bat_b01",10,290;
@@ -253,7 +253,7 @@ OnMyMobDead:
else {
set $@Guill_ScoreBG1,1;
donpcevent "time#bat_b01::OnEnable";
- donpcevent "start#bat_b01::onReset";
+ donpcevent "start#bat_b01::OnReset";
}
bg_updatescore "bat_b01",$@Guill_ScoreBG1,$@Croix_ScoreBG1;
bg_warp $@FlaviusBG1_id1,"bat_b01",10,290;
@@ -353,7 +353,7 @@ OnTimer26000:
OnTimer26500:
stopnpctimer;
- donpcevent "Battle Therapist#b01_a::onEnable";
+ donpcevent "Battle Therapist#b01_a::OnEnable";
end;
OnEnable:
diff --git a/npc/custom/card_remover.txt b/npc/custom/card_remover.txt
index 887e03404..e1a74936b 100644
--- a/npc/custom/card_remover.txt
+++ b/npc/custom/card_remover.txt
@@ -88,7 +88,7 @@ prt_in,28,73,4 script Wise Old Woman#eAcustom 1_F_ORIENT_04,{
}
mes "[Wise Old Woman]";
mes "Very well. I shall begin.";
- set Zeny,Zeny - (.zenycost+(.@cardcount * .percardcost));
+ Zeny -= (.zenycost+(.@cardcount * .percardcost));
delitem 1000,1;
delitem 715,1;
diff --git a/npc/custom/etc/bank.txt b/npc/custom/etc/bank.txt
index 51e3e7e74..7b569a3d5 100644
--- a/npc/custom/etc/bank.txt
+++ b/npc/custom/etc/bank.txt
@@ -42,8 +42,8 @@ switch(select("I'd like to make a deposit.:I'd like to make a withdrawl.:What's
close;
}
else {
- set Zeny,Zeny - @deposit;
- set Zeny,Zeny - @cost;
+ Zeny -= @deposit;
+ Zeny -= @cost;
set #bankstorage,#bankstorage + @deposit;
mes "[Banker]";
mes "Thank you very much... Your zeny is in good hands.";
@@ -80,8 +80,8 @@ switch(select("I'd like to make a deposit.:I'd like to make a withdrawl.:What's
set #bankstorage,#bankstorage - @cost;
set @cost,0;
next;
- set Zeny,Zeny - @cost;
- set Zeny,Zeny + @withdrawl;
+ Zeny -= @cost;
+ Zeny += @withdrawl;
set #bankstorage,#bankstorage - @withdrawl;
mes "[Banker]";
mes "There's your Zeny. Have a good day.";
@@ -93,8 +93,8 @@ switch(select("I'd like to make a deposit.:I'd like to make a withdrawl.:What's
}
}
else {
- set Zeny,Zeny - @cost;
- set Zeny,Zeny + @withdrawl;
+ Zeny -= @cost;
+ Zeny += @withdrawl;
set #bankstorage,#bankstorage - @withdrawl;
mes "[Banker]";
mes "There's your Zeny. Have a good day.";
diff --git a/npc/custom/etc/bank_kafra.txt b/npc/custom/etc/bank_kafra.txt
index 48086abbd..ea662499f 100644
--- a/npc/custom/etc/bank_kafra.txt
+++ b/npc/custom/etc/bank_kafra.txt
@@ -48,7 +48,7 @@ L_NoIncomeToday:
if(@kafrabank<1000) goto L_LESS_1000;
if(@kafrabank>Zeny) goto L_NOT_ENOUGH;
- set Zeny,Zeny-@kafrabank;
+ Zeny -= @kafrabank;
set #kafrabank,#kafrabank+@kafrabank;
mes"[Maniss]";
mes "You've made a deposit of ^135445" + @kafrabank + "z^000000.";
@@ -67,7 +67,7 @@ M_WITHDRAW:
if(@kafrabank<1) goto B_EXIT2;
if(@kafrabank>#kafrabank) goto L_NOT_ENOUGH;
set #kafrabank,#kafrabank-@kafrabank;
- set Zeny,Zeny+@kafrabank;
+ Zeny += @kafrabank;
mes"[Maniss]";
mes "Here is your ^135445" + @kafrabank + "z^000000, put your sign here...";
//we log these zeny operations into the log db
diff --git a/npc/custom/etc/blackjack.txt b/npc/custom/etc/blackjack.txt
index 8fe70ad72..b86316706 100644
--- a/npc/custom/etc/blackjack.txt
+++ b/npc/custom/etc/blackjack.txt
@@ -233,12 +233,12 @@ sL_Win:
mes "[Dealer]";
mes "Congratulations, you've won!";
next;
- set Zeny, Zeny + @bet;
+ Zeny += @bet;
goto L_Play;
sL_Lose:
mes "[Dealer]";
mes "I'm sorry but you've lost.";
- set Zeny, Zeny - @bet;
+ Zeny -= @bet;
next;
goto L_Play;
sL_Push:
diff --git a/npc/custom/etc/lottery.txt b/npc/custom/etc/lottery.txt
index 26c4afa9f..9d4c4df38 100644
--- a/npc/custom/etc/lottery.txt
+++ b/npc/custom/etc/lottery.txt
@@ -107,7 +107,7 @@ L_Buy:
next;
menu "Buy Ticket",-,"Cancel",L_Cancel;
if (Zeny < $L_TicketPrice) goto L_NoZeny;
- set Zeny,Zeny-$L_TicketPrice;
+ Zeny -= $L_TicketPrice;
mes "[Lottery]";
mes "Would you like your numbers hand picked or computer generated?";
next;
@@ -292,7 +292,7 @@ LWinBig:
mes "You have matched all six numbers!";
mes "Jackpot!";
mes "You've won ^0000FF" + $L_Prize_Money + "z^000000.";
- set Zeny,Zeny+$L_Prize_Money;
+ Zeny += $L_Prize_Money;
announce "Lottery: " + strcharinfo(0) + " has won the JACKPOT of " + $L_Prize_Money + "z!",8;
set #LID,0;
close;
@@ -302,7 +302,7 @@ LWinSmall:
mes "[Lottery]";
mes "You have matched at least 4 numbers!";
mes "You've won ^0000FF" + $L_Prize_Money_Small + "z^000000.";
- set Zeny,Zeny+$L_Prize_Money_Small;
+ Zeny += $L_Prize_Money_Small;
announce "Lottery: " + strcharinfo(0) + " has won a prize of " + $L_Prize_Money_Small + "z!",8;
set #LID,0;
close;
diff --git a/npc/custom/etc/marriage.txt b/npc/custom/etc/marriage.txt
index f0ec34f0a..df701b05f 100644
--- a/npc/custom/etc/marriage.txt
+++ b/npc/custom/etc/marriage.txt
@@ -716,7 +716,7 @@ function SF_TryRegister {
mes "Come back once you have collected "+@cost+"z.";
close;
}
- set Zeny,Zeny-@cost;
+ Zeny -= @cost;
sc_start SC_WEDDING,3600000,1; //Start Wedding Effect (SC_WEDDING)
if (@bride) {
set $wed_bride_progress,1;
@@ -911,7 +911,7 @@ function SF_InProgress {
emotion e_swt2;
close;
}
- set Zeny,Zeny-$@wed_divorce_fee;
+ Zeny -= $@wed_divorce_fee;
announce $@divorcer$+" has just divorced "+strcharinfo(0)+"...", 8;
mes "["+@name$+"]";
mes "Your divorce has been filed. You are no longer wed.";
diff --git a/npc/custom/etc/monster_arena.txt b/npc/custom/etc/monster_arena.txt
index 90fd500f6..82f764977 100644
--- a/npc/custom/etc/monster_arena.txt
+++ b/npc/custom/etc/monster_arena.txt
@@ -289,7 +289,7 @@ gon_test,52,103,6 script Monster Trainer 4_M_BARBER,{
menu "Yes",-,"No",L_Exit;
if (Zeny < 1000) goto L_NoZeny;
- set Zeny,Zeny-1000;
+ Zeny -= 1000;
set #monster,10;
mes "[Monster Trainer]";
mes "Congratulations!";
@@ -327,7 +327,7 @@ L_Sell:
if (@sellexp > #monpoints) goto L_NoExp;
set #monpoints,#monpoints-@sellexp;
set @sellearn,100*@sellexp; // Price of exp
- set Zeny,Zeny+@sellearn;
+ Zeny += @sellearn;
mes "[Monster Trainer]";
mes "You earned ^0000FF" + @sellearn + "^000000z.";
close;
diff --git a/npc/custom/etc/penal_servitude.txt b/npc/custom/etc/penal_servitude.txt
index d86c9dc94..9e355e825 100644
--- a/npc/custom/etc/penal_servitude.txt
+++ b/npc/custom/etc/penal_servitude.txt
@@ -43,7 +43,7 @@ M_PAY:
M_PAYCASH:
if (@MUSTPAY>Zeny) goto L_NOCASH;
- set Zeny,Zeny-@MUSTPAY;
+ Zeny -= @MUSTPAY;
mes "[Saddeus]";
mes "OK, sing here and there.";
goto L_RELEASE;
diff --git a/npc/custom/etc/quest_warper.txt b/npc/custom/etc/quest_warper.txt
index 62ea56c93..732dfe135 100644
--- a/npc/custom/etc/quest_warper.txt
+++ b/npc/custom/etc/quest_warper.txt
@@ -323,11 +323,11 @@ L_town:
if (@Tmenuref[@TWMenu-1] == 57005) goto L_End; // 57005='dead' in hex
if(Zeny<@pTprice[@Tmenuref[@TWMenu-1]]) callsub L_Short_on_zeny,0;
- set Zeny, Zeny-@pTprice[@Tmenuref[@TWMenu-1]];
+ Zeny -= @pTprice[@Tmenuref[@TWMenu-1]];
if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + (@pTprice[@Tmenuref[@TWMenu-1]]/16);
warp @pTmap$[@Tmenuref[@TWMenu-1]],@pTXcoords[@Tmenuref[@TWMenu-1]],@pTYcoords[@Tmenuref[@TWMenu-1]];
close2;
- set Zeny, Zeny+@pTprice[@Tmenuref[@TWMenu-1]];
+ Zeny += @pTprice[@Tmenuref[@TWMenu-1]];
end;
//=========================Dungeons================================
@@ -361,11 +361,11 @@ L_dungeon:
set @warpprice, @pDprice[@Dmenuref[@DWMenu-1]]+(getd(@pDfee$[@Dmenuref[@DWMenu-1]])*(@DDepth[@Darrayref]));
if(Zeny<@warpprice) callsub L_Short_on_zeny,1;
- set Zeny, Zeny-(@warpprice);
+ Zeny -= (@warpprice);
if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + (@warpprice/16);
warp @DGat$[@Darrayref],@DXcoords[@Darrayref],@DYcoords[@Darrayref];
close2;
- set Zeny, Zeny+@pTprice[@Tmenuref[@DWMenu-1]];
+ Zeny += @pTprice[@Tmenuref[@DWMenu-1]];
end;
//=============================Healing=============================
@@ -373,7 +373,7 @@ L_dungeon:
L_heal_Full:
set @healfee, $QW_HF_PRICE;
if(Zeny<@healfee) callsub L_Short_on_zeny,4;
- set Zeny, Zeny-@healfee;
+ Zeny -= @healfee;
if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + (@healfee/500);
next;
mes "[Warpra]";
@@ -408,7 +408,7 @@ PHeal:
if (getarg(0) == 1)&&(getarg(1) == 1)&&(Zeny<@healfee) goto Zeny_Short_Both;
if (getarg(0) == 1)&&(Zeny<@healfee) goto Zeny_short_HP;
if (getarg(1) == 1)&&(Zeny<@healfee) goto Zeny_short_SP;
- set Zeny, Zeny-@healfee;
+ Zeny -= @healfee;
if (getarg(0) == 1)&&(getarg(1) == 1) percentheal 100,100;
if (getarg(0) == 1) percentheal 100,0;
if (getarg(1) == 1) percentheal 0,100;
@@ -430,7 +430,7 @@ Zeny_short_HP:
set @HpPrice, @Hp*$QW_HP_H_PRICE;
if (@Hp == 1) mes "You're not worth the effort.";
if (@Hp == 1) goto L_End;
- set Zeny, Zeny-@HpPrice;
+ Zeny -= @HpPrice;
heal @Hp,0;
close;
end;
@@ -443,7 +443,7 @@ Zeny_short_SP:
set @SpPrice, @Sp*$QW_HP_S_PRICE;
if (@Sp == 1) mes "You're not worth the effort.";
if (@Sp == 1) goto L_End;
- set Zeny, Zeny-@SpPrice;
+ Zeny -= @SpPrice;
heal 0,@Sp;
close;
end;
@@ -457,7 +457,7 @@ L_Storage:
if ($QW_S_PRICE == 60)&&(BaseJob == Job_Novice) set @fee, 30;
if ($QW_S_PRICE == 60)&&(BaseJob != Job_Novice) set @fee, 60;
if(Zeny<@fee) callsub L_Short_on_zeny,2;
- set Zeny, Zeny-@fee;
+ Zeny -= @fee;
if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + (@fee/5);
mes "[Warpra]";
@@ -491,7 +491,7 @@ L_GStorage:
end;
}
if (Zeny<$QW_GS_PRICE) callsub L_Short_on_zeny,3;
- set Zeny, Zeny-$QW_GS_PRICE;
+ Zeny -= $QW_GS_PRICE;
if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + ($QW_GS_PRICE/5);
next;
mes "[Warpra]";
diff --git a/npc/custom/etc/shifty_assassin.txt b/npc/custom/etc/shifty_assassin.txt
index 29b8384fe..f01a328fb 100644
--- a/npc/custom/etc/shifty_assassin.txt
+++ b/npc/custom/etc/shifty_assassin.txt
@@ -55,7 +55,7 @@ M_Buy:
next;
menu "Continue",-,"Cancel",M_Exit;
- set Zeny,Zeny-@price;
+ Zeny -= @price;
set #ninjas,#ninjas+@buy;
set $ninja_avail,$ninja_avail-@buy;
diff --git a/npc/custom/etc/stock_market.txt b/npc/custom/etc/stock_market.txt
index 7cd284ef9..060228317 100644
--- a/npc/custom/etc/stock_market.txt
+++ b/npc/custom/etc/stock_market.txt
@@ -278,14 +278,14 @@ S_Sell:
input @sellamount;
if (@sellamount < 1) goto S_SellInv;
if (Zeny < $S_Trans) goto S_NoZeny;
- set Zeny,Zeny-$S_Trans;
+ Zeny -= $S_Trans;
SELLS1:
if (@sellname$ != $S1N$) goto SELLS2;
if (@sellamount > #S1) goto S_SellTooHigh;
set @price,@sellamount*$S1;
set #S1,#S1-@sellamount;
- set Zeny,Zeny+@price;
+ Zeny += @price;
next;
mes "Sold " + @sellamount + " " + $S1N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -297,7 +297,7 @@ SELLS2:
if (@sellamount > #S2) goto S_SellTooHigh;
set @price,@sellamount*$S2;
set #S2,#S2-@sellamount;
- set Zeny,Zeny+@price;
+ Zeny += @price;
next;
mes "Sold " + @sellamount + " " + $S2N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -309,7 +309,7 @@ SELLS3:
if (@sellamount > #S3) goto S_SellTooHigh;
set @price,@sellamount*$S3;
set #S3,#S3-@sellamount;
- set Zeny,Zeny+@price;
+ Zeny += @price;
next;
mes "Sold " + @sellamount + " " + $S3N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -321,7 +321,7 @@ SELLS4:
if (@sellamount > #S4) goto S_SellTooHigh;
set @price,@sellamount*$S4;
set #S4,#S4-@sellamount;
- set Zeny,Zeny+@price;
+ Zeny += @price;
next;
mes "Sold " + @sellamount + " " + $S4N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -333,7 +333,7 @@ SELLS5:
if (@sellamount > #S5) goto S_SellTooHigh;
set @price,@sellamount*$S5;
set #S5,#S5-@sellamount;
- set Zeny,Zeny+@price;
+ Zeny += @price;
next;
mes "Sold " + @sellamount + " " + $S5N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -345,7 +345,7 @@ SELLS6:
if (@sellamount > #S6) goto S_SellTooHigh;
set @price,@sellamount*$S6;
set #S6,#S6-@sellamount;
- set Zeny,Zeny+@price;
+ Zeny += @price;
next;
mes "Sold " + @sellamount + " " + $S6N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -357,7 +357,7 @@ SELLS7:
if (@sellamount > #S7) goto S_SellTooHigh;
set @price,@sellamount*$S7;
set #S7,#S7-@sellamount;
- set Zeny,Zeny+@price;
+ Zeny += @price;
next;
mes "Sold " + @sellamount + " " + $S7N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -369,7 +369,7 @@ SELLS8:
if (@sellamount > #S8) goto S_SellTooHigh;
set @price,@sellamount*$S8;
set #S8,#S8-@sellamount;
- set Zeny,Zeny+@price;
+ Zeny += @price;
next;
mes "Sold " + @sellamount + " " + $S8N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -381,7 +381,7 @@ SELLS9:
if (@sellamount > #S9) goto S_SellTooHigh;
set @price,@sellamount*$S9;
set #S9,#S9-@sellamount;
- set Zeny,Zeny+@price;
+ Zeny += @price;
next;
mes "Sold " + @sellamount + " " + $S9N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -393,7 +393,7 @@ SELLS10:
if (@sellamount > #S10) goto S_SellTooHigh;
set @price,@sellamount*$S10;
set #S10,#S10-@sellamount;
- set Zeny,Zeny+@price;
+ Zeny += @price;
next;
mes "Sold " + @sellamount + " " + $S10N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -443,7 +443,7 @@ S_Buy:
if (@buyamount < $S_BuyMin) goto S_TooLow;
if (@buyamount > $S_BuyMax) goto S_TooHigh;
if (Zeny < $S_Trans) goto S_NoZeny;
- set Zeny,Zeny-$S_Trans;
+ Zeny -= $S_Trans;
// Purchases the shares //
@@ -453,7 +453,7 @@ PURS1:
if (Zeny < @price) goto S_NoZeny;
set #S1,#S1+@buyamount;
set @price,@buyamount*$S1;
- set Zeny,Zeny-@price;
+ Zeny -= @price;
mes "Bought " + @buyamount + " " + $S1N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -464,7 +464,7 @@ PURS2:
set @price,@buyamount*$S2;
if (Zeny < @price) goto S_NoZeny;
set #S2,#S2+@buyamount;
- set Zeny,Zeny-@price;
+ Zeny -= @price;
mes "Bought " + @buyamount + " " + $S2N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -475,7 +475,7 @@ PURS3:
set @price,@buyamount*$S3;
if (Zeny < @price) goto S_NoZeny;
set #S3,#S3+@buyamount;
- set Zeny,Zeny-@price;
+ Zeny -= @price;
mes "Bought " + @buyamount + " " + $S3N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -486,7 +486,7 @@ PURS4:
set @price,@buyamount*$S4;
if (Zeny < @price) goto S_NoZeny;
set #S4,#S4+@buyamount;
- set Zeny,Zeny-@price;
+ Zeny -= @price;
mes "Bought " + @buyamount + " " + $S4N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -497,7 +497,7 @@ PURS5:
set @price,@buyamount*$S5;
if (Zeny < @price) goto S_NoZeny;
set #S5,#S5+@buyamount;
- set Zeny,Zeny-@price;
+ Zeny -= @price;
mes "Bought " + @buyamount + " " + $S5N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -508,7 +508,7 @@ PURS6:
set @price,@buyamount*$S6;
if (Zeny < @price) goto S_NoZeny;
set #S6,#S6+@buyamount;
- set Zeny,Zeny-@price;
+ Zeny -= @price;
mes "Bought " + @buyamount + " " + $S6N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -519,7 +519,7 @@ PURS7:
set @price,@buyamount*$S7;
if (Zeny < @price) goto S_NoZeny;
set #S7,#S7+@buyamount;
- set Zeny,Zeny-@price;
+ Zeny -= @price;
mes "Bought " + @buyamount + " " + $S7N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -530,7 +530,7 @@ PURS8:
set @price,@buyamount*$S8;
if (Zeny < @price) goto S_NoZeny;
set #S8,#S8+@buyamount;
- set Zeny,Zeny-@price;
+ Zeny -= @price;
mes "Bought " + @buyamount + " " + $S8N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -541,7 +541,7 @@ PURS9:
set @price,@buyamount*$S9;
if (Zeny < @price) goto S_NoZeny;
set #S9,#S9+@buyamount;
- set Zeny,Zeny-@price;
+ Zeny -= @price;
mes "Bought " + @buyamount + " " + $S9N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -552,7 +552,7 @@ PURS10:
set @price,@buyamount*$S10;
if (Zeny < @price) goto S_NoZeny;
set #S10,#S10+@buyamount;
- set Zeny,Zeny-@price;
+ Zeny -= @price;
mes "Bought " + @buyamount + " " + $S10N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
diff --git a/npc/custom/events/valentinesdayexp.txt b/npc/custom/events/valentinesdayexp.txt
index 7f12e5325..5a94bc913 100644
--- a/npc/custom/events/valentinesdayexp.txt
+++ b/npc/custom/events/valentinesdayexp.txt
@@ -105,7 +105,7 @@ M_CHOCO:
if (@flag_num > 5) goto L_ERR;
set @needmon,@flag_num*5000;
if (Zeny < @needmon) goto L_NOTENO;
- set Zeny,Zeny - @needmon;
+ Zeny -= @needmon;
getitem 558,@flag_num;
mes "[Stephen]";
mes "There you go!";
@@ -167,7 +167,7 @@ M_CHOCO:
set @needmon,@flag_num*4500;
if (Zeny < @needmon) goto L_NOTENO;
if (countitem(519) < @flag_num) goto L_NOMILK;
- set Zeny,Zeny - @needmon;
+ Zeny -= @needmon;
delitem 519,@flag_num;
getitem 561,@flag_num;
mes "[Jainie]";
diff --git a/npc/custom/item_signer.txt b/npc/custom/item_signer.txt
index 3cd66234b..243ca29c2 100644
--- a/npc/custom/item_signer.txt
+++ b/npc/custom/item_signer.txt
@@ -121,7 +121,7 @@ prt_in,24,61,7 script Perchik 1_M_01,{
emotion e_wah;
close;
}
- if (.@price) set Zeny, Zeny-.@price;
+ if (.@price) Zeny -= .@price;
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];
diff --git a/npc/custom/quests/hunting_missions.txt b/npc/custom/quests/hunting_missions.txt
index d5d466f73..5c3c6a469 100644
--- a/npc/custom/quests/hunting_missions.txt
+++ b/npc/custom/quests/hunting_missions.txt
@@ -92,7 +92,7 @@ function Chk; function Cm;
emotion e_sry;
close;
}
- set Zeny, Zeny-.Reset;
+ Zeny -= .Reset;
emotion e_cash;
}
mes "[Hunting Missions]";
@@ -173,7 +173,7 @@ Mission_Status:
set #Mission_Points, #Mission_Points+.@Mission_Points;
set BaseExp, BaseExp+.@Base_Exp;
set JobExp, JobExp+.@Job_Exp;
- set Zeny, Zeny+.@zeny;
+ Zeny += .@zeny;
for(set .@i,0; .@i<.Quests; set .@i,.@i+1) {
setd "Mission"+.@i,0;
setd "Mission"+.@i+"_",0;
diff --git a/npc/custom/quests/kaho_balmung.txt b/npc/custom/quests/kaho_balmung.txt
index fac8b85ff..4e598922d 100644
--- a/npc/custom/quests/kaho_balmung.txt
+++ b/npc/custom/quests/kaho_balmung.txt
@@ -42,7 +42,7 @@ prontera,158,356,4 script Royal Messenger 8W_SOLDIER,{
close; }
for(set .@j,1; .@j<13; set .@j,.@j+2)
delitem getd(".@Req"+.@i+"["+.@j+"]"), getd(".@Req"+.@i+"["+(.@j+1)+"]");
- set Zeny, Zeny-1000000;
+ Zeny -= 1000000;
mes "I see you already have all the items you need. Here's your "+getitemname(getd(".@Req"+.@i+"[0]"))+", as promised.";
getitem getd(".@Req"+.@i+"[0]"),1;
close;
diff --git a/npc/custom/quests/kahohorn.txt b/npc/custom/quests/kahohorn.txt
index 882728925..840cb4e12 100644
--- a/npc/custom/quests/kahohorn.txt
+++ b/npc/custom/quests/kahohorn.txt
@@ -59,7 +59,7 @@ geffen,115,107,5 script Lord Kaho's Servant 1_M_PUBMASTER,{
for(set .@i,0; .@i<18; set .@i,.@i+1)
delitem .@items[.@i],1;
delitem 714,3;
- set Zeny, Zeny-5000000;
+ Zeny -= 5000000;
mes "Wow! You are brave indeed!";
getitem 5013,1;
mes "Enjoy being God of Rune-Midgard!";
diff --git a/npc/custom/quests/quest_shop.txt b/npc/custom/quests/quest_shop.txt
index 9398826ba..ff383717c 100644
--- a/npc/custom/quests/quest_shop.txt
+++ b/npc/custom/quests/quest_shop.txt
@@ -138,7 +138,7 @@ OnBuyItem:
mes "^FF0000You need "+(((.@q[2]*getiteminfo(.@q[0],6))+Weight-MaxWeight)/10)+" additional weight capacity to complete this trade.^000000";
close;
}
- if (.@q[4]) set Zeny, Zeny-(.@q[4]*.@q[1]);
+ if (.@q[4]) Zeny -= (.@q[4]*.@q[1]);
if (.@q[5]) setd .Points$[0], getd(.Points$[0])-(.@q[5]*.@q[1]);
if (.@q[6]) for(set .@i,6; .@i<getarraysize(.@q); set .@i,.@i+2)
delitem .@q[.@i],.@q[.@i+1]*.@q[1];
diff --git a/npc/custom/quests/questboard.txt b/npc/custom/quests/questboard.txt
index 28a25cc28..b4a53d816 100644
--- a/npc/custom/quests/questboard.txt
+++ b/npc/custom/quests/questboard.txt
@@ -194,7 +194,7 @@ L_checkitems:
mes "[^FF7700Questboard^000000]";
mes "Congratulation! Here is your Reward.";
if(getd("." +currentquest$+"_collectionprize")!=0) getitem(getd("." +currentquest$+"_collectionprize"),getd("." +currentquest$+"_collectionamount"));
- set Zeny,Zeny+getd("." +currentquest$+"_collectionzeny");
+ Zeny += getd("." +currentquest$+"_collectionzeny");
getexp getd("." +currentquest$+"_collectionexp["+0+"]"),getd("." +currentquest$+"_collectionexp["+1+"]");
setd(currentquest$ + "_collection_delay"),gettimetick(2)+.quest_delay;
set currentquest$, "";
@@ -228,7 +228,7 @@ L_checkmobs2:
setd(currentquest$+"_"+.@currentmob+"_"+.@x+"_killcount", 0);
}
if(getd("." +currentquest$+"_huntingprize")!=0) getitem(getd("." +currentquest$+"_huntingprize"),getd("." +currentquest$+"_huntingamount"));
- set Zeny, Zeny+getd("." +currentquest$+"_huntingzeny");
+ Zeny += getd("." +currentquest$+"_huntingzeny");
getexp getd("." +currentquest$+"_huntingexp["+0+"]"),getd("." +currentquest$+"_huntingexp["+1+"]");
setd(currentquest$ + "_hunting_delay"),gettimetick(2)+.quest_delay;
set currentquest$, "";
diff --git a/npc/custom/quests/sphinx_mask.txt b/npc/custom/quests/sphinx_mask.txt
index b4e9c118c..a32828b8b 100644
--- a/npc/custom/quests/sphinx_mask.txt
+++ b/npc/custom/quests/sphinx_mask.txt
@@ -42,7 +42,7 @@ L_Menu:
if (Zeny < getarg(2)) {
mes "Are youz playin wit me? You don't have ze money!";
close; }
- set Zeny, Zeny-getarg(2);
+ Zeny -= getarg(2);
mes "O ho ho, it's a deal, then!";
getitem 7114,1;
set sphmask_q,1;
diff --git a/npc/custom/quests/sunglasses.txt b/npc/custom/quests/sunglasses.txt
index a4c828457..447fca877 100644
--- a/npc/custom/quests/sunglasses.txt
+++ b/npc/custom/quests/sunglasses.txt
@@ -56,7 +56,7 @@ alberta,88,193,5 script Sunglasses Trader 1_F_MERCHANT_01,{
close; }
delitem 730,1;
delitem 949,50;
- set Zeny, Zeny-100000;
+ Zeny -= 100000;
set SG_QUEST1,1;
mes "[Sunglasses Trader]";
mes "Great. Now, listen carefully.";
@@ -94,7 +94,7 @@ moc_fild07,334,186,5 script Maseph 4_F_GON,{
mes "You do not have enough Zeny. Come back to me when you do.";
close; }
delitem 2201,1;
- set Zeny, Zeny-400000;
+ Zeny -= 400000;
mes "Thank you. I will get on it right away...";
next;
mes "[Maseph]";
diff --git a/npc/custom/quests/thq/THQS_GuildNPC.txt b/npc/custom/quests/thq/THQS_GuildNPC.txt
index 3e0723781..326735a7a 100644
--- a/npc/custom/quests/thq/THQS_GuildNPC.txt
+++ b/npc/custom/quests/thq/THQS_GuildNPC.txt
@@ -26,7 +26,7 @@ yuno_in01,124,164,6 script Guild Leader 1_M_PRON_KING,{
next;
menu "Pay ^FF000025,000z^000000.",-,"Thats way to high!!",N_HighPrice;
if (Zeny < 25000) goto N_NoZeny;
- set Zeny,Zeny-25000;
+ Zeny -= 25000;
//getitem 7950, 1;
//getitem 7951, 1;
set Event_THQS,1;
diff --git a/npc/custom/quests/thq/THQS_QuestNPC.txt b/npc/custom/quests/thq/THQS_QuestNPC.txt
index 9a09089b0..76790221b 100644
--- a/npc/custom/quests/thq/THQS_QuestNPC.txt
+++ b/npc/custom/quests/thq/THQS_QuestNPC.txt
@@ -42,7 +42,7 @@ N_PayZeny:
set nine_qset, 0;
set ten_qset, 0;
set On_Quest, 0;
- set Zeny,Zeny-2500;
+ Zeny -= 2500;
//add time delay penalty. You can get another quest after 2 - 3 hours. [Lupus]
set #THQ_DELAY, (gettime(7)*12*31*24+gettime(6)*31*24+gettime(5)*24+gettime(3)+rand(2,3));
mes "[Guy]";
diff --git a/npc/custom/quests/thq/THQS_TTShop.txt b/npc/custom/quests/thq/THQS_TTShop.txt
index 25e080a8e..dfa83a587 100644
--- a/npc/custom/quests/thq/THQS_TTShop.txt
+++ b/npc/custom/quests/thq/THQS_TTShop.txt
@@ -51,7 +51,7 @@ N_Shop:
close;
N_GetZeny1k:
set #Treasure_Token,#Treasure_Token-1;
- set Zeny,Zeny+1000;
+ Zeny += 1000;
close;
N_10T:
if (#Treasure_Token > 9) goto N_GetZeny10k;
@@ -59,7 +59,7 @@ N_10T:
close;
N_GetZeny10k:
set #Treasure_Token,#Treasure_Token-10;
- set Zeny,Zeny+10000;
+ Zeny += 10000;
close;
N_100T:
if (#Treasure_Token > 99) goto N_GetZeny100k;
@@ -67,7 +67,7 @@ N_100T:
close;
N_GetZeny100k:
set #Treasure_Token,#Treasure_Token-100;
- set Zeny,Zeny+100000;
+ Zeny += 100000;
close;
N_BuyWeps:
diff --git a/npc/custom/resetnpc.txt b/npc/custom/resetnpc.txt
index ae86ea035..1f8448111 100644
--- a/npc/custom/resetnpc.txt
+++ b/npc/custom/resetnpc.txt
@@ -33,7 +33,7 @@ prontera,150,193,4 script Reset Girl 4_F_TELEPORTER,{
mes "Sorry, you don't have enough Zeny.";
close;
}
- set Zeny, Zeny-.@ResetSkill;
+ Zeny -= .@ResetSkill;
sc_end SC_ALL;
resetskill;
mes "There you go!";
@@ -44,7 +44,7 @@ prontera,150,193,4 script Reset Girl 4_F_TELEPORTER,{
mes "Sorry, you don't have enough Zeny.";
close;
}
- set Zeny, Zeny-.@ResetStat;
+ Zeny -= .@ResetStat;
resetstatus;
mes "There you go!";
close;
@@ -54,7 +54,7 @@ prontera,150,193,4 script Reset Girl 4_F_TELEPORTER,{
mes "Sorry, you don't have enough Zeny.";
close;
}
- set Zeny, Zeny-.@ResetBoth;
+ Zeny -= .@ResetBoth;
sc_end SC_ALL;
resetskill;
resetstatus;
diff --git a/npc/custom/test.txt b/npc/custom/test.txt
index 0fffecf73..5d5dcf8e9 100644
--- a/npc/custom/test.txt
+++ b/npc/custom/test.txt
@@ -16,6 +16,7 @@ OnCheck:
.@ref = getarg(2,1);
if (.@val != .@ref) {
debugmes "Error: "+.@msg$+": '"+.@val+"' != '"+.@ref+"'";
+ .errors++;
//end;
}
return;
@@ -25,10 +26,13 @@ OnCheckStr:
.@ref$ = getarg(2,"");
if (.@val$ != .@ref$) {
debugmes "Error: "+.@msg$+": '"+.@val$+"' != '"+.@ref$+"'";
+ .errors++;
//end;
}
return;
OnInit:
+ .errors = 0;
+
// Array subscript
setarray .@a, 3, 2, 1;
callsub(OnCheck, "Array subscript", .@a[2]);
@@ -358,63 +362,25 @@ OnInit:
// Associativity of assignment operators
.@x = 0; .@y = 0;
.@x = .@y = 1;
- callsub(OnCheck, "1Associativity of =", .@x);
- callsub(OnCheck, "2Associativity of =", .@y);
+ callsub(OnCheck, "Associativity of =", .@x);
+ callsub(OnCheck, "Associativity of =", .@y);
.@x = 0; .@y = 1;
.@x = .@y += 4;
- callsub(OnCheck, "3Associativity of =", .@x, 5);
- callsub(OnCheck, "4Associativity of =", .@y, 5);
+ callsub(OnCheck, "Associativity of = and +=", .@x, 5);
+ callsub(OnCheck, "Associativity of = and +=", .@y, 5);
.@x = 5; .@y = 3;
.@z = 8;
-/*
- * 0001b4 C_NAME setr
- * 0001b8 C_ARG
- * 0001b9 C_NAME .@x
- * 0001bd C_REF
- * 0001bd C_INT 16
- * 0001bf C_MUL
- * 0001c0 C_FUNC
- * 0001c1 C_EOL
- */
- /* FIXME
- .@x *= (.@y += 1);
- //set(.@x, .@x * set(.@y, .@y + 1));
- //.@x = (.@x * (.@y = .@y + 1));
- */
-/*
- * 0001c2 C_NAME setr
- * 0001c6 C_ARG
- * 0001c7 C_NAME .@x
- * 0001cb C_REF
- * 0001cc C_NAME setr
- * 0001d0 C_ARG
- * 0001d1 C_NAME .@y
- * 0001d5 C_REF
- * 0001d5 C_INT 1
- * 0001d7 C_ADD
- * 0001d8 C_FUNC
- * 0001d9 C_MUL
- * 0001da C_FUNC
- * 0001db C_EOL
- */
-/*
- * 0001c2 C_NAME setr
- * 0001c6 C_ARG
- * 0001c7 C_NAME .@x
- * 0001cb C_REF
- * 0001cc C_NAME setr
- * 0001d0 C_ARG
- * 0001d1 C_NAME .@y
- * 0001d4 C_INT 2
- * 0001d6 C_FUNC
- * 0001d7 C_MUL
- * 0001d8 C_FUNC
- * 0001d9 C_EOL
- */
- /*
- callsub(OnCheck, "5Associativity of =", .@x, 20);
- callsub(OnCheck, "6Associativity of =", .@y, 4);
- */
+ .@x *= .@y += 1;
+ callsub(OnCheck, "Associativity of *= and +=", .@x, 20);
+ callsub(OnCheck, "Associativity of *= and +=", .@y, 4);
+
+ .@x = 1; .@y = 3;
+ .@x += .@y * 10;
+ callsub(OnCheck, "Order of += and *", .@x, 31);
+ .@x = 1; .@y = 3;
+ .@x = .@y != 3 ? .@y = 2 : 4;
+ callsub(OnCheck, "Order of = and ?:", .@x, 4);
+ // FIXME callsub(OnCheck, "Short-circuit of ?:", .@y, 3);
.@x = 0;
if (0)
@@ -424,7 +390,11 @@ OnInit:
.@x = 3;
callsub(OnCheck, "Dangling else", .@x, 0);
- debugmes "Script engine self-test [ PASSED ]";
+ if (.errors) {
+ debugmes "Script engine self-test [ FAILED ]";
+ debugmes "The test was completed with " + .errors + " errors.";
+ } else {
+ debugmes "Script engine self-test [ PASSED ]";
+ }
}
-// vim: set ft=ath :
diff --git a/npc/events/bossnia.txt b/npc/events/bossnia.txt
index 70f4fc21c..38e35f2b2 100644
--- a/npc/events/bossnia.txt
+++ b/npc/events/bossnia.txt
@@ -72,7 +72,7 @@ prontera,132,125,4 script Bossnia Staff#1 4_M_PHILMAN,{
mes "Take care, boy~";
mes "Don't hold a grudge against me.";
close2;
- set Zeny, Zeny - 5000;
+ Zeny -= 5000;
warp "bossnia_0"+.@i,rand(202,204),rand(202,204);
end;
}
diff --git a/npc/events/dumplingfestival.txt b/npc/events/dumplingfestival.txt
index 04a8b7f4c..6c5a3b6b5 100644
--- a/npc/events/dumplingfestival.txt
+++ b/npc/events/dumplingfestival.txt
@@ -38,7 +38,7 @@ payon,93,81,4 script Exorcist Master Fahae 4_M_BUDDHIST,{
if(@input==0) close;
if(@input>5) goto L_SORRY;
if(Zeny< @input*20000) goto L_NoZeny;
- set Zeny,Zeny-20000*@input;
+ Zeny -= 20000*@input;
getitem 682,@input;
mes "[Exorcist Master Fahae]";
mes "Here you go, I hope you may succeed in my quest.";
@@ -65,7 +65,7 @@ M_HERB:
if(@input==0) close;
if(@input>5) goto L_SORRY;
if(Zeny< @input*10000) goto L_NoZeny;
- set Zeny,Zeny-10000*@input;
+ Zeny -= 10000*@input;
getitem 683,@input;
mes "[Exorcist Master Fahae]";
mes "Here you go, I hope you may succeed in my quest.";
diff --git a/npc/events/easter_2008.txt b/npc/events/easter_2008.txt
index 6b64df494..79dfc4cce 100644
--- a/npc/events/easter_2008.txt
+++ b/npc/events/easter_2008.txt
@@ -118,7 +118,7 @@ prontera,111,99,5 script Egg Salesman#prt::EggVendor 4W_M_02,{
mes "them, but I don't know anything";
mes "about that. Well, have a good";
mes "time, and I'll see you again!";
- set Zeny, Zeny-.@egg_zeny;
+ Zeny -= .@egg_zeny;
getitem 7605,.@input; //Chicken_Egg
close;
}
diff --git a/npc/events/easter_2010.txt b/npc/events/easter_2010.txt
index 50a22aec8..292b91948 100644
--- a/npc/events/easter_2010.txt
+++ b/npc/events/easter_2010.txt
@@ -384,7 +384,7 @@ prontera,204,297,3 script Rina's Little Friend 4_DRAGON_EGG,{
specialeffect EF_ASPERSIO;
delitem 574,1; //Egg
delitem 1001,20; //Sparkling_Dust
- set Zeny, Zeny - .@nCharge;
+ Zeny -= .@nCharge;
set .@nPercentage, rand(1,100);
if (.@nPercentage <= 41) {
mes "[Rina's Little Friend]";
diff --git a/npc/events/event_skill_reset.txt b/npc/events/event_skill_reset.txt
index 7248266ec..af1b387f2 100644
--- a/npc/events/event_skill_reset.txt
+++ b/npc/events/event_skill_reset.txt
@@ -96,7 +96,7 @@ L_Reset:
emotion e_hmm;
close;
}
- set Zeny, Zeny-@zeny;
+ Zeny -= @zeny;
set MISC_QUEST,MISC_QUEST | 1024;
resetskill;
mes @npcname$;
diff --git a/npc/events/halloween_2006.txt b/npc/events/halloween_2006.txt
index 5bc7c3332..06c101529 100644
--- a/npc/events/halloween_2006.txt
+++ b/npc/events/halloween_2006.txt
@@ -517,7 +517,7 @@ nif_fild01,165,115,3 script Chicken Masta#06_hw 4_M_NFDEADMAN2,{
mes "[Chicken Masta]";
mes "Thanks.";
mes "Here are the eggs.";
- set Zeny,Zeny-2000;
+ Zeny -= 2000;
set halloween, 102;
getitem 574,2; //Egg
close;
@@ -533,7 +533,7 @@ nif_fild01,165,115,3 script Chicken Masta#06_hw 4_M_NFDEADMAN2,{
mes "[Chicken Masta]";
mes "Thanks.";
mes "Here are the eggs.";
- set Zeny,Zeny-1000;
+ Zeny -= 1000;
set halloween, 102;
getitem 574,1; //Egg
close;
@@ -624,7 +624,7 @@ nif_fild01,165,115,3 script Chicken Masta#06_hw 4_M_NFDEADMAN2,{
mes "Here you are.";
mes "But no more.";
mes "If you want more eggs, find me more chickens.";
- set Zeny,Zeny-@hw_egg;
+ Zeny -= @hw_egg;
getitem 574, @input;//Egg
set halloween, 102;
close;
diff --git a/npc/events/lunar_2008.txt b/npc/events/lunar_2008.txt
index 577869be3..6c81d0d38 100644
--- a/npc/events/lunar_2008.txt
+++ b/npc/events/lunar_2008.txt
@@ -257,7 +257,7 @@ payon,126,113,4 script Miss Lunar#rat 4_F_NACORURI,{
next;
if (select("Yes:No") == 1) {
if (Zeny >= 3000) {
- set Zeny,Zeny-3000;
+ Zeny -= 3000;
getitem 554,10; // Mojji
mes "[Lunar]";
mes "Thank you, and I hope you";
diff --git a/npc/events/nguild/nguild_managers.txt b/npc/events/nguild/nguild_managers.txt
index de185213e..d6ecfbf2f 100644
--- a/npc/events/nguild/nguild_managers.txt
+++ b/npc/events/nguild/nguild_managers.txt
@@ -65,7 +65,7 @@ function script F_GldManager {
mes "Master, you do not have enough money to employ a Kafra. Employment has been cancelled.";
return;
}
- set Zeny,Zeny-10000;
+ Zeny -= 10000;
enablenpc "Kafra Staff#"+getarg(4);
setcastledata getarg(1),9,1;
mes "You have created a contract with the Kafra Staff Company.";
diff --git a/npc/events/valentinesday.txt b/npc/events/valentinesday.txt
index e7f144102..fd26be298 100644
--- a/npc/events/valentinesday.txt
+++ b/npc/events/valentinesday.txt
@@ -48,7 +48,7 @@ alberta,26,243,4 script Stephen 1_M_MERCHANT,{
if (Zeny < .@i*5000) {
mes "I'm sorry, but it seems you can't afford to buy these off me.";
close; }
- set Zeny, Zeny - .@i*5000;
+ Zeny -= .@i*5000;
getitem 558,.@i;
mes "There you go!";
mes "You can give that to someone as a gift, or enjoy it yourself!";
diff --git a/npc/events/valentinesday_2009.txt b/npc/events/valentinesday_2009.txt
index 2e02c124c..edb151c6e 100644
--- a/npc/events/valentinesday_2009.txt
+++ b/npc/events/valentinesday_2009.txt
@@ -91,7 +91,7 @@ prontera,164,174,4 script Trader#Val09 1_M_MERCHANT,{
mes "[Marco Bassinio]";
mes "If you want more, you should come back.";
mes "Might be a good idea to buy some more while you have a chance...!";
- set Zeny,Zeny - .@price;
+ Zeny -= .@price;
getitem 558,.@input;
close;
}
@@ -140,7 +140,7 @@ prontera,164,174,4 script Trader#Val09 1_M_MERCHANT,{
delitem 7175,1;
delitem 7174,1;
delitem 7948,1;
- set Zeny,Zeny-500;
+ Zeny -= 500;
getnameditem 12744,strcharinfo(0);
mes "[Marco Bassinio]";
mes "Happy Valentine's Day!";
@@ -206,7 +206,7 @@ prontera,147,171,5 script Packs Trader#Val09 1_M_MERCHANT,{
mes "[Packs Trader]";
mes "Here they are.";
mes "Hope it makes your Valentine's Day more pleasing!";
- set Zeny,Zeny-.@price;
+ Zeny -= .@price;
getitem 7175,.@input;
next;
break;
@@ -247,7 +247,7 @@ prontera,147,171,5 script Packs Trader#Val09 1_M_MERCHANT,{
mes "[Packs Trader]";
mes "Here they are.";
mes "Hope it makes your Valentine's Day more pleasing!";
- set Zeny,Zeny-.@price;
+ Zeny -= .@price;
getitem 7174,.@input;
next;
break;
@@ -288,7 +288,7 @@ prontera,147,171,5 script Packs Trader#Val09 1_M_MERCHANT,{
mes "[Packs Trader]";
mes "Here they are.";
mes "Hope it makes your Valentine's Day more pleasing!";
- set Zeny,Zeny-.@price;
+ Zeny -= .@price;
getitem 7948,.@input;
next;
break;
@@ -376,7 +376,7 @@ prontera,154,185,5 script Event Ring Maker#Val09 4_F_KAFRA7,{
delitem 7175,1;
delitem 7174,1;
delitem 7948,1;
- set Zeny,Zeny-1000;
+ Zeny -= 1000;
set iROval09ring,1;
if (Sex) {
getnameditem 12742,strcharinfo(0);
diff --git a/npc/events/whiteday.txt b/npc/events/whiteday.txt
index 472f0030b..4cb6a3815 100644
--- a/npc/events/whiteday.txt
+++ b/npc/events/whiteday.txt
@@ -72,7 +72,7 @@ L_INPUT:
if (@maplenum == 0) goto M_End;
set @maplePriceT,@maplePrice*@maplenum;
if (Zeny < @maplePriceT) goto L_ERROR2;
- set Zeny,Zeny- @maplePriceT;
+ Zeny -= @maplePriceT;
getitem @mapleItemID,@maplenum;
mes "[Sugar]";
mes "Thank you!!!";
diff --git a/npc/guild/agit_main.txt b/npc/guild/agit_main.txt
index f47beaf33..7bc672ee5 100644
--- a/npc/guild/agit_main.txt
+++ b/npc/guild/agit_main.txt
@@ -383,7 +383,7 @@ OnRecvCastle:
cutin "",255;
end;
}
- set Zeny, Zeny - 200;
+ Zeny -= 200;
set RESRVPTS,RESRVPTS+2;
close2;
warp .@destination$[1],.@coordinates[0],.@coordinates[1];
@@ -435,7 +435,7 @@ OnRecvCastle:
end;
}
set RESRVPTS,RESRVPTS+8;
- set Zeny, Zeny - 800;
+ Zeny -= 800;
setcart;
close2;
cutin "",255;
@@ -689,7 +689,7 @@ OnRecvCastle:
mes "I'm sorry but there is not enough zeny to invest. You will have to try again when you have the funds, Master.";
close;
}
- set Zeny, Zeny - .@eco_invest;
+ Zeny -= .@eco_invest;
setcastledata strnpcinfo(2),4,getcastledata(strnpcinfo(2),4)+1;
mes "[ "+strnpcinfo(1)+"]";
mes "We finished the investment safely. I expect that our growth level will be increased by tomorrow.";
@@ -755,7 +755,7 @@ OnRecvCastle:
mes "I'm sorry but there is not enough zeny to invest. You will have to try again when you have the funds, Master.";
close;
}
- set Zeny, Zeny - .@def_invest;
+ Zeny -= .@def_invest;
setcastledata strnpcinfo(2),5,getcastledata(strnpcinfo(2),5)+1;
mes "[ "+strnpcinfo(1)+"]";
mes "We finished the investment safely. I expect that our Castle Defense level will be increased by tomorrow.";
@@ -803,7 +803,7 @@ OnRecvCastle:
mes "Well... I'm sorry but we don't have funds to summon the Guardian. We failed to summon the Guardian.";
close;
}
- set Zeny, Zeny - 10000;
+ Zeny -= 10000;
setcastledata strnpcinfo(2),.@GDnum,1; // mark as 'installed'
set .@UseGID,.@GDnum - 10;
if (.@guardiantype[.@UseGID] == 1) { set .@type,1287; }
@@ -870,7 +870,7 @@ OnRecvCastle:
mes "Well... I'm sorry but we don't have enough funds to hire a Kafra Employee.";
close;
}
- set Zeny, Zeny - 10000;
+ Zeny -= 10000;
enablenpc "Kafra Staff#"+strnpcinfo(2);
setcastledata strnpcinfo(2),9,1;
mes "["+strnpcinfo(1)+"]";
diff --git a/npc/guild2/agit_main_se.txt b/npc/guild2/agit_main_se.txt
index 685900792..ecd06d836 100644
--- a/npc/guild2/agit_main_se.txt
+++ b/npc/guild2/agit_main_se.txt
@@ -330,7 +330,7 @@ OnTreasureDied:
mes "for the guild today.";
close;
}
- set Zeny, Zeny-.@eco_invest;
+ Zeny -= .@eco_invest;
setcastledata strnpcinfo(4),4,getcastledata(strnpcinfo(4),4)+1;
mes "[ Steward ]";
mes "A wise use of the guild's";
@@ -418,7 +418,7 @@ OnTreasureDied:
mes "for the guild today.";
close;
}
- set Zeny, Zeny-.@def_invest;
+ Zeny -= .@def_invest;
setcastledata strnpcinfo(4),5,getcastledata(strnpcinfo(4),5)+1;
mes "[ Steward ]";
mes "A wise use of the guild's";
@@ -510,7 +510,7 @@ OnTreasureDied:
mes "funds to pay the contract fee.";
close;
}
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
enablenpc "Kafra Employee#"+strnpcinfo(2);
setcastledata strnpcinfo(4),9,1;
mes "[ Steward ]";
@@ -871,7 +871,7 @@ OnInit:
cutin "kafra_01",255;
end;
}
- set Zeny, Zeny-200;
+ Zeny -= 200;
warp "rachel",115,125;
end;
case 2:
@@ -909,7 +909,7 @@ OnInit:
cutin "kafra_01",255;
end;
}
- set Zeny, Zeny-800;
+ Zeny -= 800;
setcart;
break;
case 2:
diff --git a/npc/instances/EndlessTower.txt b/npc/instances/EndlessTower.txt
index 536edcce8..f8f8d541f 100644
--- a/npc/instances/EndlessTower.txt
+++ b/npc/instances/EndlessTower.txt
@@ -159,7 +159,7 @@ alberta,214,77,6 script Captain Janssen 4_M_SEAMAN,{
else {
mes "[Captain Janssen]";
mes "Excellent! Now we're good to go. Let's pull up the anchor again!";
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
close2;
warp "e_tower",70,114;
end;
@@ -199,7 +199,7 @@ alberta,214,77,6 script Captain Janssen 4_M_SEAMAN,{
next;
mes "[Captain Janssen]";
mes "Thank you so much! Now I can stock up on food and materials for my ship. You're kind, very kind!";
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
set in_102tower,1;
close;
}
diff --git a/npc/instances/SealedShrine.txt b/npc/instances/SealedShrine.txt
index ffa2d979d..8713dc0e5 100644
--- a/npc/instances/SealedShrine.txt
+++ b/npc/instances/SealedShrine.txt
@@ -289,7 +289,7 @@ prt_monk,261,91,3 script Rust Blackhand#edq 4_M_DWARF,{
delitem 2256,1; //Magestic_Goat
delitem 7799,30; //Dark_Crystal
delitem 7798,50; //Dark_Debris
- set Zeny, Zeny-990000;
+ Zeny -= 990000;
completequest 3043;
getitem 5374,1; //L_Magestic_Goat
mes "[Rust Blackhand]";
diff --git a/npc/jobs/2-1/blacksmith.txt b/npc/jobs/2-1/blacksmith.txt
index c8cfd8a2d..48cf68150 100644
--- a/npc/jobs/2-1/blacksmith.txt
+++ b/npc/jobs/2-1/blacksmith.txt
@@ -1616,7 +1616,7 @@ geffen_in,109,170,3 script Blacksmith Guildsman#gef 4_F_JOB_BLACKSMITH,{
mes "Excuse me, but you do not have enough money.";
close;
}
- set Zeny, Zeny-600;
+ Zeny -= 600;
warp "izlude",94,103;
end;
case 3:
diff --git a/npc/jobs/2-1/hunter.txt b/npc/jobs/2-1/hunter.txt
index d8e36f6af..b770d93df 100644
--- a/npc/jobs/2-1/hunter.txt
+++ b/npc/jobs/2-1/hunter.txt
@@ -1633,7 +1633,7 @@ job_hunte,64,92,0 duplicate(HntTrap) 57-1 -1,0,0
job_hunte,64,93,0 duplicate(HntTrap) 57-2 -1,0,0
job_hunte,65,92,0 duplicate(HntTrap) 57-3 -1,0,0
-job_hunte,65,93,0 script 1_M_LIBRARYMASTER-4::HntTrap2 -1,{
+job_hunte,65,93,0 script 57-4::HntTrap2 -1,{
OnTouch:
mapannounce "job_hunte",strcharinfo(0) + ", has failed me! Go back to where you started!",bc_map;
set HNTR_Q,13;
diff --git a/npc/jobs/2-1/knight.txt b/npc/jobs/2-1/knight.txt
index 0b988998e..368cbca45 100644
--- a/npc/jobs/2-1/knight.txt
+++ b/npc/jobs/2-1/knight.txt
@@ -2062,7 +2062,7 @@ prt_in,87,92,4 script Sir Gray#knt 2_M_SWORDMASTER,{
mes "You attained a reliable item.";
mes "It'll be a good companion on your adventures.";
delitem 999,1; //Steel
- set Zeny, Zeny - 74000;
+ Zeny -= 74000;
getitem 1163,1; //Claymore
close;
}
diff --git a/npc/jobs/2-2/alchemist.txt b/npc/jobs/2-2/alchemist.txt
index 59504aadd..1bb03d812 100644
--- a/npc/jobs/2-2/alchemist.txt
+++ b/npc/jobs/2-2/alchemist.txt
@@ -175,7 +175,7 @@ alde_alche,27,185,5 script Alchemist Guildsman#am 4_F_ALCHE,{
mes "Come back to me when you have 50,000 Zeny, otherwise we can't process your application.";
close;
}
- set Zeny, Zeny-50000;
+ Zeny -= 50000;
mes "[Parmy Gianino]";
mes "Let's see.";
mes "" + strcharinfo(0);
diff --git a/npc/jobs/2-2/dancer.txt b/npc/jobs/2-2/dancer.txt
index 4075ce51f..e0b59c71d 100644
--- a/npc/jobs/2-2/dancer.txt
+++ b/npc/jobs/2-2/dancer.txt
@@ -316,7 +316,7 @@ job_duncer,43,93,4 script Aile#da 4_F_07,{
mes "tuition fee.";
next;
cutin "job_dancer_eir01",2;
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
mes "[Aile]";
mes "Next, go to ^CD6889Bijou^000000, who is in charge of the interviewing process. She will have a couple of things she'll need to ask you.";
set DANC_Q,5;
diff --git a/npc/jobs/2-2/rogue.txt b/npc/jobs/2-2/rogue.txt
index 4ce7fe424..842d9cd05 100644
--- a/npc/jobs/2-2/rogue.txt
+++ b/npc/jobs/2-2/rogue.txt
@@ -661,7 +661,7 @@ in_rogue,376,23,1 script Mr. Smith#rg 1_M_LIBRARYMASTER,{
countitem(908) > 4 && countitem(945) > 4) {
mes "[Mr. Smith]";
mes "Ummm...let's see...";
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
delitem 915,5; //Chrysalis
delitem 713,5; //Empty_Bottle
delitem 1002,5; //Iron_Ore
@@ -974,7 +974,7 @@ S_CheckItems:
if (Zeny > 9999 && countitem(getarg(0)) >= getarg(1) && countitem(getarg(2)) >= getarg(3) && countitem(getarg(4)) >= getarg(5) && countitem(getarg(6)) >= getarg(7)) {
mes "[Mr. Smith]";
mes "Okay, we've got the application fee, ^FF000010,000 zeny^000000, "+getarg(1)+" "+getitemname(getarg(0))+", "+getarg(3)+" "+getitemname(getarg(2))+", "+getarg(5)+" "+getitemname(getarg(4))+" and "+getarg(7)+" "+getitemname(getarg(6))+"...";
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
delitem getarg(0),getarg(1);
delitem getarg(2),getarg(3);
delitem getarg(4),getarg(5);
diff --git a/npc/jobs/2-2/sage.txt b/npc/jobs/2-2/sage.txt
index 4f93ba7db..46973a538 100644
--- a/npc/jobs/2-2/sage.txt
+++ b/npc/jobs/2-2/sage.txt
@@ -343,7 +343,7 @@ yuno_in03,154,35,4 script Staff of the Academy#a 2_M_SAGE_B,{
next;
if (select("Pay 70,000 zeny.:Give him Old Magicbook and Necklace of Wisdom.") == 1) {
if (Zeny > 69999) {
- set Zeny, Zeny-70000;
+ Zeny -= 70000;
mes "[Metheus Sylphe]";
mes "Thank you, your application has been accepted.";
mes "Next, you will take an entrance test.";
@@ -515,7 +515,7 @@ yuno_in03,154,35,4 script Staff of the Academy#a 2_M_SAGE_B,{
next;
}
else if (Zeny > 69999) {
- set Zeny, Zeny-70000;
+ Zeny -= 70000;
mes "[Metheus Sylphe]";
mes "Well done. Let me proceed with your application request.";
set SAGE_Q,4;
@@ -545,7 +545,7 @@ yuno_in03,154,35,4 script Staff of the Academy#a 2_M_SAGE_B,{
if (Zeny > 29999) {
for (set .@i, 0; .@i < .@size ; set .@i, .@i+1)
delitem .@item[.@i], .@count[.@i];
- set Zeny, Zeny-30000;
+ Zeny -= 30000;
mes "[Metheus Sylphe]";
mes "Well done. Let me proceed with your application request.";
set .@SAGE_Q_T,SAGE_Q;
diff --git a/npc/jobs/novice/supernovice.txt b/npc/jobs/novice/supernovice.txt
index cf9ea7b87..2887b2ae3 100644
--- a/npc/jobs/novice/supernovice.txt
+++ b/npc/jobs/novice/supernovice.txt
@@ -431,7 +431,7 @@ aldebaran,54,238,5 script Kafra Employee#sn 4_F_KAFRA1,{
}
if (Zeny >= 1899) {
set RESRVPTS, RESRVPTS + 190;
- set Zeny, Zeny-1900;
+ Zeny -= 1900;
if (getskilllv("MC_PUSHCART") > 0) setcart;
mes "[Kafra Employee]";
mes "Thank you for using my service.";
diff --git a/npc/jobs/valkyrie.txt b/npc/jobs/valkyrie.txt
index 42c27551c..0aa4c4e3f 100644
--- a/npc/jobs/valkyrie.txt
+++ b/npc/jobs/valkyrie.txt
@@ -231,7 +231,7 @@ yuno_in02,88,164,5 script Metheus Sylphe#Library 2_M_SAGE_B,{
next;
if (select("Donate.:Cancel.") == 1) {
if (Zeny >= 1285000) {
- set Zeny, Zeny-1285000;
+ Zeny -= 1285000;
set valkyrie_Q,1;
mes "[Metheus Sylphe]";
mes "Thank you, your donation will be used for a good cause. You may";
diff --git a/npc/kafras/cool_event_corp.txt b/npc/kafras/cool_event_corp.txt
index e06f0dedc..4566d36f0 100644
--- a/npc/kafras/cool_event_corp.txt
+++ b/npc/kafras/cool_event_corp.txt
@@ -56,7 +56,7 @@ hugel,88,168,4 script Cool Event Corp. Staff::CoolEventCorpStaffHugel 4_M_ZONDAM
close2;
break;
}
- set Zeny, Zeny - 40;
+ Zeny -= 40;
mes "Let me open your personal";
mes "storage for you right away.";
mes "Thanks for supporting Cool";
@@ -110,7 +110,7 @@ hugel,88,168,4 script Cool Event Corp. Staff::CoolEventCorpStaffHugel 4_M_ZONDAM
mes "Zeny to pay the Pushcart";
mes "rental fee of 800 Zeny.";
} else {
- set Zeny, Zeny - 800;
+ Zeny -= 800;
setcart;
}
}
@@ -172,7 +172,7 @@ rachel,109,138,5 script Cool Event Corp. Staff::CoolEventCorpStaffRachel 4_M_ZON
close2;
break;
}
- set Zeny, Zeny - 40;
+ Zeny -= 40;
mes "Let me open your personal";
mes "storage for you right away.";
mes "Thanks for supporting Cool";
@@ -192,7 +192,7 @@ rachel,109,138,5 script Cool Event Corp. Staff::CoolEventCorpStaffRachel 4_M_ZON
delitem 7060,1;
}
else {
- set Zeny,Zeny-2200;
+ Zeny -= 2200;
}
warp "veins",205,101;
cutin "",255;
@@ -252,7 +252,7 @@ rachel,109,138,5 script Cool Event Corp. Staff::CoolEventCorpStaffRachel 4_M_ZON
mes "Zeny to pay the Pushcart";
mes "rental fee of 800 Zeny.";
} else {
- set Zeny, Zeny - 800;
+ Zeny -= 800;
setcart;
}
}
@@ -314,7 +314,7 @@ veins,208,128,5 script Cool Event Corp. Staff::CoolEventCorpStaffVeins 4_M_ZONDA
close2;
break;
}
- set Zeny, Zeny - 40;
+ Zeny -= 40;
mes "Let me open your personal";
mes "storage for you right away.";
mes "Thanks for supporting Cool";
@@ -334,7 +334,7 @@ veins,208,128,5 script Cool Event Corp. Staff::CoolEventCorpStaffVeins 4_M_ZONDA
delitem 7060,1;
}
else {
- set Zeny,Zeny-2200;
+ Zeny -= 2200;
}
warp "rachel",115,125;
cutin "",255;
@@ -395,7 +395,7 @@ veins,208,128,5 script Cool Event Corp. Staff::CoolEventCorpStaffVeins 4_M_ZONDA
mes "rental fee of 800 Zeny.";
close2;
} else {
- set Zeny, Zeny - 800;
+ Zeny -= 800;
setcart;
}
}
diff --git a/npc/kafras/dts_warper.txt b/npc/kafras/dts_warper.txt
index 3a76e8259..560d96e01 100644
--- a/npc/kafras/dts_warper.txt
+++ b/npc/kafras/dts_warper.txt
@@ -534,7 +534,7 @@ function script F_VoteKafra {
case 1:
if (Zeny >= 4000) {
cutin "",255;
- set Zeny, Zeny-4000;
+ Zeny -= 4000;
warp "xmas_dun02",130,123;
end;
}
@@ -558,7 +558,7 @@ function script F_VoteKafra {
switch(select("Toy Factory, Level 2 -> 4,000 z:Clock Tower, Level 3 -> 4,000 z:Cancel")) {
case 1:
if (Zeny >= 4000) {
- set Zeny, Zeny-4000;
+ Zeny -= 4000;
cutin "kafra_09",255;
warp "xmas_dun02",130,123;
end;
@@ -574,7 +574,7 @@ function script F_VoteKafra {
break;
case 2:
if (Zeny >= 4000) {
- set Zeny, Zeny-4000;
+ Zeny -= 4000;
cutin "kafra_09",255;
warp "alde_dun03",265,22;
end;
@@ -599,7 +599,7 @@ function script F_VoteKafra {
switch(select("Toy Factory, Level 2 -> 4,000 z:Clock Tower, Level 3 -> 4,000 z:Lava Dungeon, Level 2 -> 4,000 z:Cancel")) {
case 1:
if (Zeny >= 4000) {
- set Zeny, Zeny-4000;
+ Zeny -= 4000;
cutin "kafra_09",255;
warp "xmas_dun02",130,123;
end;
@@ -615,7 +615,7 @@ function script F_VoteKafra {
break;
case 2:
if (Zeny >= 4000) {
- set Zeny, Zeny-4000;
+ Zeny -= 4000;
cutin "kafra_09",255;
warp "alde_dun03",265,22;
end;
@@ -631,7 +631,7 @@ function script F_VoteKafra {
break;
case 3:
if (Zeny >= 4000) {
- set Zeny, Zeny-4000;
+ Zeny -= 4000;
cutin "kafra_09",255;
warp "mag_dun02",47,40;
end;
@@ -933,7 +933,7 @@ lighthalzen,163,60,4 script Kafra Voting Staff#lght 4_F_KAFRA9,{
switch(select("Byalan Dungeon, Level 3 -> 4,000 z:Cancel")) {
case 1:
if (Zeny >= 4000) {
- set Zeny, Zeny-4000;
+ Zeny -= 4000;
cutin "zonda_01",255;
warp "iz_dun02",234,206;
end;
@@ -961,7 +961,7 @@ lighthalzen,163,60,4 script Kafra Voting Staff#lght 4_F_KAFRA9,{
switch(select("Byalan Dungeon, Level 3 -> 4,000 z:Clock Tower, 3rd Floor -> 4,000 z:Cancel")) {
case 1:
if (Zeny >= 4000) {
- set Zeny, Zeny-4000;
+ Zeny -= 4000;
cutin "zonda_01",255;
warp "iz_dun02",234,206;
end;
@@ -976,7 +976,7 @@ lighthalzen,163,60,4 script Kafra Voting Staff#lght 4_F_KAFRA9,{
break;
case 2:
if (Zeny >= 4000) {
- set Zeny, Zeny-4000;
+ Zeny -= 4000;
cutin "zonda_01",255;
warp "c_tower3",64,143;
end;
@@ -1011,7 +1011,7 @@ lighthalzen,163,60,4 script Kafra Voting Staff#lght 4_F_KAFRA9,{
switch(select("Byalan Dungeon, Level 3 -> 4,000 z:Clock Tower, 3rd Floor -> 4,000 z:Glast Heim Entrance -> 4,000 z:Cancel")) {
case 1:
if (Zeny >= 4000) {
- set Zeny, Zeny-4000;
+ Zeny -= 4000;
cutin "zonda_01",255;
warp "iz_dun02",234,206;
end;
@@ -1026,7 +1026,7 @@ lighthalzen,163,60,4 script Kafra Voting Staff#lght 4_F_KAFRA9,{
break;
case 2:
if (Zeny >= 4000) {
- set Zeny, Zeny-4000;
+ Zeny -= 4000;
cutin "zonda_01",255;
warp "c_tower3",64,143;
end;
@@ -1041,7 +1041,7 @@ lighthalzen,163,60,4 script Kafra Voting Staff#lght 4_F_KAFRA9,{
break;
case 3:
if (Zeny >= 4000) {
- set Zeny, Zeny-4000;
+ Zeny -= 4000;
cutin "zonda_01",255;
warp "glast_01",368,303;
end;
diff --git a/npc/kafras/functions_kafras.txt b/npc/kafras/functions_kafras.txt
index 2edf0990b..11d411e9d 100644
--- a/npc/kafras/functions_kafras.txt
+++ b/npc/kafras/functions_kafras.txt
@@ -251,7 +251,7 @@ function script F_KafStor {
mes "Storage access fee is "+getarg(1)+" zeny.";
return;
}
- set Zeny, Zeny-getarg(1);
+ Zeny -= getarg(1);
set RESRVPTS, RESRVPTS + (getarg(1)/5);
}
}
@@ -308,7 +308,7 @@ function script F_KafTele {
cutin "", 255;
end;
}
- set Zeny, Zeny - @wrpP[.@j];
+ Zeny -= @wrpP[.@j];
set RESRVPTS, RESRVPTS + (@wrpP[.@j]/16);
}
cutin "", 255;
@@ -371,7 +371,7 @@ function script F_KafCart {
mes "rental fee of "+getarg(1)+" zeny.";
return 1;
}
- set Zeny,Zeny-getarg(1);
+ Zeny -= getarg(1);
set RESRVPTS, RESRVPTS + 48;
}
setcart;
@@ -504,7 +504,7 @@ function script F_SetKafCode {
emotion e_cash;
break;
}
- set Zeny,Zeny-1000;
+ Zeny -= 1000;
if(@code == #kafra_code) {
set #kafra_code,0;
mes "You've successfully cleared your storage password.";
@@ -548,7 +548,7 @@ S_SET:
emotion e_cash;
return;
}
- set Zeny,Zeny-5000;
+ Zeny -= 5000;
set #kafra_code,@code;
mes "You've protected your storage with a secret password.";
mes "Thank you for using "+getarg(1)+".";
diff --git a/npc/kafras/kafras.txt b/npc/kafras/kafras.txt
index acdff608d..55187e37b 100644
--- a/npc/kafras/kafras.txt
+++ b/npc/kafras/kafras.txt
@@ -66,7 +66,7 @@ aldeba_in,96,181,4 script Kafra Service 4_F_KAFRA5,{
mes "and administrative functions,";
mes "I'll access your Storage for you.";
next;
- set Zeny, Zeny-20;
+ Zeny -= 20;
set RESRVPTS, RESRVPTS + (20/5);
mes "[Kafra Leilah]";
mes "In the future, please";
diff --git a/npc/merchants/advanced_refiner.txt b/npc/merchants/advanced_refiner.txt
index 57528e2b4..853e82f5e 100644
--- a/npc/merchants/advanced_refiner.txt
+++ b/npc/merchants/advanced_refiner.txt
@@ -147,7 +147,7 @@ S_RefineValidate:
}
if (countitem(getarg(1)) > 0 && Zeny > getarg(2)) {
delitem getarg(1),1;
- set Zeny, Zeny - getarg(2);
+ Zeny -= getarg(2);
return;
}
mes "[Suhnbi]";
diff --git a/npc/merchants/alchemist.txt b/npc/merchants/alchemist.txt
index af0cbc7d9..dfb9a68b4 100644
--- a/npc/merchants/alchemist.txt
+++ b/npc/merchants/alchemist.txt
@@ -78,7 +78,7 @@ alde_alche,24,188,3 script Guild Dealer 2_M_ALCHE,{
mes "in your inventory.";
close;
}
- set Zeny, Zeny-.@sell;
+ Zeny -= .@sell;
getitem 7134,.@input; //Medicine_Bowl
mes "[Gever Al Sharp]";
mes "Thank you.";
@@ -151,7 +151,7 @@ S_SellManual:
mes "That'll be "+getarg(1)+" zeny.";
next;
if (select("Purchase.:Quit.") == 1) {
- set Zeny, Zeny-getarg(1);
+ Zeny -= getarg(1);
getitem getarg(0),1;
mes "[Gever Al Sharp]";
mes "Thank you for";
diff --git a/npc/merchants/ammo_boxes.txt b/npc/merchants/ammo_boxes.txt
index 6501a7c6c..5039bbbf0 100644
--- a/npc/merchants/ammo_boxes.txt
+++ b/npc/merchants/ammo_boxes.txt
@@ -107,7 +107,7 @@ function script Func_Casing {
mes "for visiting my shop, and";
mes "I hope that you use all";
mes "of your ammo wisely.";
- set Zeny,Zeny-500*.@amount;
+ Zeny -= 500*.@amount;
delitem getarg(0),500*.@amount;
getitem getarg(1),.@amount;
close;
diff --git a/npc/merchants/buying_shops.txt b/npc/merchants/buying_shops.txt
index f77a45197..05b3f4cc7 100644
--- a/npc/merchants/buying_shops.txt
+++ b/npc/merchants/buying_shops.txt
@@ -62,7 +62,7 @@ que_job01,68,84,1 script Black Marketeer#Buying 4_M_SITDOWN,{
mes "Mr. Hugh, I'll take over your license business. You'll see!";
mes "*Giggle Giggle*";
getitem 12548,.@input; //Shabby_Purchase_Street
- set Zeny,Zeny-(.@input*500);
+ Zeny -= (.@input*500);
}
close;
}
@@ -126,7 +126,7 @@ alberta_in,58,52,4 script Purchasing Team#Buying 1_M_ORIENT01,{
} else {
mes "Thank you for your patronage.";
getitem 6377,.@input; //Buy_Stall_Permit
- set Zeny,Zeny-(.@input*200);
+ Zeny -= (.@input*200);
}
close;
}
@@ -210,7 +210,7 @@ alberta_in,58,52,4 script Purchasing Team#Buying 1_M_ORIENT01,{
mes .@name$+"....";
mes "I like your handwriting.";
mes "Okay, you're now approved to open the Bulk Buyer Shop.";
- set Zeny,Zeny-10000;
+ Zeny -= 10000;
getitem 6377,5; //Buy_Stall_Permit
skill "ALL_BUYING_STORE",1,3;
next;
diff --git a/npc/merchants/clothes_dyer.txt b/npc/merchants/clothes_dyer.txt
index 39a12cbc1..0eaaf153c 100644
--- a/npc/merchants/clothes_dyer.txt
+++ b/npc/merchants/clothes_dyer.txt
@@ -166,7 +166,7 @@ function Dyes {
close;
}
delitem .@DyeItems[getarg((.@s-1)*2)],1;
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
setlook 7, ((.@s)?(getarg((.@s-1)*2+1)):0);
mes "Your clothes have been dyed "+((.@s)?.@DyeName$[getarg((.@s-1)*2)]:.@DyeName$[0])+".";
close;
diff --git a/npc/merchants/dye_maker.txt b/npc/merchants/dye_maker.txt
index f25954cb3..4434c5c39 100644
--- a/npc/merchants/dye_maker.txt
+++ b/npc/merchants/dye_maker.txt
@@ -182,7 +182,7 @@ S_MakeDye:
// delete items
for (set .@i, 0; .@i < .@size ; set .@i, .@i+1)
delitem .@item[.@i], .@count[.@i];
- set Zeny, Zeny-.@cost;
+ Zeny -= .@cost;
// get dyestuff
getitem .@dyestuff,1;
diff --git a/npc/merchants/enchan_arm.txt b/npc/merchants/enchan_arm.txt
index 2de5a6fe5..ee3032440 100644
--- a/npc/merchants/enchan_arm.txt
+++ b/npc/merchants/enchan_arm.txt
@@ -93,7 +93,7 @@ S_EnchantArmor:
close;
}
progressbar "ffff00",7;
- set Zeny, Zeny-400000;
+ Zeny -= 400000;
delitem .@itemid,1;
switch (rand(1,.@failrate)) {
case 1: set .@addpart,4702;break;
diff --git a/npc/merchants/hair_dyer.txt b/npc/merchants/hair_dyer.txt
index fc1113603..fa4295831 100644
--- a/npc/merchants/hair_dyer.txt
+++ b/npc/merchants/hair_dyer.txt
@@ -109,7 +109,7 @@ prt_in,243,168,4 script Jovovich 4_F_02,{
case 7: delitem 983,1; break; //Black_Dyestuffs
case 8: delitem 975,1; break; //Scarlet_Dyestuffs
}
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
setlook VAR_HEADPALETTE,.@headpalette;
set .@choose_success,1;
break;
@@ -367,7 +367,7 @@ lhz_in02,100,134,3 script Hair Dyer#lich 4_F_EINWOMAN,{
else if (.@headpalette == 5) delitem 978,1; //Cobaltblue_Dyestuffs
else if (.@headpalette == 6) delitem 982,1; //White_Dyestuffs
else if (.@headpalette == 7) delitem 983,1; //Black_Dyestuffs
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
setlook VAR_HEADPALETTE,.@headpalette;
set .@choose_success,1;
break;
diff --git a/npc/merchants/hair_style.txt b/npc/merchants/hair_style.txt
index 47f273930..d1ce1e234 100644
--- a/npc/merchants/hair_style.txt
+++ b/npc/merchants/hair_style.txt
@@ -470,7 +470,7 @@ alberta_in,55,142,7 script Hair Dresser 4_F_02,{
mes "- *snip snip snip snip* -";
mes "- *bzzzzzzz bzzzzzzz bzzzzzzz bzzzzzzz* -";
next;
- set Zeny, Zeny-99800;
+ Zeny -= 99800;
delitem 973,3; // Counteragent
delitem 974,3; // Mixture
delitem 901,100; // Danggie
@@ -656,7 +656,7 @@ alberta,33,141,7 script Roving Hair Dresser 4_M_BARBER,{
mes "Once more I've outdone myself.";
mes "It's such a unique and talented";
mes "style! Yes, I am the best! Wooohahahahahaha!";
- set Zeny, Zeny-199800;
+ Zeny -= 199800;
setlook 1,rand(1,19);
setlook 6,rand(1,8);
close;
@@ -1042,7 +1042,7 @@ lhz_in02,100,143,3 script Hair Dresser#li 2_M_DYEINGER,{
mes "*Clip clip clip clip*";
mes "*Bzzzzzzzzzzzzzzzzzzzz*^000000";
next;
- set Zeny, Zeny-99800;
+ Zeny -= 99800;
delitem 973,3; //Counteragent
delitem 974,3; //Mixture
delitem 901,100; //Danggie
@@ -1249,7 +1249,7 @@ lhz_in02,91,155,5 script Assistant Beautician#li 4_F_LGTGIRL,{
mes "[Assistant Beautician]";
mes "^333333*Pant Pant Pant*^000000";
next;
- set Zeny, Zeny-250000;
+ Zeny -= 250000;
setlook VAR_HEAD,.@style_r;
setlook VAR_HEADPALETTE,.@color_r;
mes "[Assistant Beautician]";
diff --git a/npc/merchants/hd_refine.txt b/npc/merchants/hd_refine.txt
index 84e3adf32..0091b36ef 100644
--- a/npc/merchants/hd_refine.txt
+++ b/npc/merchants/hd_refine.txt
@@ -123,7 +123,7 @@
close;
}
delitem .@material,1;
- set Zeny, Zeny-.@price;
+ Zeny -= .@price;
mes "[Blacksmith Mighty Hammer]";
mes "Tac! Tac! Tac!";
if (getequippercentrefinery(.@part) > rand(100) || getequippercentrefinery(.@part) > rand(100)) {
@@ -280,7 +280,7 @@ lhz_in02,280,19,3 duplicate(MightyHammer) Mighty Hammer#lhz 4_M_DWARF
close;
}
delitem .@material,1;
- set Zeny, Zeny-.@price;
+ Zeny -= .@price;
mes "Pow! Pow! Pow! Pow!";
if (getequippercentrefinery(.@part) > rand(100) || getequippercentrefinery(.@part) > rand(100)) {
successrefitem .@part;
diff --git a/npc/merchants/icecream.txt b/npc/merchants/icecream.txt
index 29d49c948..29d3eafe0 100644
--- a/npc/merchants/icecream.txt
+++ b/npc/merchants/icecream.txt
@@ -69,7 +69,7 @@
mes "before making a purchase.";
close;
}
- set Zeny,Zeny-100*.@input;
+ Zeny -= 100*.@input;
getitem 536,.@input; // Ice_Cream
close;
}
diff --git a/npc/merchants/inn.txt b/npc/merchants/inn.txt
index 0c23555d2..56d8533cf 100644
--- a/npc/merchants/inn.txt
+++ b/npc/merchants/inn.txt
@@ -137,7 +137,7 @@ lhz_in02,230,284,4 script Hotel Employee#01 4_M_04,{
mes "in order to check in.";
close;
}
- set Zeny,Zeny - 5000;
+ Zeny -= 5000;
mes "[Hotel Employee]";
mes "Thank you~";
mes "I hope you enjoy";
@@ -190,7 +190,7 @@ ve_in,157,219,5 script Inn Master#Receptionist 4_M_SEAMAN,{
}
mes "Enjoy your stay~";
close2;
- set Zeny,Zeny - 5000;
+ Zeny -= 5000;
percentheal 100,100;
warp "ve_in",184,228;
end;
@@ -227,7 +227,7 @@ function script F_InnMaid {
mes "I hope you";
mes "enjoy your rest~";
close2;
- set Zeny,Zeny - 5000;
+ Zeny -= 5000;
percentheal 100,100;
return;
case 3:
diff --git a/npc/merchants/milk_trader.txt b/npc/merchants/milk_trader.txt
index 0fabb9876..3f2c46a20 100644
--- a/npc/merchants/milk_trader.txt
+++ b/npc/merchants/milk_trader.txt
@@ -69,7 +69,7 @@ prontera,73,140,0 script Milk Vendor 4_M_04,{
mes "all of this milk?";
close;
}
- set Zeny, Zeny-.@total_cost;
+ Zeny -= .@total_cost;
delitem 713,.@bottles; //Empty Bottles
getitem 519,.@bottles; //Milk
close;
diff --git a/npc/merchants/old_pharmacist.txt b/npc/merchants/old_pharmacist.txt
index 5384125e1..b866aa0db 100644
--- a/npc/merchants/old_pharmacist.txt
+++ b/npc/merchants/old_pharmacist.txt
@@ -83,7 +83,7 @@ alberta_in,16,28,4 script Pharmacist 1_M_PUBMASTER,{
mes "You rascal! You don't even have all the materials and you want me to make you potions?!";
close;
}
- set Zeny,Zeny-(.@max*5);
+ Zeny -= (.@max*5);
delitem 507,.@max; //Red_Herb
delitem 508,.@max; //Yellow_Herb
delitem 713,.@max; //Empty_Bottle
@@ -113,7 +113,7 @@ alberta_in,16,28,4 script Pharmacist 1_M_PUBMASTER,{
close;
}
next;
- set Zeny,Zeny-(.@amount*5);
+ Zeny -= (.@amount*5);
delitem 507,.@amount; //Red_Herb
delitem 508,.@amount; //Yellow_Herb
delitem 713,.@amount; //Empty_Bottle
@@ -209,7 +209,7 @@ L_Making:
mes "You rascal! You don't even have all the materials and you want me to make you potions?!";
close;
}
- set Zeny,Zeny-(.@max*getarg(1));
+ Zeny -= (.@max*getarg(1));
delitem getarg(0),.@max*2;
delitem 713,.@max; //Empty_Bottle
getitem getarg(2),.@max;
@@ -235,7 +235,7 @@ L_Making:
mes "You rascal! You don't even have all the materials and you want me to make you potions?!";
close;
}
- set Zeny,Zeny-(.@amount*getarg(1));
+ Zeny -= (.@amount*getarg(1));
delitem getarg(0),.@amount*2;
delitem 713,.@amount; //Empty_Bottle
getitem getarg(2),.@amount;
diff --git a/npc/merchants/quivers.txt b/npc/merchants/quivers.txt
index 6b544c920..37c183600 100644
--- a/npc/merchants/quivers.txt
+++ b/npc/merchants/quivers.txt
@@ -98,7 +98,7 @@ S_BuyQuiver:
mes "[Inventor Jaax]";
mes "There you go!";
mes "Just remember, ^FF0000you won't be able to use the Quiver when your carried weight is 90% of your maximum weight limit^000000.";
- set Zeny, Zeny-.@arrow_zeny01;
+ Zeny -= .@arrow_zeny01;
delitem getarg(0),.@arrows_used; //Arrow
getitem getarg(3),.@quiver; //Quiver
next;
@@ -128,7 +128,7 @@ S_BuyQuiver:
mes "[Inventor Jaax]";
mes "There you go!";
mes "Just remember, ^FF0000you won't be able to use the Quiver when your carried weight is 90% of your maximum weight limit^000000.";
- set Zeny, Zeny-getarg(2);
+ Zeny -= getarg(2);
delitem getarg(0),getarg(1); //Arrow
getitem getarg(3),1; //Quiver
next;
diff --git a/npc/merchants/refine.txt b/npc/merchants/refine.txt
index d65fd5c2e..d417c6ba1 100644
--- a/npc/merchants/refine.txt
+++ b/npc/merchants/refine.txt
@@ -81,7 +81,7 @@ geffen_in,110,172,0 script Christopher#1 1_M_SMITH,{
close;
}
getitem 986,1; // Anvil
- set Zeny, Zeny-30000;
+ Zeny -= 30000;
mes "[Christopher Guillenrow]";
mes "This is the cheapest one, but efficient enough to forge most items. Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -92,7 +92,7 @@ geffen_in,110,172,0 script Christopher#1 1_M_SMITH,{
close;
}
getitem 987,1; // Oridecon_Anvil
- set Zeny, Zeny-120000;
+ Zeny -= 120000;
mes "[Christopher Guillenrow]";
mes "Aye, friend ye have an eye for the anvil. This must be the proper anvil for a Blacksmith, eh? Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -103,7 +103,7 @@ geffen_in,110,172,0 script Christopher#1 1_M_SMITH,{
close;
}
getitem 988,1; // Golden_Anvil
- set Zeny, Zeny-300000;
+ Zeny -= 300000;
mes "[Christopher Guillenrow]";
mes "This one is the best among all me stuffs in me workshop! With this, ye can rule the Blacksmith world! Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -156,7 +156,7 @@ geffen_in,110,172,0 script Christopher#1 1_M_SMITH,{
close;
}
getitem 612,.@input; // Portable_Furnace
- set Zeny, Zeny-.@sell;
+ Zeny -= .@sell;
mes "[Christopher Guillenrow]";
mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -167,7 +167,7 @@ geffen_in,110,172,0 script Christopher#1 1_M_SMITH,{
close;
}
getitem 613,1; // Iron_Hammer
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
mes "[Christopher Guillenrow]";
mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -178,7 +178,7 @@ geffen_in,110,172,0 script Christopher#1 1_M_SMITH,{
close;
}
getitem 614,1; // Golden_Hammer
- set Zeny, Zeny-3000;
+ Zeny -= 3000;
mes "[Christopher Guillenrow]";
mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -189,7 +189,7 @@ geffen_in,110,172,0 script Christopher#1 1_M_SMITH,{
close;
}
getitem 615,1; // Oridecon_Hammer
- set Zeny, Zeny-5000;
+ Zeny -= 5000;
mes "[Christopher Guillenrow]";
mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -237,7 +237,7 @@ geffen_in,110,172,0 script Christopher#1 1_M_SMITH,{
close;
}
getitem 1010,.@input; // Phracon
- set Zeny, Zeny-.@sell;
+ Zeny -= .@sell;
mes "[Christopher Guillenrow]";
mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -275,7 +275,7 @@ geffen_in,110,172,0 script Christopher#1 1_M_SMITH,{
close;
}
getitem 1011,.@input; // Emveretarcon
- set Zeny, Zeny-.@sell;
+ Zeny -= .@sell;
mes "[Christopher Guillenrow]";
mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need, whenever ye want.";
close;
@@ -357,7 +357,7 @@ ein_in01,38,29,0 script Paul Spanner 1_M_SMITH,{
close;
}
getitem 986,1; //Anvil
- set Zeny, Zeny-30000;
+ Zeny -= 30000;
mes "[Paul Spanner]";
mes "It is the cheapest anvil which has the most basic ability.";
mes "Thank you for using my shop. If you need anything, just let me know.";
@@ -369,7 +369,7 @@ ein_in01,38,29,0 script Paul Spanner 1_M_SMITH,{
close;
}
getitem 987,1; //Oridecon_Anvil
- set Zeny, Zeny-120000;
+ Zeny -= 120000;
mes "[Paul Spanner]";
mes "Ah, you have an eye for anvil. A Blacksmith needs an anvil at least as good as this.";
mes "Thank you for using my shop. If you need anything, just let me know.";
@@ -381,7 +381,7 @@ ein_in01,38,29,0 script Paul Spanner 1_M_SMITH,{
close;
}
getitem 988,1; //Golden_Anvil
- set Zeny, Zeny-300000;
+ Zeny -= 300000;
mes "[Paul Spanner]";
mes "I can tell your ambition to become a good Blacksmith just by looking at you to choose this Golden Anvil!";
mes "This anvil will surely aid you in creating the best weapons.";
@@ -460,7 +460,7 @@ ein_in01,38,29,0 script Paul Spanner 1_M_SMITH,{
mes "Hey, you look pale. Why don't you go lighten your weight first.";
close;
}
- set Zeny, Zeny-.@sell;
+ Zeny -= .@sell;
getitem .@item,.@input;
mes "[Paul Spanner]";
mes "Thank you for using my shop. If you need anything, just let me know.";
@@ -515,7 +515,7 @@ ein_in01,38,29,0 script Paul Spanner 1_M_SMITH,{
close;
}
getitem .@item,.@input;
- set Zeny, Zeny-.@sell;
+ Zeny -= .@sell;
mes "[Paul Spanner]";
mes "Thank you for using my shop. If you need anything, just let me know.";
close;
@@ -735,7 +735,7 @@ function script refinemain {
mes "here all day if you need me.";
close;
}
- set Zeny, Zeny-.@price;
+ Zeny -= .@price;
delitem .@material,1;
//custom checks
@@ -856,7 +856,7 @@ function script refinemain {
mes "Is that all you got? Unfortunately I can't work for you at a lower price. Try putting yourself in my shoes.";
close;
}
- set Zeny, Zeny - .@fullprice;
+ Zeny -= .@fullprice;
delitem .@material,.@refinecnt;
while(.@refinecnt){
if (getequipisequiped(.@part) == 0) {
@@ -882,7 +882,7 @@ function script refinemain {
mes "Here's the unused Zeny and materials back...";
getitem .@material,.@refinecnt;
set .@fullprice,.@refinecnt * .@price;
- set Zeny, Zeny + .@fullprice;
+ Zeny += .@fullprice;
close;
}
successrefitem .@part;
@@ -1000,7 +1000,7 @@ function script phramain {
close;
}
getitem .@material,.@input;
- set Zeny, Zeny-.@sell;
+ Zeny -= .@sell;
mes "[" + getarg(0) + "]";
mes "Here you are!";
mes "Thank you for";
@@ -1238,7 +1238,7 @@ function script repairmain {
}
set .@checkitem2,.@checkitem2-1;
if (.@checkitem == .@checkitem2) {
- set Zeny, Zeny-.@totalcost;
+ Zeny -= .@totalcost;
while (.@checkitem) {
repair(.@checkitem);
set .@checkitem,.@checkitem-1;
diff --git a/npc/merchants/renters.txt b/npc/merchants/renters.txt
index dc4d67235..f6d4376cc 100644
--- a/npc/merchants/renters.txt
+++ b/npc/merchants/renters.txt
@@ -68,7 +68,7 @@ prontera,55,350,5 script Peco Peco Breeder#knt 8W_SOLDIER,{
mes "Please remove your cash mount.";
close;
}
- set Zeny, Zeny-.@price;
+ Zeny -= .@price;
setriding;
close;
case 2:
@@ -131,7 +131,7 @@ prontera,232,318,3 script Peco Peco Breeder#cru 8W_SOLDIER,{
mes "Please remove your cash mount.";
close;
}
- set Zeny, Zeny-.@price;
+ Zeny -= .@price;
setriding;
close;
case 2:
@@ -205,7 +205,7 @@ hu_in01,381,304,5 script Falcon Breeder#hnt 8W_SOLDIER,{
mes "there, can't you see it?";
close;
}
- set Zeny, Zeny-.@price;
+ Zeny -= .@price;
setfalcon;
close;
case 2:
diff --git a/npc/merchants/socket_enchant.txt b/npc/merchants/socket_enchant.txt
index d76562783..4c806a819 100644
--- a/npc/merchants/socket_enchant.txt
+++ b/npc/merchants/socket_enchant.txt
@@ -292,7 +292,7 @@ function script Func_Socket {
delitem getarg(5),getarg(6);
if (getarg(7,0) != 0 && getarg(8,0) != 0)
delitem getarg(7),getarg(8);
- set Zeny, Zeny - getarg(4)*1000;
+ Zeny -= getarg(4)*1000;
getitem getarg(1),1;
next;
mes "[Seiyablem]";
@@ -311,7 +311,7 @@ function script Func_Socket {
delitem getarg(5),getarg(6);
if (getarg(7,0) != 0 && getarg(8,0) != 0)
delitem getarg(7),getarg(8);
- set Zeny, Zeny - getarg(4)*1000;
+ Zeny -= getarg(4)*1000;
next;
mes "[Seiyablem]";
mes "I wish you good luck next time!";
diff --git a/npc/merchants/socket_enchant2.txt b/npc/merchants/socket_enchant2.txt
index 3e7c64808..dbdcfe379 100644
--- a/npc/merchants/socket_enchant2.txt
+++ b/npc/merchants/socket_enchant2.txt
@@ -287,7 +287,7 @@
mes "Congratulations.";
delitem 5022,1; //Helm_Of_Sun
delitem 969,2; //Gold
- set Zeny, Zeny - 200000000;
+ Zeny -= 200000000;
getitem 5353,1; //Helm_Of_Sun_
next;
mes "[Leablem]";
@@ -306,7 +306,7 @@
mes "I didn't want to do in the first place!";
delitem 5022,1; //Helm_Of_Sun
delitem 969,2; //Gold
- set Zeny, Zeny - 200000000;
+ Zeny -= 200000000;
next;
mes "[Leablem]";
mes "No, don't ever ask me to do such a risky thing again!";
@@ -428,7 +428,7 @@ function script Func_Socket2 {
delitem getarg(5),getarg(6);
if (getarg(7,0) != 0 && getarg(8,0) != 0)
delitem getarg(7),getarg(8);
- set Zeny, Zeny - getarg(4)*1000;
+ Zeny -= getarg(4)*1000;
getitem getarg(1),1;
next;
mes "[Leablem]";
@@ -448,7 +448,7 @@ function script Func_Socket2 {
delitem getarg(5),getarg(6);
if (getarg(7,0) != 0 && getarg(8,0) != 0)
delitem getarg(7),getarg(8);
- set Zeny, Zeny - getarg(4)*1000;
+ Zeny -= getarg(4)*1000;
next;
mes "[Leablem]";
mes "See you again, buddy!";
diff --git a/npc/other/acolyte_warp.txt b/npc/other/acolyte_warp.txt
index 2b6e102cb..10cd72124 100644
--- a/npc/other/acolyte_warp.txt
+++ b/npc/other/acolyte_warp.txt
@@ -59,7 +59,7 @@ prontera,98,121,4 script Acolyte#Prtclear 4_F_01,{
specialeffect2 EF_TELEPORTATION;
specialeffect2 EF_PORTAL;
next;
- set Zeny, Zeny - .@cost[.@i];
+ Zeny -= .@cost[.@i];
switch(.@i) {
case 0: if (checkre(0)) warp "izlude",128,98; else warp "izlude",91,105; break;
case 1: warp "geffen",120,39; break;
@@ -122,7 +122,7 @@ yuno,142,184,6 script Acolyte#Junoclear 4_F_01,{
specialeffect2 EF_TELEPORTATION;
specialeffect2 EF_PORTAL;
next;
- set Zeny, Zeny - .@cost[.@i];
+ Zeny -= .@cost[.@i];
switch(.@i) {
case 0: warp "einbroch",67,195; break;
case 1: warp "lighthalzen",159,90; break;
diff --git a/npc/other/arena/arena_party.txt b/npc/other/arena/arena_party.txt
index 2be12b02e..0f4e53ca5 100644
--- a/npc/other/arena/arena_party.txt
+++ b/npc/other/arena/arena_party.txt
@@ -93,7 +93,7 @@ OnTouch:
if(Zeny < 1000)
warp "arena_room",100,75;
else {
- set Zeny,Zeny -1000;
+ Zeny -= 1000;
set $arn_partywait,0;
donpcevent "toout#party::OnStop";
warp "force_1-2",99,26;
diff --git a/npc/other/comodo_gambling.txt b/npc/other/comodo_gambling.txt
index 548e1e68d..f8048e23a 100644
--- a/npc/other/comodo_gambling.txt
+++ b/npc/other/comodo_gambling.txt
@@ -8,7 +8,7 @@
//= Comodo Gambling: Win random Items with 3 Carat Diamonds.
//===== Additional Comments: =================================
//= 0.1- so far just a basic setup, and working on the function
-//= 0.2- fixed some spelling errors and set zeny,zeny - (@amount * 55000)[Cypress]
+//= 0.2- fixed some spelling errors and Zeny -= (@amount * 55000)[Cypress]
//= 0.3- Revised the gambling NPC using the official Aegis script [MasterOfMuppets]
//= for information. Thanks to Zefris for doing it for me.
//= 0.4- Fixed an exploit. thanks to reddozen [MasterOfMuppets]
@@ -474,7 +474,7 @@ comodo,210,154,2 script Suspicious Guy#cmd 2_M_THIEFMASTER,{
next;
mes "[Cain]";
mes "I guess it can't hurt to gather some Diamonds there and try to exchange them for whatever the old lady's got. Take care, pal~";
- set Zeny,Zeny-500;
+ Zeny -= 500;
close;
}
mes "[Cain]";
@@ -554,7 +554,7 @@ mjolnir_02,85,362,3 script Blacksmith Miner 4_F_JOB_BLACKSMITH,{
mes "I don't think give you anything if there's no room in your inventory. Why don't you put some of your stuff into Kafra Storage?";
close;
}
- set Zeny,Zeny - .@cost;
+ Zeny -= .@cost;
getitem 732,.@amount;
mes "[Dwayne]";
mes "Thank you for";
diff --git a/npc/other/divorce.txt b/npc/other/divorce.txt
index ef10f9734..ce497018b 100644
--- a/npc/other/divorce.txt
+++ b/npc/other/divorce.txt
@@ -194,7 +194,7 @@ nif_in,190,112,5 script Deviruchi#divorce 4_DEVIRUCHI,{
specialeffect EF_MAGICROD;
specialeffect2 EF_DEVIL;
set wedding_sign,0;
- set Zeny, Zeny-2500000;
+ Zeny -= 2500000;
percentheal -100,-100;
divorce;
mes "[Deviruchi]";
diff --git a/npc/other/fortune.txt b/npc/other/fortune.txt
index b0274f620..b622c1fac 100644
--- a/npc/other/fortune.txt
+++ b/npc/other/fortune.txt
@@ -45,7 +45,7 @@ payon_in03,117,128,5 script Fortune Teller 4_M_BIBI,{
else {
mes "[Lhimetorra]";
mes "I accept your heart and your devotion with my gratitude. Thoughts are more important than the amount when paying a fortune teller.";
- set Zeny, Zeny-.@input;
+ Zeny -= .@input;
}
next;
mes "[Lhimetorra]";
@@ -2753,7 +2753,7 @@ payon_in03,75,129,5 script Poring Fortune Teller 4_M_BIBI,{
mes "Nope!";
close;
}
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
mes "[Chocarle]";
mes " Thank you~! Then we shall look into your fortune! ";
mes " First, clear your mind! Just like washing when you wash dishes! ";
diff --git a/npc/other/mail.txt b/npc/other/mail.txt
index 658337a98..bc7825e6e 100644
--- a/npc/other/mail.txt
+++ b/npc/other/mail.txt
@@ -38,7 +38,7 @@
close;
}
mes "Thank you, please come again.";
- set Zeny, Zeny - 130;
+ Zeny -= 130;
close2;
openmail;
end;
diff --git a/npc/other/marriage.txt b/npc/other/marriage.txt
index 0cfc8c8a6..5cb1946d6 100644
--- a/npc/other/marriage.txt
+++ b/npc/other/marriage.txt
@@ -351,7 +351,7 @@ prt_church,97,100,4 script Wedding Staff#w 1_F_LIBRARYGIRL,{
mes "finished, it will be your";
mes "bride's turn to speak to";
mes "Bishop Vomars.";
- set Zeny, Zeny-1300000;
+ Zeny -= 1300000;
delitem 7170,1; //Tuxedo
}
else {
@@ -361,7 +361,7 @@ prt_church,97,100,4 script Wedding Staff#w 1_F_LIBRARYGIRL,{
mes "Vomars first. When he's";
mes "finished, it'll be your turn";
mes "to speak to Bishop Vomars.";
- set Zeny, Zeny-1200000;
+ Zeny -= 1200000;
delitem 2338,1; //Wedding_Dress
}
delitem 2613,1; //Diamond_Ring
diff --git a/npc/other/mercenary_rent.txt b/npc/other/mercenary_rent.txt
index ac1a532f5..7b2a47d0a 100644
--- a/npc/other/mercenary_rent.txt
+++ b/npc/other/mercenary_rent.txt
@@ -94,7 +94,7 @@
mes "Summoned Mercenaries will";
mes "offer their support to you for";
mes "30 minutes. Take care now.";
- set Zeny, Zeny - (.@ZenyCost * 1000);
+ Zeny -= (.@ZenyCost * 1000);
getitem .@item[.@type] - 10 + .@Grade, 1;
}
close;
@@ -280,7 +280,7 @@ pay_arche,99,167,4 duplicate(Mercenary Manager#main) Mercenary Manager#Bow 4_M_J
mes "Thank you, and please come";
mes "again when you need more";
mes "potions for your Mercenaries.";
- set Zeny, Zeny - .@total_po;
+ Zeny -= .@total_po;
getitem .@item[.@m], .@input;
close;
}
diff --git a/npc/other/monster_race.txt b/npc/other/monster_race.txt
index 950656b6e..3b2dd618b 100644
--- a/npc/other/monster_race.txt
+++ b/npc/other/monster_race.txt
@@ -657,7 +657,7 @@ hugel,58,72,6 script Eckar Ellebird#single 4_M_NFMAN,{
mes "that you enjoy the race~";
mes "Let me guide you inside";
mes "the Monster Race Arena now.";
- set Zeny, Zeny-2000;
+ Zeny -= 2000;
set monster_race_1,0;
close2;
warp "p_track01",75,41;
@@ -678,7 +678,7 @@ hugel,58,72,6 script Eckar Ellebird#single 4_M_NFMAN,{
mes "you enjoy this race.";
mes "Let me guide you now";
mes "to the Monster Race Arena.";
- set Zeny, Zeny-2000;
+ Zeny -= 2000;
set monster_race_1,0;
close2;
warp "p_track01",75,41;
@@ -715,7 +715,7 @@ hugel,58,72,6 script Eckar Ellebird#single 4_M_NFMAN,{
mes "Thank you~";
mes "I hope you enjoy";
mes "watching this race!";
- set Zeny, Zeny-500;
+ Zeny -= 500;
set monster_race_1,0;
close2;
warp "p_track01",75,41;
@@ -1281,7 +1281,7 @@ hugel,62,69,1 script Eckar Erenes#double 4_M_NFMAN,{
mes "that you enjoy the race~";
mes "Let me guide you inside";
mes "the Monster Race Arena now.";
- set Zeny, Zeny-2000;
+ Zeny -= 2000;
set monster_race_2_1,0;
set monster_race_2_2,0;
close2;
@@ -1304,7 +1304,7 @@ hugel,62,69,1 script Eckar Erenes#double 4_M_NFMAN,{
mes "you enjoy this race.";
mes "Let me guide you now";
mes "to the Monster Race Arena.";
- set Zeny, Zeny-2000;
+ Zeny -= 2000;
set monster_race_2_1,0;
set monster_race_2_2,0;
close2;
@@ -1342,7 +1342,7 @@ hugel,62,69,1 script Eckar Erenes#double 4_M_NFMAN,{
mes "Thank you~";
mes "I hope you enjoy";
mes "watching this race!";
- set Zeny, Zeny-500;
+ Zeny -= 500;
set monster_race_2_1,0;
set monster_race_2_2,0;
close2;
diff --git a/npc/other/poring_war.txt b/npc/other/poring_war.txt
index 3cd36dbfe..38eac1de1 100644
--- a/npc/other/poring_war.txt
+++ b/npc/other/poring_war.txt
@@ -41,7 +41,7 @@ prt_fild08,159,371,3 script Poring War Recruiter#wop 4_PORING,{
mes "Oh, and there's an entrance fee of 500 zeny, ring.";
mes "Have a good time, ring.";
delitem 7773,countitem(7773);
- set Zeny,Zeny-500;
+ Zeny -= 500;
close2;
warp "poring_w01",112,138;
end;
diff --git a/npc/other/powernpc.txt b/npc/other/powernpc.txt
index 0428eca36..33c6980dd 100644
--- a/npc/other/powernpc.txt
+++ b/npc/other/powernpc.txt
@@ -137,7 +137,7 @@ gon_test,50,14,4 script Administrator#gnp 8_M_TWSOLDIER,{
mes "I'm sorry but you don't have enough zeny.";
close;
}
- set Zeny,Zeny - 500;
+ Zeny -= 500;
set in_battle,1;
warp "gon_test",42,86;
set $@in_battle,1;
diff --git a/npc/other/pvp.txt b/npc/other/pvp.txt
index bf98fb55a..779f332ae 100644
--- a/npc/other/pvp.txt
+++ b/npc/other/pvp.txt
@@ -198,7 +198,7 @@ geffen_in,67,63,4 duplicate(pvpe) PVP Narrator#pe6 4_M_02
switch(select("Move:Cancel")) {
case 1:
if ((Zeny > 499) && (BaseLevel > 30)) {
- set Zeny, Zeny - 500;
+ Zeny -= 500;
callsub L_Warp,"pvp_y_room";
}
else {
@@ -237,7 +237,7 @@ geffen_in,67,63,4 duplicate(pvpe) PVP Narrator#pe6 4_M_02
}
mes "[Gate Keeper]";
mes "Yes, thank you for participating. Have fun!";
- if (Zeny >= 500) set Zeny, Zeny - 500;
+ if (Zeny >= 500) Zeny -= 500;
callsub L_Warp,"pvp_room";
break;
case 4:
diff --git a/npc/other/turbo_track.txt b/npc/other/turbo_track.txt
index dea910aa3..21aaa24d7 100644
--- a/npc/other/turbo_track.txt
+++ b/npc/other/turbo_track.txt
@@ -4777,7 +4777,7 @@ alde_gld,186,199,3 script Turbo Track Guide#Entran 4_F_RACING,{
if (countitem(7310) > 0)
delitem 7310,1; //Free_Peco_Ticket
else
- set Zeny, Zeny-.@zeny;
+ Zeny -= .@zeny;
}
}
switch(.@i) {
diff --git a/npc/pre-re/jobs/1-1/mage.txt b/npc/pre-re/jobs/1-1/mage.txt
index e5f80bd3d..2e03ce410 100644
--- a/npc/pre-re/jobs/1-1/mage.txt
+++ b/npc/pre-re/jobs/1-1/mage.txt
@@ -207,7 +207,7 @@ geffen_in,164,124,4 script Mage Guildsman 2_F_MAGICMASTER,{
next;
callfunc "Job_Change",Job_Mage;
callfunc "F_ClearJobVar";
- set Zeny,Zeny+50;
+ Zeny += 50;
if(checkquest(1005) != -1) {
completequest 1005;
}
diff --git a/npc/pre-re/jobs/1-1/merchant.txt b/npc/pre-re/jobs/1-1/merchant.txt
index 631e29516..59b612e5b 100644
--- a/npc/pre-re/jobs/1-1/merchant.txt
+++ b/npc/pre-re/jobs/1-1/merchant.txt
@@ -133,7 +133,7 @@ alberta_in,53,43,6 script Merchant#mer 4_M_04,{
mes "Please return when you have earned the 500 zeny that you need to become a Merchant.";
close;
}
- set Zeny, Zeny-500;
+ Zeny -= 500;
mes "Ah yes...!";
mes "Now your";
mes "membership";
@@ -169,7 +169,7 @@ alberta_in,53,43,6 script Merchant#mer 4_M_04,{
mes "[Chief Mahnsoo]";
mes "*Ahem* Aaaaand let me give you a little bit of money for delivering that message to Blossom for me.";
mes "I hope you'll help me again next time~";
- set Zeny, Zeny+200;
+ Zeny += 200;
set quest_alb_01,2;
}
else {
@@ -341,7 +341,7 @@ alberta_in,53,43,6 script Merchant#mer 4_M_04,{
mes "[Chief Mahnsoo]";
if (Zeny >= 1000) {
set job_merchant_q,2;
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
mes "Alright~";
mes "That's 1,000 zeny.";
mes "Excellent, excellent.";
@@ -355,7 +355,7 @@ alberta_in,53,43,6 script Merchant#mer 4_M_04,{
mes "[Chief Mahnsoo]";
if (Zeny >= 500) {
set job_merchant_q,1;
- set Zeny, Zeny-500;
+ Zeny -= 500;
mes "Let's see...";
mes "That's 500 Zeny. Although I don't think splitting payment is a good idea for any Merchant, it's alright since you're still learning.";
}
@@ -1058,7 +1058,7 @@ prontera,248,42,0 script Kafra Employee#mer 4_F_KAFRA2,{
cutin "",255;
end;
}
- set Zeny, Zeny-600;
+ Zeny -= 600;
set RESRVPTS, RESRVPTS + 37;
cutin "",255;
warp "izlude",94,103;
diff --git a/npc/pre-re/jobs/1-1/thief.txt b/npc/pre-re/jobs/1-1/thief.txt
index 389c257f5..356809cdc 100644
--- a/npc/pre-re/jobs/1-1/thief.txt
+++ b/npc/pre-re/jobs/1-1/thief.txt
@@ -443,7 +443,7 @@ moc_prydb1,42,133,2 script Comrade 2_M_THIEFMASTER,{
next;
mes "[Brad]";
mes "Here is a small subsidy for a Newbie like you. Spend it whereever you want. Alright then, I'll see you around~";
- set Zeny, Zeny+.@money_thief;
+ Zeny += .@money_thief;
close;
}
}
diff --git a/npc/quests/bard_quest.txt b/npc/quests/bard_quest.txt
index 630b15196..d9382593e 100644
--- a/npc/quests/bard_quest.txt
+++ b/npc/quests/bard_quest.txt
@@ -1127,7 +1127,7 @@ S_StorySong:
case 1:
mes "[Errende]";
if (Zeny > 499) {
- set Zeny, Zeny-500;
+ Zeny -= 500;
cutin "bard_eland03",2;
mes "Alright.";
mes "Here we go~";
diff --git a/npc/quests/cooking_quest.txt b/npc/quests/cooking_quest.txt
index 28f5e26b0..4c2a84ea7 100644
--- a/npc/quests/cooking_quest.txt
+++ b/npc/quests/cooking_quest.txt
@@ -2108,7 +2108,7 @@ S_SellSets:
mes getitemname(getarg(0))+"...";
close;
}
- set Zeny, Zeny-.@total_cost;
+ Zeny -= .@total_cost;
getitem getarg(0),.@sell;
mes "[Madeleine Chu]";
mes "Here you are~";
@@ -2196,7 +2196,7 @@ payon,209,127,3 script Servant 4_M_ORIENT01,{
mes "raise 200 zeny, right?";
close;
}
- set Zeny, Zeny-200;
+ Zeny -= 200;
getitem 555,1; //Rice_Cake
mes "[Chulsoo]";
mes "Thank you very";
@@ -2367,7 +2367,7 @@ payon,209,127,3 script Servant 4_M_ORIENT01,{
mes "raise 200 zeny, right?";
close;
}
- set Zeny, Zeny-200;
+ Zeny -= 200;
getitem 555,1; //Rice_Cake
mes "[Chulsoo]";
mes "Thank you very";
diff --git a/npc/quests/counteragent_mixture.txt b/npc/quests/counteragent_mixture.txt
index 9d5b82ae4..ed8152a06 100644
--- a/npc/quests/counteragent_mixture.txt
+++ b/npc/quests/counteragent_mixture.txt
@@ -469,7 +469,7 @@ geffen_in,141,140,3 script Molgenstein#cm 2_M_MOLGENSTEIN,{
delitem 970,1; //Alchol
delitem 971,1; //Detrimindexta
delitem 713,1; //Empty_Bottle
- set Zeny, Zeny-3000;
+ Zeny -= 3000;
getitem 973,1; //Counteragent
mes "[Chemist Molgenstein]";
mes "Hee hee hee...";
@@ -513,7 +513,7 @@ geffen_in,141,140,3 script Molgenstein#cm 2_M_MOLGENSTEIN,{
delitem 970,1; //Alchol
delitem 972,1; //Karvodailnirol
delitem 713,1; //Empty_Bottle
- set Zeny, Zeny-4000;
+ Zeny -= 4000;
getitem 974,1; //Mixture
mes "[Chemist Molgenstein]";
mes "Hee hee hee...";
diff --git a/npc/quests/dandelion_request.txt b/npc/quests/dandelion_request.txt
index e278a4773..d733a374b 100644
--- a/npc/quests/dandelion_request.txt
+++ b/npc/quests/dandelion_request.txt
@@ -2190,7 +2190,7 @@ OnTouch:
mes "tired. Let me take a";
mes "freakin' 20 second yawn.";
mes "*Yaaaaaaaaaaaaaaaaaaaaaaaaaawn*";
- set Zeny,Zeny - 1000;
+ Zeny -= 1000;
close2;
warp "que_job01",9,94;
end;
@@ -2309,7 +2309,7 @@ OnTouch:
mes "Hey, bartender! Gimme";
mes "the usual! I like your";
mes "style, adventurer...";
- set Zeny,Zeny - 1000;
+ Zeny -= 1000;
next;
mes "[Litheron]";
mes "Alright, you can come";
@@ -2473,7 +2473,7 @@ que_job01,82,95,3 script Bar Master 1_ETC_01,{
mes "ask you for 800. Enjoy it,";
mes "my friend, and drink it as";
mes "deeply as you would life.";
- set Zeny,Zeny - 800;
+ Zeny -= 800;
if(.@maodrink) getitem 12112,1;
else getitem 12113,1;
close;
@@ -2495,7 +2495,7 @@ que_job01,82,95,3 script Bar Master 1_ETC_01,{
mes "hard feelings, but you're";
mes "already lucky to be here.";
mes "Hey, enjoy your drink~";
- set Zeny,Zeny - 1000;
+ Zeny -= 1000;
if(.@maodrink) getitem 12112,1;
else getitem 12113,1;
close;
diff --git a/npc/quests/eye_of_hellion.txt b/npc/quests/eye_of_hellion.txt
index 135fc768b..6feb07f81 100644
--- a/npc/quests/eye_of_hellion.txt
+++ b/npc/quests/eye_of_hellion.txt
@@ -1371,7 +1371,7 @@ payon,182,132,3 script Grout'he Tuccok#hellion 1_M_02,{
mes "clean and pure Skirt of Virgin.";
mes "If you got any more questions,";
mes "I guess you can ask me later~";
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
set HELLIONQ,48;
getitem 953,1; //Stone_Heart
getitem 511,1; //Green_Herb
diff --git a/npc/quests/first_class/tu_archer.txt b/npc/quests/first_class/tu_archer.txt
index 247aa0329..09f758959 100644
--- a/npc/quests/first_class/tu_archer.txt
+++ b/npc/quests/first_class/tu_archer.txt
@@ -1591,7 +1591,7 @@ pay_arche,130,113,3 script Alchemist Guildmember#tu 2_M_ALCHE,{
delitem 1032, .@alche_f; //Blossom_Of_Maneater
delitem 905, .@alche_s; //Stem
}
- set Zeny,Zeny+.@total_zeny;
+ Zeny += .@total_zeny;
close;
case 2:
mes "[Alchemist Guildmember]";
diff --git a/npc/quests/first_class/tu_magician01.txt b/npc/quests/first_class/tu_magician01.txt
index 97ac69dcb..dc43a7852 100644
--- a/npc/quests/first_class/tu_magician01.txt
+++ b/npc/quests/first_class/tu_magician01.txt
@@ -786,7 +786,7 @@ geffen,67,180,4 script New Mage Manager#M 8_F,{
mes "again, thanks very much~";
set tu_magician01, 28;
getitem 2321,1; //Silk_Robe
- set Zeny, Zeny + 3000;
+ Zeny += 3000;
getexp 3000,1000;
close;
default:
diff --git a/npc/quests/first_class/tu_merchant.txt b/npc/quests/first_class/tu_merchant.txt
index 8636810bd..b760831df 100644
--- a/npc/quests/first_class/tu_merchant.txt
+++ b/npc/quests/first_class/tu_merchant.txt
@@ -710,7 +710,7 @@ prontera,66,111,3 script Sagle 4_KID01,{
mes "There's no way you carry all of this! Why don't you put some of your stuff in Kafra Storage before coming back?";
close;
} else {
- set Zeny, Zeny - 420;
+ Zeny -= 420;
set tu_merchant, 10;
getitem 501,10; //Red_Potion
close;
@@ -758,7 +758,7 @@ prontera,66,111,3 script Sagle 4_KID01,{
close2;
end;
} else {
- set Zeny, Zeny - 410;
+ Zeny -= 410;
set tu_merchant, 10;
getitem 501,10; //Red_Potion
close;
@@ -805,7 +805,7 @@ prontera,66,111,3 script Sagle 4_KID01,{
mes "There's no way you carry all of this! Why don't you put some of your stuff in Kafra Storage before coming back?";
close;
} else {
- set Zeny, Zeny - 390;
+ Zeny -= 390;
set tu_merchant, 9;
getitem 501,10; //Red_Potion
close;
@@ -862,7 +862,7 @@ prontera,93,330,3 script Kellion 4W_M_01,{
mes "You better put some of your stuff in Kafra Storage, you can't carry much else!";
close;
} else {
- set Zeny, Zeny - 340;
+ Zeny -= 340;
set tu_merchant, 10;
getitem 569,10; //Novice_Potion
close;
@@ -901,7 +901,7 @@ prontera,93,330,3 script Kellion 4W_M_01,{
mes "You better put some of your stuff in Kafra Storage, you can't carry much else!";
close;
} else {
- set Zeny, Zeny - 390;
+ Zeny -= 390;
set tu_merchant, 9;
getitem 501,10; //Red_Potion
close;
@@ -940,7 +940,7 @@ prontera,93,330,3 script Kellion 4W_M_01,{
mes "You better put some of your stuff in Kafra Storage, you can't carry much else!";
close;
} else {
- set Zeny, Zeny - 400;
+ Zeny -= 400;
set tu_merchant, 10;
getitem 501,10; //Red_Potion
close;
@@ -1000,7 +1000,7 @@ prt_in,169,11,3 script Aigie 4_F_03,{
mes "You can't possibly carry any more items. Why don't you put your things in Kafra Storage first?";
close;
} else {
- set Zeny, Zeny - 390;
+ Zeny -= 390;
set tu_merchant, 9;
getitem 501,10; //Red_Potion
close;
@@ -1045,7 +1045,7 @@ prt_in,169,11,3 script Aigie 4_F_03,{
mes "You can't possibly carry any more items. Why don't you put your things in Kafra Storage first?";
close;
} else {
- set Zeny, Zeny - 420;
+ Zeny -= 420;
set tu_merchant, 10;
getitem 501,10; //Red_Potion
close;
@@ -1090,7 +1090,7 @@ prt_in,169,11,3 script Aigie 4_F_03,{
mes "You can't possibly carry any more items. Why don't you put your things in Kafra Storage first?";
close;
} else {
- set Zeny, Zeny - 340;
+ Zeny -= 340;
set tu_merchant, 10;
getitem 569,10; //Novice_Potion
close;
@@ -1145,7 +1145,7 @@ prontera,247,129,3 script Jayon 4_M_03,{
mes "You ought to free up some of your inventory space when you get the chance.";
close;
} else {
- set Zeny, Zeny - 410;
+ Zeny -= 410;
set tu_merchant, 10;
getitem 501,10; //Red_Potion
close;
@@ -1191,7 +1191,7 @@ prontera,247,129,3 script Jayon 4_M_03,{
mes "You ought to free up some of your inventory space when you get the chance.";
close;
} else {
- set Zeny, Zeny - 400;
+ Zeny -= 400;
set tu_merchant, 10;
getitem 501,10; //Red_Potion
close;
@@ -1238,7 +1238,7 @@ prontera,247,129,3 script Jayon 4_M_03,{
mes "You ought to free up some of your inventory space when you get the chance.";
close;
} else {
- set Zeny, Zeny - 410;
+ Zeny -= 410;
set tu_merchant, 10;
getitem 501,10; //Red_Potion
close;
@@ -1293,7 +1293,7 @@ prt_in,251,129,3 script Maos 4_M_SEAMAN,{
mes "Ooh, but it doesn't look like you've got enough inventory space to carry any more items.";
close;
} else {
- set Zeny, Zeny - 420;
+ Zeny -= 420;
set tu_merchant, 10;
getitem 501,10; //Red_Potion
close;
@@ -1328,7 +1328,7 @@ prt_in,251,129,3 script Maos 4_M_SEAMAN,{
mes "Ooh, but it doesn't look like you've got enough inventory space to carry any more items.";
close;
} else {
- set Zeny, Zeny - 340;
+ Zeny -= 340;
set tu_merchant, 10;
getitem 501,10; //Red_Potion
close;
@@ -1363,7 +1363,7 @@ prt_in,251,129,3 script Maos 4_M_SEAMAN,{
mes "Ooh, but it doesn't look like you've got enough inventory space to carry any more items.";
close;
} else {
- set Zeny, Zeny - 400;
+ Zeny -= 400;
set tu_merchant, 10;
getitem 501,10; //Red_Potion
close;
diff --git a/npc/quests/first_class/tu_thief01.txt b/npc/quests/first_class/tu_thief01.txt
index 0c431951f..059a76477 100644
--- a/npc/quests/first_class/tu_thief01.txt
+++ b/npc/quests/first_class/tu_thief01.txt
@@ -570,7 +570,7 @@ moc_ruins,66,164,4 script Thief Trainer#T 4_M_02,{
mes "Hey, this stuff is yours. Think of it as a reward for helping us out. Take care of yourself now~";
set tu_thief01, 27;
getitem 2307,1; //Mantle
- set Zeny, Zeny + 5000;
+ Zeny += 5000;
getexp 8000,3000;
close;
}
@@ -693,7 +693,7 @@ moc_ruins,66,164,4 script Thief Trainer#T 4_M_02,{
mes "[Yierhan]";
mes "Hey, this stuff is yours. Think of it as a reward for helping us out. Right, and I'll let Mana know you did a great job. Take care of yourself now~";
set tu_magician01, 27;
- set Zeny, Zeny + 5000;
+ Zeny += 5000;
getexp 5000,2000;
close;
}
diff --git a/npc/quests/gunslinger_quests.txt b/npc/quests/gunslinger_quests.txt
index a37841f89..539f6c4ae 100644
--- a/npc/quests/gunslinger_quests.txt
+++ b/npc/quests/gunslinger_quests.txt
@@ -311,7 +311,7 @@ SubGarrison:
delitem 999,50; //Steel
delitem 1003,50; //Coal
delitem 7317,20; //Rusty Screw
- set Zeny,Zeny-30000;
+ Zeny -= 30000;
getitem 13104,1; //Garrison
close;
@@ -586,7 +586,7 @@ SubInferno:
mes "I see you have the proper amount of materials and Zeny.";
mes "Here is the Inferno I've created for you.";
mes "Use it well.";
- set Zeny,Zeny-200000;
+ Zeny -= 200000;
delitem 7319,100;
delitem 984,10;
delitem 7317,50;
@@ -859,7 +859,7 @@ SubDestroyer:
mes "You've got the perfect materials and Zeny~";
mes "Here's the Destroyer I made ahead of time for you.";
mes "Use it well.";
- set Zeny,Zeny-100000;
+ Zeny -= 100000;
delitem 7319,50;
delitem 984,5;
delitem 7317,70;
@@ -993,7 +993,7 @@ que_ng,149,178,4 script Lab Director 4_F_ALCHE,{
mes "Please clear your inventory.";
close;
}
- set Zeny,Zeny-100000;
+ Zeny -= 100000;
set gun_na,0;
getitem 13158,1;
mes "[N. A]";
@@ -1022,7 +1022,7 @@ que_ng,149,178,4 script Lab Director 4_F_ALCHE,{
delitem 984,3;
delitem 1003,70;
delitem 7317,50;
- set Zeny,Zeny-50000;
+ Zeny -= 50000;
set gun_na,11;
mes "[N. A]";
mes "Aha, you got me all the";
diff --git a/npc/quests/juice_maker.txt b/npc/quests/juice_maker.txt
index 3920de4b9..27d5e22cb 100644
--- a/npc/quests/juice_maker.txt
+++ b/npc/quests/juice_maker.txt
@@ -269,7 +269,7 @@ payon_in03,188,146,5 script Marx Hansen#juice 4_M_04,{
}
delitem .@fruit,.@make;
delitem 713,.@make;
- set Zeny, Zeny-.@total_zeny;
+ Zeny -= .@total_zeny;
getitem .@juice,.@make;
mes "[Merchant Marx Hansen]";
diff --git a/npc/quests/kiel_hyre_quest.txt b/npc/quests/kiel_hyre_quest.txt
index ef15a7539..3083436cc 100644
--- a/npc/quests/kiel_hyre_quest.txt
+++ b/npc/quests/kiel_hyre_quest.txt
@@ -412,7 +412,7 @@ yuno_in01,35,179,4 script Pub Master#kh 1_ETC_01,5,5,{
mes "Thank you so much";
mes "for helping me out~";
getitem 7487,1; //Tavern_Wine
- set Zeny, Zeny+1000;
+ Zeny += 1000;
close;
}
else {
@@ -2226,7 +2226,7 @@ kh_vila,16,175,0 script Box#khp1 HIDDEN_NPC,{
mes "special about it";
mes "at all! It's just";
mes "normal Pet Food!";
- set Zeny, Zeny-1100;
+ Zeny -= 1100;
getitem 537,1; //Pet_Food
close;
}
diff --git a/npc/quests/mage_solution.txt b/npc/quests/mage_solution.txt
index 8513ae8bf..2d4dcaab0 100644
--- a/npc/quests/mage_solution.txt
+++ b/npc/quests/mage_solution.txt
@@ -27,7 +27,7 @@ pay_arche,122,100,0 script Dollshoi 4_M_ORIENT01,{
close;
}
delitem 1092,1; //Empty_Cylinder
- set Zeny, Zeny-50;
+ Zeny -= 50;
getitem 1089,1; //Payon_Potion
}
close;
@@ -48,7 +48,7 @@ moc_ruins,91,150,0 script Ponka-Hontas 4_F_04,{
close;
}
delitem 1092,1; //Empty_Cylinder
- set Zeny, Zeny-50;
+ Zeny -= 50;
getitem 1088,1; //Morocc_Potion
}
close;
diff --git a/npc/quests/monstertamers.txt b/npc/quests/monstertamers.txt
index 10f02435e..5ad2cbbdb 100644
--- a/npc/quests/monstertamers.txt
+++ b/npc/quests/monstertamers.txt
@@ -436,7 +436,7 @@ aldeba_in,168,175,4 script Monster Tamer#alde 4_M_TELEPORTER,{
mes "Rocker Glasses!";
delitem 912,2; //Zargon
delitem 2208,1; //Ribbon
- set Zeny,Zeny-400;
+ Zeny -= 400;
getitem 10014,1; // Rocker_Glasses
close;
}
diff --git a/npc/quests/newgears/2004_headgears.txt b/npc/quests/newgears/2004_headgears.txt
index a9ee31558..4ee75a969 100644
--- a/npc/quests/newgears/2004_headgears.txt
+++ b/npc/quests/newgears/2004_headgears.txt
@@ -68,7 +68,7 @@ payon,115,131,3 script Neko Neko#1 4_F_JOB_ASSASSIN,{
delitem 2213,1; //Cat_Hairband
delitem 983,1; //Black_Dyestuffs
delitem 914,200; //Fluff
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
getitem 5057,1; //Ear_Of_Black_Cat
next;
mes "[Neko Neko]";
@@ -250,7 +250,7 @@ geffen,129,148,3 script Argen#1 4_M_YOYOROGUE,{
mes "Hey, that looks pretty smooth! Oh, and uh, you can keep this leftover Stem.";
delitem 2269,1; //Centimental_Flower
delitem 999,10; //Steel
- set Zeny, Zeny-20000;
+ Zeny -= 20000;
getitem 5061,1; //Flower_Hairpin
getitem 905,1; //Stem
next;
@@ -524,7 +524,7 @@ comodo,237,217,5 script Meruntei#1 4_M_JOB_HUNTER,{
delitem 5010,1; //Indian_Hair_Piece
delitem 5049,1; //Stripe_Band
delitem 7101,10; //Peco_Wing_Feather
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
getitem 5071,1; //Indian_Headband
next;
mes "[Meruntei]";
@@ -708,7 +708,7 @@ yuno,241,52,3 script Old Blacksmith#hgear 2_M_OLDBLSMITH,{
mes "'Angel Wing Ears!'";
delitem 2254,1; //Angelic_Chain
delitem 2286,1; //Elven_Ears
- set Zeny, Zeny-20000;
+ Zeny -= 20000;
getitem 5074,1; //Ear_Of_Angel's_Wing
next;
mes "[Hatbyr Mhore]";
@@ -763,7 +763,7 @@ yuno,241,52,3 script Old Blacksmith#hgear 2_M_OLDBLSMITH,{
mes "There you go, buddy. I am proud to say this is my masterpiece. I call it... 'Devil Wing Ears!'";
delitem 2255,1; //Satanic_Chain
delitem 2286,1; //Elven_Ears
- set Zeny, Zeny-20000;
+ Zeny -= 20000;
getitem 5068,1; //Ear_Of_Devil's_Wing
next;
mes "[Hatbyr Mhore]";
@@ -833,7 +833,7 @@ yuno,241,52,3 script Old Blacksmith#hgear 2_M_OLDBLSMITH,{
mes "I am proud to say this is my masterpiece. Please take this item. I call it... 'Devil Wing Ears!'";
delitem 2255,1; //Satanic_Chain
delitem 2286,1; //Elven_Ears
- set Zeny, Zeny-20000;
+ Zeny -= 20000;
getitem 5068,1; //Ear_Of_Devil's_Wing
next;
mes "[Hatbyr Mhore]";
@@ -887,7 +887,7 @@ yuno,241,52,3 script Old Blacksmith#hgear 2_M_OLDBLSMITH,{
mes "I am proud to say this is my masterpiece. Please take this item. I call it... 'Angel Wing Ears!'";
delitem 2254,1; //Angelic_Chain
delitem 2286,1; //Elven_Ears
- set Zeny, Zeny-20000;
+ Zeny -= 20000;
getitem 5074,1; //Ear_Of_Angel's_Wing
next;
mes "[Hatbyr Mhore]";
@@ -1778,7 +1778,7 @@ yuno_in03,20,18,6 script Nehris#1 4_F_JOB_BLACKSMITH,{
delitem 10016,1; //Golden_Bell
delitem 714,1; //Emperium
delitem 969,3; //Gold
- set Zeny, Zeny-20000;
+ Zeny -= 20000;
getitem 5091,1; //Big_Golden_Bell
mes "[Nehris]";
mes "Yoohoo~";
@@ -1816,7 +1816,7 @@ yuno_in03,20,18,6 script Nehris#1 4_F_JOB_BLACKSMITH,{
delitem 10006,1; //Queen's_Hair_Ornament
delitem 714,1; //Emperium
delitem 969,3; //Gold
- set Zeny, Zeny-20000;
+ Zeny -= 20000;
getitem 5080,1; //Headgear_Of_Queen
mes "[Nehris]";
mes "Tah dah!";
@@ -1866,7 +1866,7 @@ yuno_in03,20,18,6 script Nehris#1 4_F_JOB_BLACKSMITH,{
delitem 2249,1; //Coronet
delitem 714,1; //Emperium
delitem 969,3; //Gold
- set Zeny, Zeny-40000;
+ Zeny -= 40000;
getitem 5081,1; //Mistress_Crown
mes "[Nehris]";
mes "Yay! You've got a great looking crown!";
diff --git a/npc/quests/newgears/2005_headgears.txt b/npc/quests/newgears/2005_headgears.txt
index 4b6981101..c18b0e441 100644
--- a/npc/quests/newgears/2005_headgears.txt
+++ b/npc/quests/newgears/2005_headgears.txt
@@ -572,7 +572,7 @@ lighthalzen,143,68,0 script Strange Guy#LhzHat 1_M_01,{
delitem 7301,1887;
delitem 5120,1;
delitem 611,10;
- set Zeny, Zeny - 1887;
+ Zeny -= 1887;
set DTHATQ,2;
getitem 5108,1;
next;
@@ -730,7 +730,7 @@ lighthalzen,143,68,0 script Strange Guy#LhzHat 1_M_01,{
delitem 7301,1887;
delitem 5120,1;
delitem 611,10;
- set Zeny, Zeny - 1887;
+ Zeny -= 1887;
set DTHATQ,2;
getitem 5108,1;
next;
@@ -917,7 +917,7 @@ einbech,70,222,5 script Metelle#LhzHat 4_F_02,{
delitem 983,1;
delitem 7267,999;
delitem 749,1;
- set Zeny,Zeny - 50000;
+ Zeny -= 50000;
getitem 5115,1;
next;
mes "...";
@@ -1034,7 +1034,7 @@ lhz_in02,91,38,5 script Margaret Mary#LhzHat 4_F_01,{
delitem 731,10;
delitem 748,3;
delitem 982,1;
- set Zeny,Zeny - 50000;
+ Zeny -= 50000;
getitem 5117,1;
close;
@@ -1282,7 +1282,7 @@ lighthalzen,182,89,0 script Relaxed-Looking Lady 4_F_02,{
delitem 10007,1;
delitem 975,1;
delitem 5032,1;
- set Zeny,Zeny - 50000;
+ Zeny -= 50000;
getitem 5109,1;
set LHZBTQ,3;
next;
@@ -1355,7 +1355,7 @@ lighthalzen,182,89,0 script Relaxed-Looking Lady 4_F_02,{
delitem 10007,1;
delitem 975,1;
delitem 5032,1;
- set Zeny,Zeny - 50000;
+ Zeny -= 50000;
getitem 5109,1;
next;
mes "[Achiha]";
diff --git a/npc/quests/newgears/2006_headgears.txt b/npc/quests/newgears/2006_headgears.txt
index 8a63503c2..c77dba022 100644
--- a/npc/quests/newgears/2006_headgears.txt
+++ b/npc/quests/newgears/2006_headgears.txt
@@ -50,7 +50,7 @@ rachel,91,273,8 script ? 4_M_RACHMAN2,{
delitem 983,1; //Black_Dyestuffs
delitem 7111,100; //Smooth_Paper
delitem 938,99; //Sticky_Mucus
- set Zeny,Zeny-100000;
+ Zeny -= 100000;
getitem 5175,1; //Anonimity_Request
mes "[?]";
mes "Phew...it's done. Well, it was not that difficult to make, but...";
@@ -319,7 +319,7 @@ hugel,147,103,3 script Ghenirhemin 4_M_HUGRANFA,{
delitem 4166,1; //Nightmare_Terror_Card
delitem 7511,1000; //Rune_Of_Darkness
delitem 7563,1000; //Bloody_Rune
- set Zeny,Zeny-10000000;
+ Zeny -= 10000000;
set moza_valkylie,3;
mes "[Ghenirhemin]";
mes "Now I am all nervous";
diff --git a/npc/quests/ninja_quests.txt b/npc/quests/ninja_quests.txt
index 10757a60e..dfcc7d172 100644
--- a/npc/quests/ninja_quests.txt
+++ b/npc/quests/ninja_quests.txt
@@ -181,7 +181,7 @@ que_ng,28,50,3 script Boshuu 4_M_SEAMAN,{
mes "Come and find me whenever you're ready to request more.";
delitem 2102,1;
delitem 2117,1;
- set Zeny,Zeny-10000;
+ Zeny -= 10000;
set ninbo,0;
set MISC_QUEST,MISC_QUEST | 2048;
getitem 2118,1;
@@ -249,7 +249,7 @@ que_ng,28,50,3 script Boshuu 4_M_SEAMAN,{
mes "If you ever want to ask me to make you more items, feel free to come back anytime.";
delitem 2102,1;
delitem 2117,1;
- set Zeny,Zeny-10000;
+ Zeny -= 10000;
getitem 2118,1;
close;
}
@@ -351,7 +351,7 @@ que_ng,28,50,3 script Boshuu 4_M_SEAMAN,{
mes "If you ever want to ask me to make you more items, feel free to come back anytime.";
delitem 2102,1;
delitem 2117,1;
- set Zeny,Zeny-10000;
+ Zeny -= 10000;
set MISC_QUEST,MISC_QUEST | 2048;
getitem 2118,1;
close;
@@ -521,7 +521,7 @@ que_ng,28,45,3 script Basshu 4_M_04,{
mes "If you ever want me to create more items, come and ask me anytime.";
delitem 2107,1;
delitem 2117,1;
- set Zeny,Zeny-20000;
+ Zeny -= 20000;
set ninbot,0;
set MISC_QUEST,MISC_QUEST | 4096;
getitem 2119,1;
@@ -594,7 +594,7 @@ que_ng,28,45,3 script Basshu 4_M_04,{
mes "If you ever want me to create more items, come and ask me anytime.";
delitem 2107,1;
delitem 2117,1;
- set Zeny,Zeny-20000;
+ Zeny -= 20000;
getitem 2119,1;
close;
}
@@ -702,7 +702,7 @@ que_ng,28,45,3 script Basshu 4_M_04,{
mes "If you ever want me to create more items, come and ask me anytime.";
delitem 2107,1;
delitem 2117,1;
- set Zeny,Zeny-20000;
+ Zeny -= 20000;
set MISC_QUEST,MISC_QUEST | 4096;
getitem 2119,1;
close;
@@ -801,7 +801,7 @@ que_ng,27,18,3 script Toshu 4_M_SEAMAN,{
}
delitem 2104,1;
delitem 2119,1;
- set Zeny,Zeny-40000;
+ Zeny -= 40000;
switch (rand(5)) {
case 1:
@@ -905,7 +905,7 @@ que_ng,72,34,3 script Craftsman Kaibara 4_M_EINOLD,{
delitem 1036,400;
delitem 984,5;
delitem 7123,30;
- set Zeny,Zeny-200000;
+ Zeny -= 200000;
getitem 13006,1;
mes "[Kaibara]";
mes "Hmm, looks good.";
@@ -956,7 +956,7 @@ que_ng,72,34,3 script Craftsman Kaibara 4_M_EINOLD,{
}
delitem 999,30;
delitem 7022,1;
- set Zeny,Zeny-20000;
+ Zeny -= 20000;
getitem 13007,1;
mes "[Kaibara]";
mes "Hmm, very well.";
@@ -1004,7 +1004,7 @@ que_ng,72,34,3 script Craftsman Kaibara 4_M_EINOLD,{
}
delitem 999,25;
delitem 7099,5;
- set Zeny,Zeny-32000;
+ Zeny -= 32000;
getitem 13011,1;
mes "[Kaibara]";
mes "Hmm, very well.";
@@ -1053,7 +1053,7 @@ que_ng,72,34,3 script Craftsman Kaibara 4_M_EINOLD,{
}
delitem 999,30;
delitem 720,10;
- set Zeny,Zeny-48000;
+ Zeny -= 48000;
getitem 13012,1;
mes "[Kaibara]";
mes "Hmm, very well.";
@@ -1104,7 +1104,7 @@ que_ng,72,34,3 script Craftsman Kaibara 4_M_EINOLD,{
delitem 932,500;
delitem 12001,10;
delitem 722,5;
- set Zeny,Zeny-120000;
+ Zeny -= 120000;
getitem 13014,1;
mes "[Kaibara]";
mes "Hmm, very well.";
@@ -1191,7 +1191,7 @@ M_BENEKI:
delitem 999,50;
delitem 7115,20;
delitem 984,5;
- set Zeny,Zeny-90000;
+ Zeny -= 90000;
getitem 13300,1;
mes "[Tetsu]";
mes "Hmm, very well.";
@@ -1239,7 +1239,7 @@ M_DAIS:
delitem 999,30;
delitem 7301,100;
delitem 984,2;
- set Zeny,Zeny-40000;
+ Zeny -= 40000;
getitem 13301,1;
mes "[Tetsu]";
mes "Hmm, very well.";
@@ -1291,7 +1291,7 @@ M_DAIS4:
}
delitem 733,20;
delitem 984,3;
- set Zeny,Zeny-40000;
+ Zeny -= 40000;
delitem 13301,1;
getitem 13302,1;
mes "[Tetsu]";
@@ -1340,7 +1340,7 @@ M_REKKA:
delitem 7098,100;
delitem 7097,100;
delitem 7521,50;
- set Zeny,Zeny-78000;
+ Zeny -= 78000;
getitem 13303,1;
mes "[Tetsu]";
mes "Hmm, very well.";
diff --git a/npc/quests/quests_13_1.txt b/npc/quests/quests_13_1.txt
index b176b4081..9e7599ba4 100644
--- a/npc/quests/quests_13_1.txt
+++ b/npc/quests/quests_13_1.txt
@@ -7661,7 +7661,7 @@ function Catwarp;
close;
}
else if (Zeny >= 60) {
- set Zeny, Zeny-60;
+ Zeny -= 60;
mes "[Cat Hand Agent]";
mes "Thank you.";
mes "Your storage will";
@@ -7708,7 +7708,7 @@ function Catwarp;
close;
}
else if (Zeny >= 60) {
- set Zeny, Zeny-60;
+ Zeny -= 60;
mes "[Cat Hand Agent]";
mes "Thank you.";
mes "Your storage will";
@@ -7830,7 +7830,7 @@ function Catwarp;
close;
}
else if (Zeny >= 60) {
- set Zeny, Zeny-60;
+ Zeny -= 60;
mes "[Cat Hand Agent]";
mes "Thank you.";
mes "Your storage will";
@@ -7943,7 +7943,7 @@ function Catwarp {
close;
}
close2;
- set Zeny, Zeny-getarg(0);
+ Zeny -= getarg(0);
switch(getarg(1)) {
case 1: warp "alberta",117,56; end;
case 2: warp "prontera",116,72; end;
@@ -12064,7 +12064,7 @@ que_job01,82,95,3 script Bar Master#moc2_01 1_ETC_01,{
mes "Here, drink up.";
mes "This drink is mainly made of fruit juice,";
mes "but you still shouldn't drink too much.";
- set Zeny, Zeny-800;
+ Zeny -= 800;
getitem 12112,1; //Tropical_Sograt
}
close;
@@ -12082,7 +12082,7 @@ que_job01,82,95,3 script Bar Master#moc2_01 1_ETC_01,{
mes "There you go.";
mes "This drink is mainly made of fruit juice,";
mes "but you still shouldn't drink too much.";
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
getitem 12112,1; //Tropical_Sograt
close;
}
@@ -12108,7 +12108,7 @@ que_job01,82,95,3 script Bar Master#moc2_01 1_ETC_01,{
mes "[Karred]";
mes "I'll give you a special discount.";
mes "Here, enjoy.";
- set Zeny, Zeny-800;
+ Zeny -= 800;
getitem 12113,1; //Vermilion_The_Beach
}
close;
@@ -12125,7 +12125,7 @@ que_job01,82,95,3 script Bar Master#moc2_01 1_ETC_01,{
mes "[Karred]";
mes "There you go.";
mes "Don't drink too much, alright?";
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
getitem 12113,1; //Vermilion_The_Beach
close;
}
@@ -12273,7 +12273,7 @@ OnTouch:
mes "Hey, bartender! Gimme";
mes "the usual! I like your";
mes "style, adventurer...";
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
next;
mes "[Litheron]";
mes "Alright, you can come";
diff --git a/npc/quests/quests_13_2.txt b/npc/quests/quests_13_2.txt
index 16a4a6aa6..0767775be 100644
--- a/npc/quests/quests_13_2.txt
+++ b/npc/quests/quests_13_2.txt
@@ -106,7 +106,7 @@ spl_fild02,25,211,4 script Cat Hand Agent#spl 4_M_BOSSCAT,{
close;
}
else if (Zeny >= 60) {
- set Zeny, Zeny-60;
+ Zeny -= 60;
mes "[Cat Hand Agent]";
mes "Thank you.";
mes "Your storage will be opened shortly.";
@@ -153,7 +153,7 @@ spl_fild02,25,211,4 script Cat Hand Agent#spl 4_M_BOSSCAT,{
close;
}
else if (Zeny >= 60) {
- set Zeny, Zeny-60;
+ Zeny -= 60;
mes "[Cat Hand Agent]";
mes "Thank you.";
mes "Your storage will be opened shortly.";
@@ -274,7 +274,7 @@ spl_fild02,25,211,4 script Cat Hand Agent#spl 4_M_BOSSCAT,{
close;
}
else if (Zeny >= 60) {
- set Zeny, Zeny-60;
+ Zeny -= 60;
mes "[Cat Hand Agent]";
mes "Thank you.";
mes "Your storage will be opened shortly.";
@@ -395,7 +395,7 @@ function Catwarp {
close;
}
close2;
- set Zeny, Zeny-getarg(0);
+ Zeny -= getarg(0);
switch(getarg(1)) {
case 1: warp "alberta",117,56; end;
case 2: warp "prontera",116,72; end;
diff --git a/npc/quests/quests_alberta.txt b/npc/quests/quests_alberta.txt
index bde9e8841..560160c3f 100644
--- a/npc/quests/quests_alberta.txt
+++ b/npc/quests/quests_alberta.txt
@@ -1196,7 +1196,7 @@ alberta_in,23,104,4 script Grandpa Turtle#tur 2_M_PHARMACIST,{
mes "You've made your choice! With my experience, we will arrive without fail! I appreciate your spirit!";
next;
mes "^3355FF*Choo Choo*^000000";
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
warp "tur_dun01",157,39;
close;
}
diff --git a/npc/quests/quests_aldebaran.txt b/npc/quests/quests_aldebaran.txt
index 17fd9190e..86c0eef18 100644
--- a/npc/quests/quests_aldebaran.txt
+++ b/npc/quests/quests_aldebaran.txt
@@ -41,7 +41,7 @@ aldeba_in,152,166,4 script Trader#01 4_M_04,{
delitem 2275,1; //Red_Bandana
delitem 998,50; //Iron
delitem 733,1; //Crystal_Jewel___
- set Zeny, Zeny-3500;
+ Zeny -= 3500;
mes "[Trader]";
mes "Hm! You don't have a medical license, do you? It's alright, I've heard about a rogue, unlicensed physician who performed medical miracles! But... That might have been a comic book.";
next;
@@ -61,7 +61,7 @@ aldeba_in,152,166,4 script Trader#01 4_M_04,{
if ((countitem(2247) > 0) && (countitem(916) > 299) && (Zeny > 499)) {
delitem 2247,1; //Oldman's_Romance
delitem 916,300; //Feather_Of_Birds
- set Zeny, Zeny-500;
+ Zeny -= 500;
mes "[Trader]";
mes "Ooh~! You have good fashion sense. I know you've had a hard time collecting this stuff, but this hat is worth it. Take it. All you need now is a fur coat and a cane!";
getitem 5018,1; //Feather_Bonnet
@@ -77,7 +77,7 @@ aldeba_in,152,166,4 script Trader#01 4_M_04,{
if ((countitem(998) > 19) && (countitem(707) > 0) && (Zeny > 4999)){ //Iron Singing_Plant
delitem 998,20; //Iron
delitem 707,1; //Singing_Plant
- set Zeny, Zeny-5000;
+ Zeny -= 5000;
mes "[Trader]";
mes "This one? It's a little bit scary, though it has some sort of romantic quality. What do you think? You like it? Alright, take it, it's yours!";
getitem 2281,1; //Phantom_Of_Opera
@@ -91,7 +91,7 @@ aldeba_in,152,166,4 script Trader#01 4_M_04,{
case 4:
if ((countitem(1019) > 119) && (Zeny > 9999)){ //Wooden_Block
delitem 1019,120; //Wooden_Block
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
mes "[Trader]";
mes "If you have a chance to visit the Uplander Village, Payon, please go and meet the Sakkat Craftsman.";
next;
diff --git a/npc/quests/quests_amatsu.txt b/npc/quests/quests_amatsu.txt
index 53a11d0b8..61c948f6e 100644
--- a/npc/quests/quests_amatsu.txt
+++ b/npc/quests/quests_amatsu.txt
@@ -1127,7 +1127,7 @@ ama_in01,162,17,1 script Sushi Master#ama 4_M_JPNOJI2,{
mes "If you want to eat delicious fish slices, you better bring more money.";
close;
}
- set Zeny, Zeny-700;
+ Zeny -= 700;
getitem 551,10; //Shusi
mes "[Magumagu]";
mes "There you go. If you like the taste, please order some more.";
@@ -1140,7 +1140,7 @@ ama_in01,162,17,1 script Sushi Master#ama 4_M_JPNOJI2,{
mes "you better bring more money.";
close;
}
- set Zeny, Zeny-74;
+ Zeny -= 74;
getitem 551,1; //Shusi
mes "[Magumagu]";
mes "There you go. If you like the taste, please order some more.";
@@ -1168,7 +1168,7 @@ ama_in01,162,17,1 script Sushi Master#ama 4_M_JPNOJI2,{
mes "If you want to eat delicious fish slices, you better bring more money.";
close;
}
- set Zeny, Zeny-350;
+ Zeny -= 350;
getitem 544,10; //Fish_Slice
mes "[Magumagu]";
mes "There you go. If you like the taste, please order some more.";
@@ -1181,7 +1181,7 @@ ama_in01,162,17,1 script Sushi Master#ama 4_M_JPNOJI2,{
mes "";
close;
}
- set Zeny, Zeny-37;
+ Zeny -= 37;
getitem 544,1; //Fish_Slice
mes "[Magumagu]";
mes "There you go. If you like the taste, please order some more.";
@@ -1474,7 +1474,7 @@ ama_in02,170,62,4 script Soldier#ama2 8_M_JPNSOLDIER,{
mes "to issue another Transit Permit.";
next;
if (select("Issue one:Talk to you later") == 1) {
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
getitem 7160,1; //Lord's_Passable_Ticket
mes "[Jiro]";
mes "There you go.";
diff --git a/npc/quests/quests_ayothaya.txt b/npc/quests/quests_ayothaya.txt
index 954c532a1..5a30866f7 100644
--- a/npc/quests/quests_ayothaya.txt
+++ b/npc/quests/quests_ayothaya.txt
@@ -862,7 +862,7 @@ ayothaya,253,99,3 script Fisherman 4_M_THAIONGBAK,{
mes "^3355FFYou've hooked a Phen!^000000";
next;
delitem 528,1; //Monster's_Feed
- set Zeny, Zeny-50;
+ Zeny -= 50;
set .@randfish,rand(1,100);
if (.@randfish > 0 && .@randfish < 40) {
mes "^3355FFWhile cooking the Phen, you";
@@ -2546,7 +2546,7 @@ ayothaya,153,86,5 script Thongpool#ayo 4_M_THAIONGBAK,{
if (select("I will take them.:I could get 100 Jellopies for that much!") == 1) {
if (Zeny > 10999) {
if (MaxWeight - Weight > 3999) {
- set Zeny, Zeny-11000;
+ Zeny -= 11000;
set tomyumgoong,3;
getitem 567,20; //Prawn
emotion e_no1;
@@ -2590,7 +2590,7 @@ ayothaya,153,86,5 script Thongpool#ayo 4_M_THAIONGBAK,{
if (select("Yes!:No, thanks.") == 1) {
if (Zeny > 10999) {
if (MaxWeight - Weight > 3999) {
- set Zeny, Zeny-11000;
+ Zeny -= 11000;
getitem 567,20; //Prawn
mes "[Thongpool]";
mes "There you go~";
@@ -2941,7 +2941,7 @@ ayothaya,213,94,7 script Merchant#ayo 4_M_THAIAYO,{
emotion e_thx;
if (Zeny > 1999) {
if (MaxWeight - Weight > 1199) {
- set Zeny, Zeny-2000;
+ Zeny -= 2000;
set tomyumgoong,7;
getitem 7286,30; //Chilli
mes "[Merchant Thongdum]";
@@ -2997,7 +2997,7 @@ ayothaya,213,94,7 script Merchant#ayo 4_M_THAIAYO,{
}
if (Zeny > 1999) {
if (MaxWeight - Weight > 1199) {
- set Zeny, Zeny-2000;
+ Zeny -= 2000;
getitem 7286,30; //Chilli
mes "[Merchant Thongdum]";
mes "Thank you,";
diff --git a/npc/quests/quests_ein.txt b/npc/quests/quests_ein.txt
index 51d7e5869..3283266ea 100644
--- a/npc/quests/quests_ein.txt
+++ b/npc/quests/quests_ein.txt
@@ -274,7 +274,7 @@ einbech,97,167,5 script Cavitar 4_M_EINOLD,{
mes "you a small present";
mes "as a token of my gratitute.";
mes "If you would, please take this.";
- set Zeny,Zeny-1000;
+ Zeny -= 1000;
set ein_gear1,2;
switch(rand(1,7)) {
case 1:
@@ -331,7 +331,7 @@ einbech,97,167,5 script Cavitar 4_M_EINOLD,{
next;
switch(select("Sure~!:No, thanks.")) {
case 1:
- set Zeny,Zeny-1000;
+ Zeny -= 1000;
set ein_gear1,1;
mes "[Cavitar]";
mes "Great...!";
@@ -355,7 +355,7 @@ einbech,97,167,5 script Cavitar 4_M_EINOLD,{
mes "this small gift";
mes "as a token of";
mes "my gratitude.";
- set Zeny,Zeny-1000;
+ Zeny -= 1000;
getitem 1010,1; // Phracon
close;
}
@@ -384,7 +384,7 @@ einbech,97,167,5 script Cavitar 4_M_EINOLD,{
next;
switch(select("Sure~!:No, thanks.")) {
case 1:
- set Zeny,Zeny-1000;
+ Zeny -= 1000;
set $einamanoama,$einamanoama + 1;
set ein_gear1,1;
mes "[Cavitar]";
@@ -409,7 +409,7 @@ einbech,97,167,5 script Cavitar 4_M_EINOLD,{
mes "this small gift";
mes "as a token of";
mes "my gratitude.";
- set Zeny,Zeny-1000;
+ Zeny -= 1000;
getitem 1010,1; // Phracon
close;
}
diff --git a/npc/quests/quests_geffen.txt b/npc/quests/quests_geffen.txt
index 54e57218f..9c73d6c9f 100644
--- a/npc/quests/quests_geffen.txt
+++ b/npc/quests/quests_geffen.txt
@@ -49,7 +49,7 @@ geffen_in,144,166,4 script Blacksmith 1_M_SMITH,{
mes "Ah, I see that you appreciate a Blacksmith's work! Alright, I'll do it right away !!";
next;
delitem 999,50; //Steel
- set Zeny,Zeny-2000;
+ Zeny -= 2000;
getitem 2292,1; // Welding_Mask
mes "[Blacksmith]";
mes "Hahaha~! Make good use of that!";
diff --git a/npc/quests/quests_hugel.txt b/npc/quests/quests_hugel.txt
index 6c8a8978f..313b999b4 100644
--- a/npc/quests/quests_hugel.txt
+++ b/npc/quests/quests_hugel.txt
@@ -3461,7 +3461,7 @@ einbech,208,124,3 script Bomb Maker 4_M_REPAIR,{
mes "[Boomer]";
mes "Just make sure that you are not going to";
mes "blow yourself away with this bomb, hahah!";
- set Zeny,Zeny-3000;
+ Zeny -= 3000;
getitem 7138,1; //Marine Sphere Bottle
close;
case 2:
@@ -5567,7 +5567,7 @@ hu_in01,15,372,3 script Cellette Lavit 1_F_MERCHANT_02,{
mes "bowl of Fish Cake Soup.";
mes "I hope you come and ";
mes "visit me again, okay?";
- set Zeny,Zeny-100;
+ Zeny -= 100;
getitem 584,1; //Fish_Ball_Soup
close;
} else {
@@ -5625,7 +5625,7 @@ hu_in01,15,372,3 script Cellette Lavit 1_F_MERCHANT_02,{
mes "There, I took 100 zeny";
mes "from you. That's fair, so";
mes "please don't lose it this time.";
- set Zeny,Zeny-100;
+ Zeny -= 100;
getitem 584,1; //Fish_Ball_Soup
close;
} else {
@@ -5666,7 +5666,7 @@ hu_in01,15,372,3 script Cellette Lavit 1_F_MERCHANT_02,{
mes "There, I took 100 zeny";
mes "from you. That's fair, so";
mes "please don't lose it this time.";
- set Zeny,Zeny-100;
+ Zeny -= 100;
getitem 584,1; //Fish_Ball_Soup
close;
} else {
@@ -5708,7 +5708,7 @@ hu_in01,15,372,3 script Cellette Lavit 1_F_MERCHANT_02,{
mes "There, I took 100 zeny";
mes "from you. That's fair, so";
mes "please don't lose it this time.";
- set Zeny,Zeny-100;
+ Zeny -= 100;
getitem 584,1; //Fish_Ball_Soup
close;
} else {
@@ -5749,7 +5749,7 @@ hu_in01,15,372,3 script Cellette Lavit 1_F_MERCHANT_02,{
mes "There, I took 100 zeny";
mes "from you. That's fair, so";
mes "please don't lose it this time.";
- set Zeny,Zeny-100;
+ Zeny -= 100;
getitem 584,1; //Fish_Ball_Soup
close;
} else {
@@ -9525,7 +9525,7 @@ hugel,209,109,2 script Boatman#hugel 4_M_SEAMAN,{
mes "We'll arrive near";
mes "the Odin Shrine soon~";
close2;
- set Zeny,Zeny -800;
+ Zeny -= 800;
if (hg_odin == 2) set hg_odin,3;
else if (hg_odin == 4) set hg_odin,5;
else if (hg_odin == 12) set hg_odin,13;
diff --git a/npc/quests/quests_izlude.txt b/npc/quests/quests_izlude.txt
index e95b8b2b7..3b20a85bf 100644
--- a/npc/quests/quests_izlude.txt
+++ b/npc/quests/quests_izlude.txt
@@ -32,7 +32,7 @@
mes "get some more cash?";
close ;
}
- set Zeny, Zeny-250;
+ Zeny -= 250;
warp "alberta",195,164;
end;
}
@@ -79,7 +79,7 @@
mes "some more.";
close;
}
- set Zeny, Zeny-250;
+ Zeny -= 250;
warp "alberta",195,164;
end;
}
diff --git a/npc/quests/quests_lighthalzen.txt b/npc/quests/quests_lighthalzen.txt
index 03f38edd9..6f9a4c0d2 100644
--- a/npc/quests/quests_lighthalzen.txt
+++ b/npc/quests/quests_lighthalzen.txt
@@ -1720,7 +1720,7 @@ OnTouch:
mes "^3355FF*SHHHHHHUK!*^000000";
specialeffect EF_STEAL;
if (Zeny >= 100) {
- set Zeny, Zeny-100;
+ Zeny -= 100;
}
next;
mes "[" + strcharinfo(0) + "]";
@@ -1736,7 +1736,7 @@ OnTouch:
mes "^3355FF*SHHHHHHUK!*^000000";
specialeffect EF_STEAL;
if (Zeny >= 200) {
- set Zeny, Zeny-200;
+ Zeny -= 200;
}
next;
mes "[" + strcharinfo(0) + "]";
@@ -1753,7 +1753,7 @@ OnTouch:
mes "^3355FF*SHHHHHHUK!*^000000";
specialeffect EF_STEAL;
if (Zeny >= 10) {
- set Zeny, Zeny-10;
+ Zeny -= 10;
}
next;
mes "[" + strcharinfo(0) + "]";
@@ -1793,7 +1793,7 @@ OnTouch:
mes "^3355FF*SHHHHHHUK!*^000000";
specialeffect EF_STEAL;
if (Zeny >= 100) {
- set Zeny, Zeny-100;
+ Zeny -= 100;
}
next;
mes "[" + strcharinfo(0) + "]";
@@ -1809,7 +1809,7 @@ OnTouch:
mes "^3355FF*SHHHHHHUK!*^000000";
specialeffect EF_STEAL;
if (Zeny >= 200) {
- set Zeny, Zeny-200;
+ Zeny -= 200;
}
next;
mes "[" + strcharinfo(0) + "]";
@@ -1826,7 +1826,7 @@ OnTouch:
mes "^3355FF*SHHHHHHUK!*^000000";
specialeffect EF_STEAL;
if (Zeny >= 10) {
- set Zeny, Zeny-10;
+ Zeny -= 10;
}
next;
mes "[" + strcharinfo(0) + "]";
@@ -1866,7 +1866,7 @@ OnTouch:
mes "^3355FF*SHHHHHHUK!*^000000";
specialeffect EF_STEAL;
if (Zeny >= 100) {
- set Zeny, Zeny-100;
+ Zeny -= 100;
}
next;
mes "[" + strcharinfo(0) + "]";
@@ -1883,7 +1883,7 @@ OnTouch:
mes "^3355FF*SHHHHHHUK!*^000000";
specialeffect EF_STEAL;
if (Zeny >= 200) {
- set Zeny, Zeny-200;
+ Zeny -= 200;
}
next;
mes "[" + strcharinfo(0) + "]";
@@ -1900,7 +1900,7 @@ OnTouch:
mes "^3355FF*SHHHHHHUK!*^000000";
specialeffect EF_STEAL;
if (Zeny >= 10) {
- set Zeny, Zeny-10;
+ Zeny -= 10;
}
next;
mes "[" + strcharinfo(0) + "]";
@@ -2017,7 +2017,7 @@ OnTouch:
mes "but I hope we never bump";
mes "into each other ever again!";
}
- set Zeny, Zeny-.@price;
+ Zeny -= .@price;
getitem 12016,.@number; //Speed_Up_Potion
}
}
diff --git a/npc/quests/quests_louyang.txt b/npc/quests/quests_louyang.txt
index b9f086264..3b0520c66 100644
--- a/npc/quests/quests_louyang.txt
+++ b/npc/quests/quests_louyang.txt
@@ -1885,7 +1885,7 @@ lou_in02,210,47,0 script City Hall Officer#lou 4_M_CHNSOLDIER,{
mes "[Jin Chiyuan]";
mes "^666666*Whispers*^000000";
mes "^333333When you go up stairs, another officer will give you the document you want.^000000 ^666666*Ahem*^000000 Louyang thanks you!";
- set Zeny, Zeny-.@input;
+ Zeny -= .@input;
if (ch_par == 5) {
set ch_par,11;
changequest 11046,11051;
@@ -4124,7 +4124,7 @@ lou_fild01,224,348,0 script Lady#delivery 4_F_CHNDRESS3,{
mes "[Lady]";
mes "Alright, there you go!";
if (Zeny > 99) {
- set Zeny, Zeny-100;
+ Zeny -= 100;
}
close2;
specialeffect EF_BLASTMINEBOMB,AREA," #fire";
@@ -4146,7 +4146,7 @@ lou_fild01,224,348,0 script Lady#delivery 4_F_CHNDRESS3,{
mes "Alright,";
mes "there you go!";
if (Zeny > 99) {
- set Zeny, Zeny-100;
+ Zeny -= 100;
}
close2;
donpcevent " #fire::OnClaymore";
@@ -4176,7 +4176,7 @@ lou_fild01,224,348,0 script Lady#delivery 4_F_CHNDRESS3,{
mes "delivery fee of 1,000 zeny.";
next;
if (Zeny > 999) {
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
getitem 7126,1; //Large_Jellopy
mes "[Lady]";
mes "Thank you~";
@@ -4234,7 +4234,7 @@ lou_fild01,224,348,0 script Lady#delivery 4_F_CHNDRESS3,{
mes "Alright~";
mes "There you go!";
if (Zeny > 99) {
- set Zeny, Zeny-100;
+ Zeny -= 100;
}
close2;
donpcevent " #fire::OnClaymore";
diff --git a/npc/quests/quests_morocc.txt b/npc/quests/quests_morocc.txt
index 6a5f452cf..86e07aab1 100644
--- a/npc/quests/quests_morocc.txt
+++ b/npc/quests/quests_morocc.txt
@@ -67,7 +67,7 @@ moc_ruins,113,181,4 script William 4_M_ORIENT02,{
if ((countitem(1019) > 49) && (countitem(983) > 0) && (Zeny > 91099)) {
delitem 1019,50; //Wooden_Block
delitem 983,1; //Black_Dyestuffs
- set Zeny, Zeny-91100;
+ Zeny -= 91100;
mes "[William]";
mes "Here you are~!";
mes "This ^3355FFStop Post^000000 has";
@@ -134,7 +134,7 @@ moc_ruins,118,176,4 script Alchemist 1_M_WIZARD,{
next;
delitem 2243,1; //Spinning_Eyes
delitem 999,100; //Steel
- set Zeny, Zeny-50000;
+ Zeny -= 50000;
mes "[Marius]";
mes "Here you are!";
mes "Binoculars !";
@@ -261,7 +261,7 @@ OnTouch:
mes "Hey, bartender! Gimme";
mes "the usual! I like your";
mes "style, adventurer...";
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
next;
mes "[Litheron]";
mes "Alright, you can come";
@@ -406,7 +406,7 @@ que_job01,82,95,3 script Bar Master#moc_main01 1_ETC_01,{
mes "ask you for 800. Enjoy it,";
mes "my friend, and drink it as";
mes "deeply as you would life.";
- set Zeny, Zeny-800;
+ Zeny -= 800;
getitem 12112,1; //Tropical_Sograt
}
close;
@@ -429,7 +429,7 @@ que_job01,82,95,3 script Bar Master#moc_main01 1_ETC_01,{
mes "hard feelings, but you're";
mes "already lucky to be here.";
mes "Hey, enjoy your drink~";
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
getitem 12112,1; //Tropical_Sograt
close;
}
@@ -465,7 +465,7 @@ que_job01,82,95,3 script Bar Master#moc_main01 1_ETC_01,{
mes "ask you for 800. Enjoy it,";
mes "my friend, and drink it as";
mes "deeply as you would life.";
- set Zeny, Zeny-800;
+ Zeny -= 800;
getitem 12113,1; //Vermilion_The_Beach
}
close;
@@ -488,7 +488,7 @@ que_job01,82,95,3 script Bar Master#moc_main01 1_ETC_01,{
mes "hard feelings, but you're";
mes "already lucky to be here.";
mes "Hey, enjoy your drink~";
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
getitem 12113,1; //Vermilion_The_Beach
close;
}
diff --git a/npc/quests/quests_moscovia.txt b/npc/quests/quests_moscovia.txt
index a181a81d9..740f1b038 100644
--- a/npc/quests/quests_moscovia.txt
+++ b/npc/quests/quests_moscovia.txt
@@ -3185,7 +3185,7 @@ mosk_in,135,191,5 script Landlord#mos 4_F_RUSWOMAN3,{
mes "Ok, I'll bring you the best room.";
mes "Please have a rest, young adventurer.";
close2;
- set Zeny,Zeny-5000;
+ Zeny -= 5000;
percentheal 100,100;
warp "mosk_in",215,181;
end;
@@ -3242,7 +3242,7 @@ mosk_in,135,191,5 script Landlord#mos 4_F_RUSWOMAN3,{
mes "I wish you a good night's rest. Hohoho.";
set mos_swan,4;
close2;
- set Zeny,Zeny-5000;
+ Zeny -= 5000;
percentheal 100,100;
warp "mosk_in",215,181;
end;
@@ -3332,7 +3332,7 @@ mosk_in,135,191,5 script Landlord#mos 4_F_RUSWOMAN3,{
mes "[Landlord]";
mes "Please be comfortable.";
close2;
- set Zeny,Zeny-5000;
+ Zeny -= 5000;
percentheal 100,100;
warp "mosk_in",215,181;
end;
@@ -3399,7 +3399,7 @@ mosk_in,141,212,3 script Pub Owner#mos 4_M_RUSBALD,{
close;
}
if (Zeny > 999) {
- set Zeny,Zeny-1000;
+ Zeny -= 1000;
set mos_swan,9;
if (!.@j) getitem 519,1; else getitem 531,1;
mes "[Pub Owner]";
@@ -3462,7 +3462,7 @@ mosk_in,141,212,3 script Pub Owner#mos 4_M_RUSBALD,{
switch(select("Milk - 1000z:Apple juice - 1000z:They are all expensive!")) {
case 1:
if (Zeny > 999) {
- set Zeny,Zeny-1000;
+ Zeny -= 1000;
set mos_swan,9;
getitem 519,1;
mes "[Pub Owner]";
@@ -3476,7 +3476,7 @@ mosk_in,141,212,3 script Pub Owner#mos 4_M_RUSBALD,{
close;
case 2:
if (Zeny > 999) {
- set Zeny,Zeny-1000;
+ Zeny -= 1000;
set mos_swan,9;
getitem 531,1;
mes "[Pub Owner]";
@@ -3999,7 +3999,7 @@ moscovia,208,182,7 script Acorn Dealer#mos 4_M_RUSMAN1,{
mes "[Acorn Dealer]";
mes "Oh, thank you...";
mes "What do you think of them? They're fresh, aren't they?";
- set Zeny,Zeny - .@price;
+ Zeny -= .@price;
getitem 1026,.@input;
close;
}
@@ -10241,7 +10241,7 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 4_F_BABAYAGA,{
delitem 1092,.@redtube_send;
delitem 7134,.@redcup_send;
delitem 512,.@redapple_send;
- set Zeny,Zeny-.@redzeny_send;
+ Zeny -= .@redzeny_send;
getitem 545,.@total_red01;
close;
}
@@ -10328,7 +10328,7 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 4_F_BABAYAGA,{
delitem 1092,.@yelltube_send;
delitem 7134,.@yellcup_send;
delitem 513,.@yellbanana_send;
- set Zeny,Zeny-.@yellzeny_send;
+ Zeny -= .@yellzeny_send;
getitem 546,.@total_yell01;
close;
}
@@ -11184,7 +11184,7 @@ amatsu,233,234,3 script Momotoro Publisher#rus42 4_F_JPN2,{
}
mes "[Momotoro Publisher]";
mes "Thank you for buying our books. If you need more books, contact us please.";
- set Zeny,Zeny-5000;
+ Zeny -= 5000;
set rhea_rus_main,27;
getitem 7881,1;
close;
diff --git a/npc/quests/quests_nameless.txt b/npc/quests/quests_nameless.txt
index 258f01bc6..f38398b40 100644
--- a/npc/quests/quests_nameless.txt
+++ b/npc/quests/quests_nameless.txt
@@ -437,7 +437,7 @@ OnTouch:
set aru_monas,8;
changequest 17003,17004;
if (Zeny > 3000) {
- set Zeny, Zeny-3000;
+ Zeny -= 3000;
getitem 12052,4; //Vit_Dish02
}
close;
@@ -6114,7 +6114,7 @@ in_rogue,366,46,3 script Rogue Investigator 4_M_ROGUE,{
switch(select("Sounds good!:Never mind, I'll find it myself...")) {
case 1:
if (Zeny > 9999) {
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
mes "[Investigator]";
mes "Thanks for the money~";
mes "Of course, if you became";
@@ -6192,7 +6192,7 @@ in_rogue,366,46,3 script Rogue Investigator 4_M_ROGUE,{
switch(select("Sounds good!:Forget it...")) {
case 1:
if (Zeny > 9999) {
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
mes "[Investigator]";
mes "Right on, right on.";
mes "Alright, I didn't charge";
@@ -7390,7 +7390,7 @@ payon,244,62,3 script Moonho Ahn 4_M_HUGRANFA,{
switch(select("Yes, let's play!:How does this game work again?")) {
case 1:
if (Zeny > 500) {
- set Zeny, Zeny-500;
+ Zeny -= 500;
mes "[Moonho Ahn]";
mes "Good, let's get started!";
mes "I'll let you go first~";
@@ -9380,7 +9380,7 @@ morocc,143,63,3 script Ragged Man#nd 4_M_MIDDLE,{
close;
}
else {
- set Zeny, Zeny-1200;
+ Zeny -= 1200;
mes "[Ragged Man]";
mes "Let's see... I just need";
mes "1,200 zeny. That's enough";
@@ -9459,7 +9459,7 @@ morocc,143,63,3 script Ragged Man#nd 4_M_MIDDLE,{
mes "up the funds. I'll be waiting.";
close; }
else {
- set Zeny, Zeny-1200;
+ Zeny -= 1200;
mes "[Ragged Man]";
mes "Remember that hidden";
mes "treasure I was looking for?";
@@ -10499,7 +10499,7 @@ alberta_in,70,109,5 script Shaman 4_M_UMOLDMAN,{
mes "If all goes well, you'll be";
mes "free of your curse, and I can";
mes "buy some Prontera real estate.";
- set Zeny, Zeny-200000;
+ Zeny -= 200000;
set jewel_nd,14;
next;
mes "[Shaman]";
@@ -10550,7 +10550,7 @@ alberta_in,70,109,5 script Shaman 4_M_UMOLDMAN,{
mes "Hopefully, the";
mes "spirits will be more";
mes "cooperative this time.";
- set Zeny, Zeny-100000;
+ Zeny -= 100000;
set jewel_nd,16;
next;
mes "[Shaman]";
diff --git a/npc/quests/quests_payon.txt b/npc/quests/quests_payon.txt
index d412c9615..7f3c65a20 100644
--- a/npc/quests/quests_payon.txt
+++ b/npc/quests/quests_payon.txt
@@ -90,7 +90,7 @@ payon_in01,18,10,4 script Mystic Lady 1_F_ORIENT_02,{
delitem 724,1; //Cardinal_Jewel_
delitem 949,200; //Feather
delitem 5001,1; //Headset
- set Zeny,Zeny-5000;
+ Zeny -= 5000;
mes "Here, I will give you this pre-made one.";
getitem 2283,1; //Ear_Mufs
next;
diff --git a/npc/quests/quests_prontera.txt b/npc/quests/quests_prontera.txt
index d2a15064c..d4588e5c5 100644
--- a/npc/quests/quests_prontera.txt
+++ b/npc/quests/quests_prontera.txt
@@ -2894,7 +2894,7 @@ prt_church,185,106,3 script Father Bamph 1_M_PASTOR,{
mes "to cover your Airship fee.";
mes "Thank you, and good luck.";
set aru_monas,6;
- set Zeny, Zeny + (checkre(0)?5000:1500);
+ Zeny += (checkre(0)?5000:1500);
changequest 17002,17003;
close;
}
@@ -3639,7 +3639,7 @@ prt_in,162,99,4 script Librarian#curse 1_F_02,{
mes "replacement copies,";
mes "and try not to lose";
mes "them again. Thank you.";
- set Zeny, Zeny-700;
+ Zeny -= 700;
getitem 7431,1; //Books
close;
}
diff --git a/npc/quests/quests_rachel.txt b/npc/quests/quests_rachel.txt
index 715cbe7ee..a39d3de41 100644
--- a/npc/quests/quests_rachel.txt
+++ b/npc/quests/quests_rachel.txt
@@ -3478,7 +3478,7 @@ rachel,113,96,5 script Mohadian 4_M_MIDDLE,10,10,{
mes "It's always a pleasure";
mes "doing business with you~";
delitem 7561,.@hearts; //Glacial Hearts
- set Zeny, Zeny+.@totalprice;
+ Zeny += .@totalprice;
close;
}
@@ -4194,7 +4194,7 @@ S_Donate:
}
set $rachel_donate,$rachel_donate+getarg(0);
getitem 7570,getarg(0); //Temple_Lottery_Ticket
- set Zeny, Zeny-getarg(0)*50000;
+ Zeny -= getarg(0)*50000;
set ra_have_donated,1;
if ($rachel_donate > 9999) {
cutin "ra_nemma03",2;
diff --git a/npc/quests/quests_veins.txt b/npc/quests/quests_veins.txt
index 4b35a132c..7c23f30a3 100644
--- a/npc/quests/quests_veins.txt
+++ b/npc/quests/quests_veins.txt
@@ -722,7 +722,7 @@ prontera,202,122,0 script Kid#sch 4_F_KID2,{
mes "[Rooney]";
mes "Hey, alright! Thanks";
mes "for the cash! Heh heh~";
- set Zeny, Zeny-100;
+ Zeny -= 100;
set que_sch,3;
close;
}
@@ -818,7 +818,7 @@ prt_church,89,108,6 script Bard#sch 2_M_BARD_ORIENT,{
mes "kid that was supposed";
mes "to come find me here.";
set que_sch,2;
- set Zeny, Zeny+100;
+ Zeny += 100;
next;
mes "[Lasda]";
mes "I'd like you to come";
@@ -1581,7 +1581,7 @@ job_duncer,93,106,6 script Dance Instructor#sch 4_F_HUGRANMA,{
mes "your Megaphone. Thanks";
mes "for everything, and I'll see";
mes "you around, adventurer~";
- set Zeny, Zeny-500000;
+ Zeny -= 500000;
set que_sch,18;
getitem 7040,1; //Megaphone
close;
@@ -1627,7 +1627,7 @@ job_duncer,93,106,6 script Dance Instructor#sch 4_F_HUGRANMA,{
mes "so I'm not supposed to let";
mes "you have this. Don't let";
mes "anyone know I gave you this!";
- set Zeny, Zeny-500000;
+ Zeny -= 500000;
getitem 7040,1; //Megaphone
close;
}
diff --git a/npc/quests/quests_yuno.txt b/npc/quests/quests_yuno.txt
index 50cca4535..f4d42aae1 100644
--- a/npc/quests/quests_yuno.txt
+++ b/npc/quests/quests_yuno.txt
@@ -529,7 +529,7 @@ S_DelItems:
delitem 7043,5; //Fine_Sand
delitem 757,3; //Elunium_Stone
delitem 756,3; //Oridecon_Stone
- set Zeny, Zeny-2000;
+ Zeny -= 2000;
getitem getarg(0),getarg(1); //Gold
mes "[Bain]";
mes "AHHH, it is a success!";
@@ -657,7 +657,7 @@ S_DelItems:
delitem 7043,5; //Fine_Sand
delitem 757,3; //Elunium_Stone
delitem 756,3; //Oridecon_Stone
- set Zeny, Zeny-2000;
+ Zeny -= 2000;
getitem getarg(0),getarg(1); //Gold
mes "[Bajin]";
mes "AHHH, it is a success!";
diff --git a/npc/quests/seals/brisingamen_seal.txt b/npc/quests/seals/brisingamen_seal.txt
index 72f4b9ddb..58e208c07 100644
--- a/npc/quests/seals/brisingamen_seal.txt
+++ b/npc/quests/seals/brisingamen_seal.txt
@@ -784,7 +784,7 @@ prt_fild08,175,374,3 script Bard#brising 1_M_BARD,{
mes "represents the";
mes "heart of a poet!";
soundeffect "bragis_poem.wav",1;
- set Zeny,Zeny-500;
+ Zeny -= 500;
close2;
}
else {
@@ -802,7 +802,7 @@ prt_fild08,175,374,3 script Bard#brising 1_M_BARD,{
mes "and energetic music, eh?";
mes "As you wish~";
soundeffect "chaos_of_eternity.wav",1;
- set Zeny,Zeny-500;
+ Zeny -= 500;
close2;
}
else {
@@ -822,7 +822,7 @@ prt_fild08,175,374,3 script Bard#brising 1_M_BARD,{
mes "well with Assassins.";
mes "Don't you agree?";
soundeffect "assassin_of_sunset.wav",1;
- set Zeny,Zeny-500;
+ Zeny -= 500;
close2;
}
else {
diff --git a/npc/quests/skills/bard_skills.txt b/npc/quests/skills/bard_skills.txt
index ccafb4b2a..012a9445f 100644
--- a/npc/quests/skills/bard_skills.txt
+++ b/npc/quests/skills/bard_skills.txt
@@ -1202,7 +1202,7 @@ morocc_in,166,76,7 script Bartender#bard_qskill 1_ETC_01,{
mes "mild, but if you're not";
mes "careful, you'll pass out";
mes "in no time flat. Take it easy.";
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
getitem 12112,1; //Tropical_Sograt
close;
@@ -1232,7 +1232,7 @@ morocc_in,166,76,7 script Bartender#bard_qskill 1_ETC_01,{
mes "Be sure that you";
mes "enjoy your drinking";
mes "without going crazy.";
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
getitem 12113,1; //Vermilion_The_Beach
close;
diff --git a/npc/quests/skills/blacksmith_skills.txt b/npc/quests/skills/blacksmith_skills.txt
index ba7bf82cf..42c7cd65b 100644
--- a/npc/quests/skills/blacksmith_skills.txt
+++ b/npc/quests/skills/blacksmith_skills.txt
@@ -184,7 +184,7 @@ geffen,178,72,3 script Akkie#qsk_bs 4_F_JOB_BLACKSMITH,{
delitem 999,1; //Steel
delitem 971,1; //Detrimindexta
delitem 613,1; //Iron_Hammer
- set Zeny, Zeny-500;
+ Zeny -= 500;
set BLACK_SK,2;
close;
}
diff --git a/npc/quests/thana_quest.txt b/npc/quests/thana_quest.txt
index 634b50308..408a200ce 100644
--- a/npc/quests/thana_quest.txt
+++ b/npc/quests/thana_quest.txt
@@ -92,7 +92,7 @@ hu_fild01,140,163,5 script Tower Keeper 4_M_EIN_SOLDIER,3,3,{
mes "good work. Ah, and don't";
mes "forget: safety first when";
mes "you fight those monsters!";
- set Zeny, Zeny - 3000;
+ Zeny -= 3000;
close2;
warp "tha_scene01",131,220;
end;
@@ -119,7 +119,7 @@ hu_fild01,140,163,5 script Tower Keeper 4_M_EIN_SOLDIER,3,3,{
mes "you enjoy your visit";
mes "to Thanatos Tower~";
close2;
- set Zeny, Zeny - 5000;
+ Zeny -= 5000;
warp "tha_scene01",131,220;
end;
}
@@ -496,7 +496,7 @@ tha_t01,140,78,4 script Guide#reward 4_F_ZONDAGIRL,{
mes "and please keep up";
mes "the good work~";
delitem .@items[.@i], countitem(.@items[.@i]);
- set Zeny, Zeny + .@zeny_tt;
+ Zeny += .@zeny_tt;
//getexp .@exp_tt,0;
close;
case 2:
diff --git a/npc/quests/the_sign_quest.txt b/npc/quests/the_sign_quest.txt
index 4c97821aa..ba0d259e9 100644
--- a/npc/quests/the_sign_quest.txt
+++ b/npc/quests/the_sign_quest.txt
@@ -4438,7 +4438,7 @@ cmd_in02,88,51,4 script Strange Guy#sign 1_M_SIGNART,{
else {
mes "me. It also looks like you got zeny to spare! I think I'll help myself and borrow some of your cash!";
mes "^FF0000Yoink!^000000";
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
specialeffect EF_COIN;
close;
}
@@ -4520,7 +4520,7 @@ cmd_in02,88,51,4 script Strange Guy#sign 1_M_SIGNART,{
mes "to me tomorrow night and";
mes "we'll start your test...";
set sign_q,27;
- set Zeny, Zeny-30000;
+ Zeny -= 30000;
}
close;
case 2:
@@ -4768,7 +4768,7 @@ cmd_in02,88,51,4 script Strange Guy#sign 1_M_SIGNART,{
mes "um, ''Bakerlan'' in Alberta.";
set sign_q,35;
getitem 7177,1; //Part_Of_Star's_Sob
- set Zeny, Zeny+20000;
+ Zeny += 20000;
if (checkre(3)) {
if (BaseLevel < 60) getexp 300,0;
else if (BaseLevel < 70) getexp 700,0;
@@ -4813,7 +4813,7 @@ cmd_in02,88,51,4 script Strange Guy#sign 1_M_SIGNART,{
mes "me. It also looks like you got zeny to spare! I think I'll help myself and borrow some of your cash!";
mes "^FF0000Yoink!^000000";
mes "Giggle giggle..";
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
close;
}
}
@@ -4826,7 +4826,7 @@ cmd_in02,88,51,4 script Strange Guy#sign 1_M_SIGNART,{
mes "cash. You know, for old";
mes "time's sake. ^FF0000Yoink!^000000";
emotion e_gg;
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
}
else {
mes "I got nothin' for you and";
@@ -6339,7 +6339,7 @@ alde_alche,169,162,7 script Alchemist#sign 4_M_ALCHE_B,{
mes "just one bottle, but this";
mes "stuff is extremely potent!";
next;
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
delitem 526,10; //Royal_Jelly
delitem 518,20; //Honey
delitem 948,30; //Bear's_Foot
@@ -11370,7 +11370,7 @@ niflheim,102,54,4 script Mad Man#s 8_DOPPEL,{
mes "Heh heh!";
close;
}
- set Zeny, Zeny-40000;
+ Zeny -= 40000;
close;
case 2:
mes "[Laichin]";
@@ -11389,7 +11389,7 @@ niflheim,102,54,4 script Mad Man#s 8_DOPPEL,{
mes "crawling back when";
mes "you can't figure out";
mes "where the soul pieces are!";
- set Zeny, Zeny-40000;
+ Zeny -= 40000;
if (.@select_s == 1) set sign_q,97;
else if (.@select_s == 2) set sign_q,98;
else if (.@select_s == 3) set sign_q,99;
@@ -11425,7 +11425,7 @@ niflheim,102,54,4 script Mad Man#s 8_DOPPEL,{
mes "than the borders of the map.";
mes "For very small, you gotta";
mes "look near the center. Got it?";
- set Zeny, Zeny-60000;
+ Zeny -= 60000;
if (.@select_s == 1) set sign_q,101;
else if (.@select_s == 2) set sign_q,102;
else if (.@select_s == 3) set sign_q,103;
@@ -11486,7 +11486,7 @@ niflheim,102,54,4 script Mad Man#s 8_DOPPEL,{
mes "than the borders of the map.";
mes "For very small, you gotta";
mes "look near the center. Got it?";
- set Zeny, Zeny-20000;
+ Zeny -= 20000;
if (sign_q == 97) set sign_q,101;
else if (sign_q == 98) set sign_q,102;
else if (sign_q == 99) set sign_q,103;
diff --git a/npc/re/cities/brasilis.txt b/npc/re/cities/brasilis.txt
index fe9f768c4..405ce486c 100644
--- a/npc/re/cities/brasilis.txt
+++ b/npc/re/cities/brasilis.txt
@@ -31,7 +31,7 @@ alberta,246,82,3 script Crewman#bra2 4W_SAILOR,{
if (Zeny > 9999) {
mes "[Crewman]";
mes "Cool~!! Let's go~!";
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
close2;
warp "brasilis",314,60;
end;
@@ -145,7 +145,7 @@ brasilis,137,77,5 script Ice-Cream Maker 4_M_03,{
mes "Lighten your pack before buying this.";
close;
}
- set Zeny, Zeny-.@icecream_hap;
+ Zeny -= .@icecream_hap;
getitem 536,.@input; //Ice_Cream
close;
case 2:
diff --git a/npc/re/cities/dewata.txt b/npc/re/cities/dewata.txt
index a0fa10275..1205a4de1 100644
--- a/npc/re/cities/dewata.txt
+++ b/npc/re/cities/dewata.txt
@@ -29,7 +29,7 @@ alberta,212,202,4 script Dewata Sailor#alberta 4_M_DEWMAN,{
mes "^8B4513Dewata^000000 is a beautiful and peaceful island country.";
mes "Have a nice trip~";
close2;
- set Zeny, Zeny - 10000;
+ Zeny -= 10000;
warp "dewata",232,53;
end;
} else {
@@ -296,7 +296,7 @@ dewata,146,109,5 script Restauranteur#dew 4_COOK,{
}
mes "[Restauranteur]";
mes "Here's your "+getitemname(.@food)+", you won't regret it!";
- set Zeny, Zeny - 5000;
+ Zeny -= 5000;
getitem .@food,1;
close;
case 2:
@@ -509,7 +509,7 @@ dewata,89,191,6 script Small Shrine#dew1 CLEAR_NPC,{
mes "You make a wish for ^0000FF" + .@wish$ + "^000000 to the small shrine.";
next;
callsub L_Wish;
- set Zeny, Zeny - .@input;
+ Zeny -= .@input;
if (.@stat & 1 && .@bonus)
consumeitem 12043; //Str_Dish03
else if (.@stat & 2 && .@bonus)
diff --git a/npc/re/cities/dicastes.txt b/npc/re/cities/dicastes.txt
index f46ce2651..9ef5b6df8 100644
--- a/npc/re/cities/dicastes.txt
+++ b/npc/re/cities/dicastes.txt
@@ -653,7 +653,7 @@ dicastes01,202,197,4 script Crazy Venknick#fihsing1 4_MAN_BENKUNI,{
close;
close;
}
- set Zeny, Zeny-5000;
+ Zeny -= 5000;
mes "[Crazy Venknick]";
mes "Thanks.";
emotion e_gg,0,"Complaining Galten#fihs";
diff --git a/npc/re/cities/eclage.txt b/npc/re/cities/eclage.txt
index 009f87ab3..2ea4e4cd5 100644
--- a/npc/re/cities/eclage.txt
+++ b/npc/re/cities/eclage.txt
@@ -438,7 +438,7 @@ ecl_in02,164,56,2 script Receptionist#Laphine 4_F_FAIRYKID2,{
mes "It seems like you don't have enough zeny. Would you check your account again, please?";
close;
}
- set Zeny, Zeny-5000;
+ Zeny -= 5000;
break;
case 3:
close;
diff --git a/npc/re/cities/malangdo.txt b/npc/re/cities/malangdo.txt
index 6e6e8749a..ae5d8b48c 100644
--- a/npc/re/cities/malangdo.txt
+++ b/npc/re/cities/malangdo.txt
@@ -199,7 +199,7 @@ mora,57,150,4 duplicate(Dolangmal) Dolangmal#9 4_CAT_DOWN
mes "Money? Where is the money? You can't go anywhere without the money. Shame on you.";
close;
}
- set Zeny, Zeny - .@price;
+ Zeny -= .@price;
mes "[Odgnalam]";
mes "Let me send you right away. Let's go~";
warp "malangdo",217,85;
@@ -273,7 +273,7 @@ malangdo,219,86,4 script Kong#malang 4_CAT_SAILOR2,{
mes .@no_money$;
close;
}
- set Zeny, Zeny - .@price;
+ Zeny -= .@price;
mes .@yes_money$;
if (.@i == 1)
warp "izlude",195,212;
diff --git a/npc/re/cities/malaya.txt b/npc/re/cities/malaya.txt
index ae746e7d2..da19e67c5 100644
--- a/npc/re/cities/malaya.txt
+++ b/npc/re/cities/malaya.txt
@@ -49,7 +49,7 @@ alberta,196,202,3 script Optamara Crew#alberta 4W_SAILOR,{
mes "[Optamara Crew]";
mes "Great!";
mes "Heading for Port Malaya!!";
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
close2;
warp "malaya",271,55;
end;
@@ -124,7 +124,7 @@ ma_in01,30,94,4 script Inn Keeper#ma 4_F_MALAYA,{
mes "[Inn Keeper]";
mes "Hope you enjoy your stay.";
close2;
- set Zeny, Zeny-5000;
+ Zeny -= 5000;
percentheal 100,100;
warp "ma_in01",43,98;
end;
diff --git a/npc/re/cities/mora.txt b/npc/re/cities/mora.txt
index 64f315fa9..5fefc2059 100644
--- a/npc/re/cities/mora.txt
+++ b/npc/re/cities/mora.txt
@@ -453,7 +453,7 @@ mora,140,186,3 script Raffle Philosopher 4_M_RAFLE_OLD,{
mes "[Raffle Philosopher]";
mes "The quote I'm going to tell you is...";
mes "Let's see... Wait a second.";
- set Zeny, Zeny-.@input;
+ Zeny -= .@input;
next;
mes ". . . . . . . . .";
next;
@@ -1021,9 +1021,9 @@ mora,140,186,3 script Raffle Philosopher 4_M_RAFLE_OLD,{
next;
mes "You feel somebody rummaging through your pockets before you pass out.";
if (Zeny >= 5000)
- set Zeny, Zeny-5000;
+ Zeny -= 5000;
else
- set Zeny, 0;
+ Zeny = 0;
close2;
percentheal -99,0;
warp "mora",31,132;
@@ -1120,7 +1120,7 @@ mora,43,127,3 script Innkeeper#mora_inn 4_M_RAFLE_OR,{
mes "[Innkeeper]";
mes "Make yourself at home.";
close2;
- set Zeny, Zeny-5000;
+ Zeny -= 5000;
percentheal 100,100;
warp "mora",32,123;
end;
@@ -1176,7 +1176,7 @@ mora,48,128,0 script Drawer#mora_warehouse HIDDEN_NPC,{
mes "- You don't seem to have 100 zeny with you. -";
close;
}
- set Zeny, Zeny-100;
+ Zeny -= 100;
openstorage;
close;
case 2:
diff --git a/npc/re/guild/invest_main.txt b/npc/re/guild/invest_main.txt
index 0a9e4105b..50a4e7d35 100644
--- a/npc/re/guild/invest_main.txt
+++ b/npc/re/guild/invest_main.txt
@@ -163,7 +163,7 @@ function script F_Invest_Abyss {
mes getarg(1);
mes "You've invested "+.@units+" unit"+((.@units == 1)?"":"s")+" "+((.@units < 100)?.@units:insertchar(""+.@units,",",1))+"0,000 Zeny"+getarg(2,"")+".";
mes "Not much but this is a small gift. You can exchange it with items in Malangdo.";
- set Zeny, Zeny-.@zeny;
+ Zeny -= .@zeny;
setd getarg(0), getd(getarg(0)) + .@units;
getitem 6488,.@units; //Thanks_Invest_Ticket
close;
@@ -990,7 +990,7 @@ OnAgitInvest:
}
mes .@n$;
mes "I'm sending you to the "+.@realm$+" Agit Dungeon "+.@i+"F.";
- set Zeny, Zeny-10000;
+ Zeny -= 10000;
setd "$fund_"+.@npc$+"_extra", getd("$fund_"+.@npc$+"_extra") + 1;
close2;
if (compare(strnpcinfo(2),"alde"))
diff --git a/npc/re/jobs/3-1/guillotine_cross.txt b/npc/re/jobs/3-1/guillotine_cross.txt
index 2d106dc4a..df51c3496 100644
--- a/npc/re/jobs/3-1/guillotine_cross.txt
+++ b/npc/re/jobs/3-1/guillotine_cross.txt
@@ -243,7 +243,7 @@ job3_guil01,82,95,3 script Daora#3rdgc02 4_F_DESERT,{
mes "[Daora]";
if (Zeny > 799) {
mes "Here you are, take it.";
- set Zeny, Zeny - 800;
+ Zeny -= 800;
getitem 12112,1; //Tropical_Sograt
close;
}
@@ -253,7 +253,7 @@ job3_guil01,82,95,3 script Daora#3rdgc02 4_F_DESERT,{
mes "[Daora]";
if (Zeny > 799) {
mes "Here you are, take it.";
- set Zeny, Zeny - 800;
+ Zeny -= 800;
getitem 12113,1; //Vermilion_The_Beach
close;
}
@@ -697,7 +697,7 @@ job3_guil01,82,95,3 script Daora#3rdgc02 4_F_DESERT,{
if (Zeny > 499) {
mes "Here you are. Milk.";
mes "Then take a rest.";
- set Zeny, Zeny - 500;
+ Zeny -= 500;
getitem 519,1; //Milk
close;
}
@@ -737,7 +737,7 @@ job3_guil01,82,95,3 script Daora#3rdgc02 4_F_DESERT,{
mes "[Daora]";
if (Zeny > 799) {
mes "Here you are, take it.";
- set Zeny, Zeny - 800;
+ Zeny -= 800;
getitem 12112,1; //Tropical_Sograt
close;
}
@@ -747,7 +747,7 @@ job3_guil01,82,95,3 script Daora#3rdgc02 4_F_DESERT,{
mes "[Daora]";
if (Zeny > 799) {
mes "Here you are, take it.";
- set Zeny, Zeny - 800;
+ Zeny -= 800;
getitem 12113,1; //Vermilion_The_Beach
close;
}
@@ -764,7 +764,7 @@ job3_guil01,82,95,3 script Daora#3rdgc02 4_F_DESERT,{
if (Zeny > 499) {
mes "I feel sorry to take 500 zeny per bottle, but I have to.";
mes "It's very hard to get milk in Veins.";
- set Zeny, Zeny - 500;
+ Zeny -= 500;
getitem 519,1; //Milk
close;
}
@@ -799,7 +799,7 @@ job3_guil01,82,95,3 script Daora#3rdgc02 4_F_DESERT,{
mes "[Daora]";
if (Zeny > 999) {
mes "Here you are, take it.";
- set Zeny, Zeny - 1000;
+ Zeny -= 1000;
getitem 12112,1; //Tropical_Sograt
close;
}
@@ -809,7 +809,7 @@ job3_guil01,82,95,3 script Daora#3rdgc02 4_F_DESERT,{
mes "[Daora]";
if (Zeny > 999) {
mes "Here you are, take it.";
- set Zeny, Zeny - 1000;
+ Zeny -= 1000;
getitem 12113,1; //Vermilion_The_Beach
close;
}
@@ -1289,7 +1289,7 @@ ve_in,228,108,3 script Waitress#3rdgc04 1_F_PUBGIRL,{
mes "[Waitress]";
mes "Oh by the way, my name is Madelle.";
mes "I hope you remember my name.";
- set Zeny, Zeny - 5000;
+ Zeny -= 5000;
setquest 7112;
next;
mes "- Madelle's information is attached to a quest board. What information have I collected? -";
diff --git a/npc/re/jobs/3-2/shadow_chaser.txt b/npc/re/jobs/3-2/shadow_chaser.txt
index 772570cca..230d5b49c 100644
--- a/npc/re/jobs/3-2/shadow_chaser.txt
+++ b/npc/re/jobs/3-2/shadow_chaser.txt
@@ -2304,7 +2304,7 @@ s_atelier,29,119,3 script Max#sc05_prt 4W_M_01,{
mes "Good luck!";
delitem 7150,.@i[2]; //Bamboo_Cut
delitem 949,.@i[3]; //Feather
- set Zeny, Zeny - .@i[4];
+ Zeny -= .@i[4];
getitem .@i[1],1; //Makeover_Brush,Paint_Brush
close;
}
@@ -2357,7 +2357,7 @@ s_atelier,136,70,3 script Titika#sc09_ra 4_F_CHILD,{
mes "I'll exchange it with the goods that I made.";
delitem 7150,.@i[2]; //Bamboo_Cut
delitem 949,.@i[3]; //Feather
- set Zeny, Zeny - .@i[4];
+ Zeny -= .@i[4];
getitem .@i[1],1; //Makeover_Brush,Paint_Brush
close;
}
@@ -2407,7 +2407,7 @@ s_atelier,124,128,3 script RimiGX#sc07_yuno 4_F_LGTGIRL,{
mes "It will be fast when I exchange the stuff made?";
delitem 7150,.@i[2]; //Bamboo_Cut
delitem 949,.@i[3]; //Feather
- set Zeny, Zeny - .@i[4];
+ Zeny -= .@i[4];
getitem .@i[1],1; //Makeover_Brush,Paint_Brush
close;
}
@@ -2457,7 +2457,7 @@ s_atelier,26,68,3 script Vito#sc11_lgt 4_M_KHMAN,{
mes "I'm going to exchange the blush I made before.";
delitem 7150,.@i[2]; //Bamboo_Cut
delitem 949,.@i[3]; //Feather
- set Zeny, Zeny - .@i[4];
+ Zeny -= .@i[4];
getitem .@i[1],1; //Makeover_Brush,Paint_Brush
close;
}
diff --git a/npc/re/jobs/novice/supernovice_ex.txt b/npc/re/jobs/novice/supernovice_ex.txt
index 3a8dad744..05d98dc96 100644
--- a/npc/re/jobs/novice/supernovice_ex.txt
+++ b/npc/re/jobs/novice/supernovice_ex.txt
@@ -653,7 +653,7 @@ airplane,33,47,5 script Nudor#sp2 4_F_NOVICE,{
mes "Woa~!! "+.@n+" Zeny! This helped me so much~ Tehee~";
mes "I can't believe it...";
changequest 5099,5100;
- set Zeny, Zeny - .@n;
+ Zeny -= .@n;
if (.@i < 5) set EXSUPNOV_Q_, .@i;
else {
if (.@n > 1000000) set EXSUPNOV_Q_,4;
diff --git a/npc/re/merchants/3rd_trader.txt b/npc/re/merchants/3rd_trader.txt
index b63fca71c..792b7abd9 100644
--- a/npc/re/merchants/3rd_trader.txt
+++ b/npc/re/merchants/3rd_trader.txt
@@ -73,7 +73,7 @@
mes "Check how much money you have first.";
close;
}
- set Zeny, Zeny - .@total;
+ Zeny -= .@total;
getitem .@item, .@amount;
mes "[Poison Herb Merchant]";
mes "Thank you. Come back again~!";
@@ -141,7 +141,7 @@ lhz_in02,16,205,4 duplicate(phs) Poison Herb Merchant#lhz 4_F_YUNYANG
mes "It doesn't seem like you are able to carry it all, why are you trying it?!";
close;
}
- set Zeny, Zeny - .@total;
+ Zeny -= .@total;
getitem .@item, .@amount;
mes "[Rune Merchant]";
mes "Thank you.";
@@ -204,7 +204,7 @@ job3_guil01,91,93,3 script Rare Herb Collector 1_M_03,{
mes "[Rare Poison Herb Collector]";
mes "Good. I've received the money and the special item.";
delitem .@item, .@amount;
- set Zeny, Zeny - .@total;
+ Zeny -= .@total;
getitem 709, .@amount; //Izidor
close;
}
@@ -254,7 +254,7 @@ job3_guil01,91,93,3 script Rare Herb Collector 1_M_03,{
mes "You don't have enough space in your inventory to buy this amount.";
close;
}
- set Zeny, Zeny-(.@amount*200);
+ Zeny -= (.@amount*200);
getitem .@itemid[.@i],.@amount;
mes "Thank you very much. See you~!";
close;
diff --git a/npc/re/merchants/advanced_refiner.txt b/npc/re/merchants/advanced_refiner.txt
index fd6602eda..ddd48b836 100644
--- a/npc/re/merchants/advanced_refiner.txt
+++ b/npc/re/merchants/advanced_refiner.txt
@@ -154,7 +154,7 @@ malangdo,221,174,6 script Holink#mal_cash 4_CAT_ADV1,{
close;
}
delitem .@material,1;
- set Zeny, Zeny-.@price;
+ Zeny -= .@price;
if (getequippercentrefinery(.@part) > rand(100) || getequippercentrefinery(.@part) > rand(100)) {
successrefitem .@part;
mes "[Holink]";
diff --git a/npc/re/merchants/alchemist.txt b/npc/re/merchants/alchemist.txt
index 7569fe0b3..ed2c0c20a 100644
--- a/npc/re/merchants/alchemist.txt
+++ b/npc/re/merchants/alchemist.txt
@@ -106,7 +106,7 @@ alde_alche,31,186,3 script Craft Book Merchant#alde 4_M_ALCHE_D,{
}
mes "[Craft Book Merchant]";
mes "Thank you for your patronage.";
- set Zeny,Zeny - .@total;
+ Zeny -= .@total;
getitem .@item,.@amount;
close;
}
diff --git a/npc/re/merchants/blessed_refiner.txt b/npc/re/merchants/blessed_refiner.txt
index c5d198457..bb5dd62d7 100644
--- a/npc/re/merchants/blessed_refiner.txt
+++ b/npc/re/merchants/blessed_refiner.txt
@@ -135,7 +135,7 @@
close;
}
delitem .@material,1;
- set Zeny, Zeny-.@price;
+ Zeny -= .@price;
mes "[Blacksmith Dister]";
mes "Tac! Tac! Tac!";
if (getequippercentrefinery(.@part) > rand(100) || getequippercentrefinery(.@part) > rand(100)) {
diff --git a/npc/re/merchants/card_separation.txt b/npc/re/merchants/card_separation.txt
index 933839bec..9954476ca 100644
--- a/npc/re/merchants/card_separation.txt
+++ b/npc/re/merchants/card_separation.txt
@@ -200,7 +200,7 @@
set .@sf_c_num,150;
set .@sf_r_num,150;
set .@sf_w_num,150;
- set Zeny, Zeny - 1000000;
+ Zeny -= 1000000;
break;
case 3:
if (countitem(6441) == 0) {
diff --git a/npc/re/merchants/catalog.txt b/npc/re/merchants/catalog.txt
index 91936bd35..3ef33e953 100644
--- a/npc/re/merchants/catalog.txt
+++ b/npc/re/merchants/catalog.txt
@@ -74,7 +74,7 @@ moc_para01,22,16,5 script Catalog Magician#catal01 4_M_BIBI,{
close;
}
mes "Ok, here you go.";
- set Zeny, Zeny - .@sell;
+ Zeny -= .@sell;
getitem 12580,.@input; //Vending_Search_Scroll
close;
case 2:
diff --git a/npc/re/merchants/diamond.txt b/npc/re/merchants/diamond.txt
index e3efa5247..eda1740ca 100644
--- a/npc/re/merchants/diamond.txt
+++ b/npc/re/merchants/diamond.txt
@@ -140,7 +140,7 @@
mes "501,000,000 zeny.";
mes "Amount has been confirmed.";
emotion e_loud;
- set Zeny, Zeny - 501000000;
+ Zeny -= 501000000;
getitem 6024, 1;
next;
@@ -220,7 +220,7 @@
mes "come back anytime with 500 million zeny.";
emotion e_thx;
delitem 6024, 1;
- set Zeny, Zeny + 499000000;
+ Zeny += 499000000;
close;
}
else {
diff --git a/npc/re/merchants/enchan_mora.txt b/npc/re/merchants/enchan_mora.txt
index d986b047f..e35f768a3 100644
--- a/npc/re/merchants/enchan_mora.txt
+++ b/npc/re/merchants/enchan_mora.txt
@@ -1100,7 +1100,7 @@ L_Socket:
close;
}
delitem 6380,1; //Mora_Coin
- set Zeny, Zeny-100000;
+ Zeny -= 100000;
delequip .@part;
if (.@enchant == 9) {
specialeffect2 EF_SUI_EXPLOSION;
@@ -1135,7 +1135,7 @@ L_Socket:
mes "[Artifact Researcher]";
mes "The ability to enhance remains.";
delitem 6380,1; //Mora_Coin
- set Zeny, Zeny-100000;
+ Zeny -= 100000;
delequip .@part;
// GetNonSlotItemSock2 .@equip_refine .@equip_id .@equip_card[0] .@equip_card[1] .@equip_card[2] .@equip_card[3]
diff --git a/npc/re/merchants/enchan_upg.txt b/npc/re/merchants/enchan_upg.txt
index c72479f38..fd8863776 100644
--- a/npc/re/merchants/enchan_upg.txt
+++ b/npc/re/merchants/enchan_upg.txt
@@ -250,7 +250,7 @@ prt_in,28,73,3 script Devil Enchant Master#prq 1_M_SMITH,{
}
specialeffect EF_REPAIRWEAPON;
mes "I initialized the enchant effects.";
- set Zeny, Zeny - 100000;
+ Zeny -= 100000;
delequip .@part;
// GetNonSlotItemSock2 .@equip_refine .@equip_id .@equip_card[0] .@equip_card[1] .@equip_card[2] 0
diff --git a/npc/re/merchants/flute.txt b/npc/re/merchants/flute.txt
index 03ef82559..343308268 100644
--- a/npc/re/merchants/flute.txt
+++ b/npc/re/merchants/flute.txt
@@ -63,7 +63,7 @@
mes "[Falcon Flute Trader]";
mes "Here, take this flute.";
mes "With it you can whistle for your Falcon from anywhere.";
- set Zeny, Zeny - .@price;
+ Zeny -= .@price;
getitem 12848,1; //Falcon_Flute
next;
mes "[Falcon Flute Trader]";
@@ -115,7 +115,7 @@ tur_dun01,89,170,5 script Expert Flute Crafter 1_M_ORIENT01,{
mes "Here's the new Wolf Flute.";
mes "Hope you are ready to use it.";
delitem 7150,1; //Bamboo_Cut
- set Zeny, Zeny-100000;
+ Zeny -= 100000;
getitem 6124,1; //Wolf's_Flute
close;
}
diff --git a/npc/re/merchants/hd_refiner.txt b/npc/re/merchants/hd_refiner.txt
index c55917f4f..0e0f3e081 100644
--- a/npc/re/merchants/hd_refiner.txt
+++ b/npc/re/merchants/hd_refiner.txt
@@ -118,7 +118,7 @@
close;
}
delitem .@material,1;
- set Zeny, Zeny-.@price;
+ Zeny -= .@price;
mes "[Blacksmith Mighty Hammer]";
mes "Tac! Tac! Tac!";
if (getequippercentrefinery(.@part) > rand(100) || getequippercentrefinery(.@part) > rand(100)) {
@@ -270,7 +270,7 @@ lhz_in02,280,19,3 duplicate(MightyHammer) Mighty Hammer#lhz 4_M_DWARF
close;
}
delitem .@material,1;
- set Zeny, Zeny-.@price;
+ Zeny -= .@price;
mes "Pow! Pow! Pow! Pow!";
if (getequippercentrefinery(.@part) > rand(100) || getequippercentrefinery(.@part) > rand(100)) {
successrefitem .@part;
diff --git a/npc/re/merchants/inn.txt b/npc/re/merchants/inn.txt
index dcd08ae5e..174569b02 100644
--- a/npc/re/merchants/inn.txt
+++ b/npc/re/merchants/inn.txt
@@ -38,7 +38,7 @@ bra_in01,27,24,3 script Hotel Keeper#bra1 4_F_BRZ_WOMAN,{
mes "[Hotel Keeper]";
mes "I will show you a great room.";
close2;
- set Zeny, Zeny-5000;
+ Zeny -= 5000;
percentheal 100,100;
warp "bra_in01",144,69;
end;
diff --git a/npc/re/merchants/quivers.txt b/npc/re/merchants/quivers.txt
index 1e4c226fb..03730a04a 100644
--- a/npc/re/merchants/quivers.txt
+++ b/npc/re/merchants/quivers.txt
@@ -113,7 +113,7 @@ S_BuyQuiver:
mes "There is ^3131FFsomething you need to know^000000 - try to remember it.";
mes "^FF0000You can't use quivers when your encumbrance is over 70%.^000000";
mes "You'd better keep that in mind, or you might be in trouble later.";
- set Zeny, Zeny-.@arrow_zeny01;
+ Zeny -= .@arrow_zeny01;
delitem getarg(0),.@arrows_used;
getitem getarg(3),.@quiver;
close;
diff --git a/npc/re/merchants/refine.txt b/npc/re/merchants/refine.txt
index fa5bab042..4905feb4a 100644
--- a/npc/re/merchants/refine.txt
+++ b/npc/re/merchants/refine.txt
@@ -156,7 +156,7 @@ function script refinenew {
mes "Please come back when you have them.";
close;
}
- set Zeny,Zeny - .@price;
+ Zeny -= .@price;
delitem .@material,1;
//custom checks
@@ -272,7 +272,7 @@ function script refinenew {
mes "Please come back when you have them.";
close;
}
- set Zeny,Zeny - .@fullprice;
+ Zeny -= .@fullprice;
delitem .@material,.@refinecnt;
while(.@refinecnt){
if (getequipisequiped(.@part) == 0) {
@@ -368,7 +368,7 @@ function script refinenew {
}
if (countitem(.@i[0]) >= .@i[1] && Zeny >= 50000) {
delitem .@i[0],.@i[1];
- set Zeny, Zeny - 50000;
+ Zeny -= 50000;
getitem .@i[2],1;
mes "[Austri]";
if (.@i[0] == 6090) {
@@ -517,7 +517,7 @@ malangdo,224,172,6 script Clink#mal_normal 4_CAT_SAILOR1,{
close;
}
delitem .@material,1;
- set Zeny, Zeny-.@price;
+ Zeny -= .@price;
if (getequippercentrefinery(.@part) <= rand(100)) {
failedrefitem .@part;
mes "[Clink]";
diff --git a/npc/re/quests/eden/86-90.txt b/npc/re/quests/eden/86-90.txt
index 1fced3a16..7746d6be3 100644
--- a/npc/re/quests/eden/86-90.txt
+++ b/npc/re/quests/eden/86-90.txt
@@ -13,7 +13,7 @@
//= 1.3 Updated to match the official script. [Euphy]
//============================================================
-moc_para01,48,175,3 script 4_M_04-90 Mission Board 4_BOARD3,{
+moc_para01,48,175,3 script 86-90 Mission Board 4_BOARD3,{
if (countitem(6219) < 1) {
mes "Wait a minute!";
mes "-You need to have an-";
diff --git a/npc/re/quests/eden/91-99.txt b/npc/re/quests/eden/91-99.txt
index 62a6512f6..2985463bf 100644
--- a/npc/re/quests/eden/91-99.txt
+++ b/npc/re/quests/eden/91-99.txt
@@ -13,7 +13,7 @@
//= 1.3 Updated to match the official script. [Euphy]
//============================================================
-moc_para01,48,177,3 script 4_F_02-99 Mission Board 4_BOARD3,{
+moc_para01,48,177,3 script 91-99 Mission Board 4_BOARD3,{
if (countitem(6219) < 1) {
mes "Wait a minute!";
mes "-You need to have an-";
diff --git a/npc/re/quests/eden/eden_iro.txt b/npc/re/quests/eden/eden_iro.txt
index b4400854f..f7481d04d 100644
--- a/npc/re/quests/eden/eden_iro.txt
+++ b/npc/re/quests/eden/eden_iro.txt
@@ -63,7 +63,7 @@ moc_para01,14,32,5 script Aperture#acolytewarp 4_F_01,{
specialeffect2 EF_TELEPORTATION;
specialeffect2 EF_PORTAL;
next;
- set Zeny, Zeny - .@cost[.@i];
+ Zeny -= .@cost[.@i];
switch(.@i) {
case 0: warp "prontera",116,72; break;
case 1: warp "izlude",128,98; break;
@@ -585,7 +585,7 @@ moc_para01,174,33,3 script Bathory#2012spirits BATHORY,{
mes "[Bathory]";
mes "Alright, hold on tight!";
close2;
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
warp "niflheim",194,185;
end;
case 2:
diff --git a/npc/re/quests/eden/eden_quests.txt b/npc/re/quests/eden/eden_quests.txt
index c96d5a049..cebd70b87 100644
--- a/npc/re/quests/eden/eden_quests.txt
+++ b/npc/re/quests/eden/eden_quests.txt
@@ -3622,7 +3622,7 @@ moc_para01,179,44,3 script Chef 4_M_CHNCOOK,{
next;
mes "- After eating the meal, You feel a little bit full.";
mes "You've recovered some HP and SP. -";
- set Zeny, Zeny - 2700;
+ Zeny -= 2700;
percentheal 50,0;
percentheal 0,50;
close;
@@ -3639,7 +3639,7 @@ moc_para01,179,44,3 script Chef 4_M_CHNCOOK,{
next;
mes "- After eating the meal, You feel a little bit full.";
mes "You've recovered some HP and SP. -";
- set Zeny, Zeny - 3000;
+ Zeny -= 3000;
percentheal 50,0;
percentheal 0,50;
close;
@@ -3661,7 +3661,7 @@ moc_para01,179,44,3 script Chef 4_M_CHNCOOK,{
next;
mes "- After eating the meal, You feel a little bit full.";
mes "You've recovered some HP and SP. -";
- set Zeny, Zeny - 3600;
+ Zeny -= 3600;
percentheal 75,0;
percentheal 0,75;
close;
@@ -3678,7 +3678,7 @@ moc_para01,179,44,3 script Chef 4_M_CHNCOOK,{
next;
mes "- After eating the meal, You feel a little bit full.";
mes "You've recovered some HP and SP. -";
- set Zeny, Zeny - 4000;
+ Zeny -= 4000;
percentheal 75,0;
percentheal 0,75;
close;
@@ -3697,7 +3697,7 @@ moc_para01,179,44,3 script Chef 4_M_CHNCOOK,{
mes "- The Rib Eye Roll is grilled on the oak.";
mes "- After eating the meal, You feel a little bit full.";
mes "You've recovered your HP and SP. -";
- set Zeny, Zeny - 4500;
+ Zeny -= 4500;
percentheal 100,0;
percentheal 0,100;
close;
@@ -3716,7 +3716,7 @@ moc_para01,179,44,3 script Chef 4_M_CHNCOOK,{
mes "- The Rib Eye Roll is grilled on the oak.";
mes "- After eating the meal, You feel a little bit full.";
mes "You've recovered your HP and SP. -";
- set Zeny, Zeny - 5000;
+ Zeny -= 5000;
percentheal 100,0;
percentheal 0,100;
close;
@@ -4580,7 +4580,7 @@ moc_para01,111,83,3 script Toren 2_M_OLDBLSMITH,{
mes "You dont have enough zeny.";
close;
}
- set Zeny, Zeny - 250000;
+ Zeny -= 250000;
getitem .@check[.@i],1;
mes "[Toren]";
mes "These advanced gears are not easy to make, please take better care of this one.";
@@ -4764,7 +4764,7 @@ moc_para01,112,79,3 script Weapons Expert 4_M_REPAIR,{
mes "Wait... Your Class doesn't have a weapon.";
close;
}
- set Zeny, Zeny - 250000;
+ Zeny -= 250000;
if (BaseClass == Job_Swordman) {
mes "Swordman Class gets a choice of weapons, would you like to have a sword or a spear?";
callsub L_Select,
diff --git a/npc/re/quests/eden/eden_service.txt b/npc/re/quests/eden/eden_service.txt
index 8335b9fbe..544c7b11a 100644
--- a/npc/re/quests/eden/eden_service.txt
+++ b/npc/re/quests/eden/eden_service.txt
@@ -41,7 +41,7 @@
mes "Maybe I am not yet qualified to use Cabinet.";
close;
}
- set Zeny, Zeny - 500;
+ Zeny -= 500;
close2;
openstorage;
end;
diff --git a/npc/re/quests/homun_s.txt b/npc/re/quests/homun_s.txt
index 9ef1a2b6e..d5abca9fd 100644
--- a/npc/re/quests/homun_s.txt
+++ b/npc/re/quests/homun_s.txt
@@ -510,7 +510,7 @@ que_house_s,24,47,3 script Viorel#homun_s 4_M_ALCHE_E,{
mes "Good. Almost done!";
next;
specialeffect2 EF_SUI_EXPLOSION;
- set Zeny, Zeny - 50000;
+ Zeny -= 50000;
hommutate .@Homunculus;
break;
case 2:
diff --git a/npc/re/quests/magic_books.txt b/npc/re/quests/magic_books.txt
index de846567a..0fd885d8f 100644
--- a/npc/re/quests/magic_books.txt
+++ b/npc/re/quests/magic_books.txt
@@ -334,7 +334,7 @@ geffen_in,175,112,4 script Lea 2_F_MAGICMASTER,{
next;
mes "[Lea]";
mes "Please try not to lose or damage the book to avoid paying any extra charges.";
- if (.@Payment == 1) set Zeny, Zeny - 10000;
+ if (.@Payment == 1) Zeny -= 10000;
else if (.@Payment == 2) delitem 1006,2; //Old_Magic_Book
else delitem 1097,50; //Worn_Out_Page
getitem 6188+.@i,1; //Magic_Book_FB, Magic_Book_CB, Magic_Book_LB
@@ -379,7 +379,7 @@ geffen_in,175,112,4 script Lea 2_F_MAGICMASTER,{
next;
mes "[Lea]";
mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
- if (.@Payment == 1) set Zeny, Zeny - 50000;
+ if (.@Payment == 1) Zeny -= 50000;
else if (.@Payment == 2) delitem 603,2; //Old_Blue_Box
else delitem 985,9; //Elunium
getitem .@Books[.@i-1],1; //Magic_Book_SG, Magic_Book_LOV, Magic_Book_MS, Magic_Book_TS, Magic_Book_JT, Magic_Book_WB, Magic_Book_HD, Magic_Book_ES
@@ -451,11 +451,11 @@ geffen_in,175,112,4 script Lea 2_F_MAGICMASTER,{
next;
mes "[Lea]";
mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
- if (.@Payment == 1) set Zeny, Zeny - 200000;
+ if (.@Payment == 1) Zeny -= 200000;
else if (.@Payment == 2) delitem 7094,12; //Mystery_Piece
else if (.@Payment == 3) delitem 984,7; //Oridecon
else delitem 617,1; //Old_Violet_Box
- if (.@Payment > 1) set Zeny, Zeny - 100000;
+ if (.@Payment > 1) Zeny -= 100000;
getitem 6201+.@i,1; //Magic_Book_ES_, Magic_Book_CL, Magic_Book_CR, Magic_Book_DL
close;
}
@@ -647,7 +647,7 @@ mid_camp,255,244,4 script Galfos 4_M_JOB_WIZARD,{
specialeffect2 EF_DISPELL;
progressbar "ffff00",4;
specialeffect2 EF_LORD;
- set Zeny, Zeny - 1000000;
+ Zeny -= 1000000;
getitem 6194+.@i,1; //Magic_Book_CM, Magic_Book_TV
mes "[Galfos]";
mes "Man, I almost lost my control to the incredible magic energy! Here's your Magic Book.";
diff --git a/npc/re/quests/quests_brasilis.txt b/npc/re/quests/quests_brasilis.txt
index 7c5ccbc7b..b6aa85ce9 100644
--- a/npc/re/quests/quests_brasilis.txt
+++ b/npc/re/quests/quests_brasilis.txt
@@ -471,7 +471,7 @@ brasilis,187,162,5 script Candy Maker 4_M_BRZ_MAN1,{
if (Zeny > 3999) {
mes "[Candy Maker]";
mes "Here is a delicious guarana candy.";
- set Zeny, Zeny-4000;
+ Zeny -= 4000;
getitem 12414,1; //Guarana_Candy
close;
}
diff --git a/npc/re/quests/quests_dewata.txt b/npc/re/quests/quests_dewata.txt
index 7cb41b0af..e3d1a7302 100644
--- a/npc/re/quests/quests_dewata.txt
+++ b/npc/re/quests/quests_dewata.txt
@@ -2097,7 +2097,7 @@ dew_fild01,127,240,4 script Gatti#weapon 2_M_OLDBLSMITH,{
}
specialeffect2 EF_REPAIRWEAPON;
progressbar "0xFFFF00",3;
- set Zeny, Zeny - 100000;
+ Zeny -= 100000;
// Socket 3
set .@i, rand(4300);
diff --git a/npc/re/quests/quests_dicastes.txt b/npc/re/quests/quests_dicastes.txt
index c3ecc7f70..7afe04039 100644
--- a/npc/re/quests/quests_dicastes.txt
+++ b/npc/re/quests/quests_dicastes.txt
@@ -137,7 +137,7 @@ dic_dun01,266,113,5 script Curious Sapha#ep13_3_ 4_MAN_BENKUNI,{
mes "You changed your mind?";
close;
}
- set Zeny, Zeny - .@deal;
+ Zeny -= .@deal;
getitem 6437,.@input; //Scaraba_Perfume
mes "[Curious Sapha]";
mes "Here you go. Scaraba might flock around you so don't use it near Scaraba Hall.";
@@ -430,7 +430,7 @@ dic_in01,254,119,0 script Item Storage#01 CLEAR_NPC,{
mes "Not enough Zeny.";
close;
}
- set Zeny, Zeny-500;
+ Zeny -= 500;
close2;
openstorage;
end;
@@ -3704,7 +3704,7 @@ dic_in01,245,119,4 script Shay#ep133_13 4_M_ACROSS,{
if (Zeny > 1999) {
mes "[Shay]";
mes "Here is your "+.@str$[@menu]+".";
- set Zeny, Zeny - 2000;
+ Zeny -= 2000;
getitem .@item[@menu],1; //Tropical_Sograt
break;
}
@@ -7540,7 +7540,7 @@ moc_para01,44,19,3 script Cat Hand Agent#gekk 4_M_MERCAT2,{
mes "[Agent Geck]";
mes "With this, our contract is now complete.";
mes "Geck will help you to get to Ash-Vacuum in one piece.";
- set Zeny, Zeny - 50000;
+ Zeny -= 50000;
set ep13_start, 100;
next;
mes "[Agent Geck]";
diff --git a/npc/re/quests/quests_eclage.txt b/npc/re/quests/quests_eclage.txt
index bb5619c58..0bc237d58 100644
--- a/npc/re/quests/quests_eclage.txt
+++ b/npc/re/quests/quests_eclage.txt
@@ -67,7 +67,7 @@
mes "I'm afraid it's not enough. Sorry, but it can't be done for free~";
close;
}
- set Zeny, Zeny-.@price;
+ Zeny -= .@price;
} else {
if (countitem(12636) < .@price) {
mes "[Teleport Cat]";
diff --git a/npc/re/quests/quests_malangdo.txt b/npc/re/quests/quests_malangdo.txt
index dbf405542..5593300ec 100644
--- a/npc/re/quests/quests_malangdo.txt
+++ b/npc/re/quests/quests_malangdo.txt
@@ -345,7 +345,7 @@ malangdo,184,139,4 script Storekeeper#mal 4_CAT_ADV2,{
mes "You don't have enough zeny...";
close;
}
- set Zeny, Zeny-.@zeny;
+ Zeny -= .@zeny;
break;
}
mes "[Storekeeper]";
@@ -10624,7 +10624,7 @@ mal_in01,15,16,3 script Fallen Angel#mal 4_F_VALKYRIE2,{
else if (.@i < 854) set .@enchant,4710; //Inteligence1
else set .@enchant,0;
- set Zeny, Zeny - 1000000;
+ Zeny -= 1000000;
delequip EQI_GARMENT;
if (.@enchant == 0) {
mes "[Fallen Angel]";
diff --git a/npc/re/quests/quests_malaya.txt b/npc/re/quests/quests_malaya.txt
index edc964053..581cf2d23 100644
--- a/npc/re/quests/quests_malaya.txt
+++ b/npc/re/quests/quests_malaya.txt
@@ -2403,7 +2403,7 @@ malaya,326,68,2 script Pedro the Sailor 4W_SAILOR,{
mes "[Pedro the Sailor]";
mes "Thank you~";
mes "Let's go before the ghosts come back!";
- set Zeny, Zeny - 1000;
+ Zeny -= 1000;
close2;
warp "izlude",195,180;
end;
@@ -3359,7 +3359,7 @@ ma_fild01,166,214,6 script Old Man in Dilemma#GA 4_F_BARYO_OLD,{
if (countitem(6497) >= 3 && Zeny >= 1000) {
specialeffect2 EF_CONE;
specialeffect EF_FORESTLIGHT2;
- set Zeny, Zeny-1000;
+ Zeny -= 1000;
getitem 12775,1; //Ancient_Spirit_Agimat
} else {
mes "[Old Man in Dilemma]";
diff --git a/npc/re/quests/quests_morocc.txt b/npc/re/quests/quests_morocc.txt
index 5c062bdf4..480618a70 100644
--- a/npc/re/quests/quests_morocc.txt
+++ b/npc/re/quests/quests_morocc.txt
@@ -93,7 +93,7 @@ moc_prydb1,103,54,3 script Suspicious Cat#night 4_CAT_SAILOR4,{
mes "Where do you think you're going! You're so broke!";
close;
}
- set Zeny, Zeny-5000;
+ Zeny -= 5000;
mes "[Suspicious Cat]";
mes "Bah, what's up with this old money... you don't have anything sparkly or shiny?!";
mes "Ahh, just follow me!";