diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-01-23 16:52:05 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-01-23 16:52:05 +0000 |
commit | 4e98d4621f225766abb32d30ab6cea8d2739a419 (patch) | |
tree | 1ca67ca0a8465848870c91dfdf60baffc9767ba4 /npc/functions/slot_machine.txt | |
parent | 29bb178e6ac12d8edb32b89c336d46178421bd83 (diff) | |
download | serverdata-4e98d4621f225766abb32d30ab6cea8d2739a419.tar.gz serverdata-4e98d4621f225766abb32d30ab6cea8d2739a419.tar.bz2 serverdata-4e98d4621f225766abb32d30ab6cea8d2739a419.tar.xz serverdata-4e98d4621f225766abb32d30ab6cea8d2739a419.zip |
Start converting scripts over to "ItemName"
Instead of using the item number. A few small bug fixes are also here.
Diffstat (limited to 'npc/functions/slot_machine.txt')
-rw-r--r-- | npc/functions/slot_machine.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/functions/slot_machine.txt b/npc/functions/slot_machine.txt index 024a2e8a..8f4482cc 100644 --- a/npc/functions/slot_machine.txt +++ b/npc/functions/slot_machine.txt @@ -9,8 +9,8 @@ function script SlotMachine { close; L_Play: - if(countitem(503) < 1) goto L_NoCoin; - delitem 503, 1; + if(countitem("CasinoCoins") < 1) goto L_NoCoin; + delitem "CasinoCoins", 1; set @Temp1,rand(7); set @Temp2,rand(7); set @Temp3,rand(7); @@ -22,7 +22,7 @@ L_Play: if(@Temp1 != @Temp3) goto L_Lost; mes "Congratulations! You won!"; mes "You get 10 casino coins"; - getitem 503, 10; + getitem "CasinoCoins", 10; close; L_Lost: |