diff options
author | Haru <haru@dotalux.com> | 2013-11-28 00:42:20 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-11-28 00:43:49 +0100 |
commit | 4cc19ba31eaf1cb20f451ff462e1cf9e5ea3def6 (patch) | |
tree | e2dd2640adb13411dee1982e3a7d13c12d4e04b3 /npc/custom/quests | |
parent | c069e2e9b89f712c6ad6ebba983460408f6da198 (diff) | |
download | hercules-4cc19ba31eaf1cb20f451ff462e1cf9e5ea3def6.tar.gz hercules-4cc19ba31eaf1cb20f451ff462e1cf9e5ea3def6.tar.bz2 hercules-4cc19ba31eaf1cb20f451ff462e1cf9e5ea3def6.tar.xz hercules-4cc19ba31eaf1cb20f451ff462e1cf9e5ea3def6.zip |
Revert "Cleaned up Zeny manipulation in scripts."
Reverted due to a serious regression.
I'll commit this again once I fixed the issue in the script engine.
Sorry for the inconvenience.
This reverts commit 4faa0ec9df7067cee3eb1c1953fccc6c2f842179.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/custom/quests')
-rw-r--r-- | npc/custom/quests/hunting_missions.txt | 4 | ||||
-rw-r--r-- | npc/custom/quests/kaho_balmung.txt | 2 | ||||
-rw-r--r-- | npc/custom/quests/kahohorn.txt | 2 | ||||
-rw-r--r-- | npc/custom/quests/quest_shop.txt | 2 | ||||
-rw-r--r-- | npc/custom/quests/questboard.txt | 4 | ||||
-rw-r--r-- | npc/custom/quests/sphinx_mask.txt | 2 | ||||
-rw-r--r-- | npc/custom/quests/sunglasses.txt | 4 | ||||
-rw-r--r-- | npc/custom/quests/thq/THQS_GuildNPC.txt | 2 | ||||
-rw-r--r-- | npc/custom/quests/thq/THQS_QuestNPC.txt | 2 | ||||
-rw-r--r-- | npc/custom/quests/thq/THQS_TTShop.txt | 6 |
10 files changed, 15 insertions, 15 deletions
diff --git a/npc/custom/quests/hunting_missions.txt b/npc/custom/quests/hunting_missions.txt index 5f352b2a4..d5d466f73 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; } - Zeny -=.Reset; + set Zeny, 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; - Zeny +=.@zeny; + set 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 624e71d1b..fac8b85ff 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)+"]"); - Zeny -=1000000; + set Zeny, 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 8cc2dae3f..882728925 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; - Zeny -=5000000; + set Zeny, 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 e7017f2b6..9398826ba 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]) Zeny -=(.@q[4]*.@q[1]); + if (.@q[4]) set Zeny, 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 3ecb434c3..28a25cc28 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")); - Zeny +=getd("." +currentquest$+"_collectionzeny"); + set Zeny,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")); - Zeny +=getd("." +currentquest$+"_huntingzeny"); + set Zeny, 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 49c8f2169..b4e9c118c 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; } - Zeny -=getarg(2); + set Zeny, 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 0e661cec8..a4c828457 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; - Zeny -=100000; + set Zeny, 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; - Zeny -=400000; + set Zeny, 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 837a4d7fd..3e0723781 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; - Zeny -=25000; + set Zeny,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 66a2cbbcc..9a09089b0 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; - Zeny -=2500; + set Zeny,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 113e0be4d..25e080a8e 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; - Zeny +=1000; + set Zeny,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; - Zeny +=10000; + set Zeny,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; - Zeny +=100000; + set Zeny,Zeny+100000; close; N_BuyWeps: |