summaryrefslogtreecommitdiff
path: root/npc/custom/etc/lottery.txt
diff options
context:
space:
mode:
authorTaylor Locke <kisuka@kisuka.com>2013-11-25 06:03:06 -0800
committerTaylor Locke <kisuka@kisuka.com>2013-11-25 06:03:06 -0800
commit4faa0ec9df7067cee3eb1c1953fccc6c2f842179 (patch)
tree2ad86f1414ff35cf96a8ec5577a978d533072750 /npc/custom/etc/lottery.txt
parent463cbc94ea4124a35ad5bf3222b510ad979d8805 (diff)
downloadhercules-4faa0ec9df7067cee3eb1c1953fccc6c2f842179.tar.gz
hercules-4faa0ec9df7067cee3eb1c1953fccc6c2f842179.tar.bz2
hercules-4faa0ec9df7067cee3eb1c1953fccc6c2f842179.tar.xz
hercules-4faa0ec9df7067cee3eb1c1953fccc6c2f842179.zip
Cleaned up Zeny manipulation in scripts.
Diffstat (limited to 'npc/custom/etc/lottery.txt')
-rw-r--r--npc/custom/etc/lottery.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/custom/etc/lottery.txt b/npc/custom/etc/lottery.txt
index 26c4afa9f..4ad9ec0d2 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;