diff options
author | Taylor Locke <kisuka@kisuka.com> | 2013-11-25 06:03:06 -0800 |
---|---|---|
committer | Taylor Locke <kisuka@kisuka.com> | 2013-11-25 06:03:06 -0800 |
commit | 4faa0ec9df7067cee3eb1c1953fccc6c2f842179 (patch) | |
tree | 2ad86f1414ff35cf96a8ec5577a978d533072750 /npc/re/quests/magic_books.txt | |
parent | 463cbc94ea4124a35ad5bf3222b510ad979d8805 (diff) | |
download | hercules-4faa0ec9df7067cee3eb1c1953fccc6c2f842179.tar.gz hercules-4faa0ec9df7067cee3eb1c1953fccc6c2f842179.tar.bz2 hercules-4faa0ec9df7067cee3eb1c1953fccc6c2f842179.tar.xz hercules-4faa0ec9df7067cee3eb1c1953fccc6c2f842179.zip |
Cleaned up Zeny manipulation in scripts.
Diffstat (limited to 'npc/re/quests/magic_books.txt')
-rw-r--r-- | npc/re/quests/magic_books.txt | 10 |
1 files changed, 5 insertions, 5 deletions
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."; |