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/001-2_Tulimshar | |
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/001-2_Tulimshar')
-rw-r--r-- | npc/001-2_Tulimshar/casino.txt | 14 | ||||
-rw-r--r-- | npc/001-2_Tulimshar/troupe_leader.txt | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/npc/001-2_Tulimshar/casino.txt b/npc/001-2_Tulimshar/casino.txt index b5da3933..079f163d 100644 --- a/npc/001-2_Tulimshar/casino.txt +++ b/npc/001-2_Tulimshar/casino.txt @@ -33,8 +33,8 @@ close; L_Begin: - if(countitem(503) < 15) goto L_NoCoin; - delitem 503, 15; + if(countitem("CasinoCoins") < 15) goto L_NoCoin; + delitem "CasinoCoins", 15; set @croupier, rand(0, 4); set @croupier, @croupier + 17; set @player, rand(4, 21); @@ -65,7 +65,7 @@ L_End: mes "\"Congratulations, you won!"; mes "I had " + @croupier + "."; mes "You get 45 casino coins.\""; - getitem 503, 45; + getitem "CasinoCoins", 45; close; L_NoCoin: @@ -129,8 +129,8 @@ L_b100: goto L_Check; L_Check: - if(countitem(503) < @bet) goto L_NoCoin; - delitem 503, @bet; + if(countitem("CasinoCoins") < @bet) goto L_NoCoin; + delitem "CasinoCoins", @bet; menu "Choose a color", -, "Choose a number", L_Number; @@ -140,7 +140,7 @@ L_Check: set @color,rand(2); if(@color == 1) goto L_Lost; mes "You won!"; - getitem 503, @bet * 2; + getitem "CasinoCoins", @bet * 2; close; L_Number: @@ -159,7 +159,7 @@ L_Number: if (@roulette < 37) mes "The ball stopped on " + @roulette; if (@number != @roulette) goto L_Lost; mes "\"You won!\""; - getitem 503, @bet * 10; + getitem "CasinoCoins", @bet * 10; close; L_NoCoin: diff --git a/npc/001-2_Tulimshar/troupe_leader.txt b/npc/001-2_Tulimshar/troupe_leader.txt index d5c8bbfd..7bace781 100644 --- a/npc/001-2_Tulimshar/troupe_leader.txt +++ b/npc/001-2_Tulimshar/troupe_leader.txt @@ -37,7 +37,7 @@ L_NohMask_Found: mes "[1500 experience points]"; getexp 1500, 0; set Inspector, 14; - getitem 678, 1; + getitem "NohMask", 1; next; mes "[Troupe Leader]"; mes "\"We don't need it anymore. We're doing different shows here.\""; |