diff options
-rw-r--r-- | changelog.txt | 2 | ||||
-rw-r--r-- | npc/tulimshar-casino/casino.txt | 19 |
2 files changed, 18 insertions, 3 deletions
diff --git a/changelog.txt b/changelog.txt index 2abd4e18..18eac873 100644 --- a/changelog.txt +++ b/changelog.txt @@ -29,3 +29,5 @@ of root access anymore). * Platyna: Added more Red Scorpions on Western Desert. * Platyna: Removed Fire Goblins from the Hermit's Cave and added Bats. + +12.06.07: * Trapdoor: Updated casino script to allow for aces to be 1 and 11. diff --git a/npc/tulimshar-casino/casino.txt b/npc/tulimshar-casino/casino.txt index 54ae75dc..1ba16272 100644 --- a/npc/tulimshar-casino/casino.txt +++ b/npc/tulimshar-casino/casino.txt @@ -168,7 +168,7 @@ new_8-1.gat,28,63,0 script BlackJack 107,{ delitem 503,15; set @croupier,rand(0, 4); set @croupier,@croupier + 17; - set @player,rand(4, 20); + set @player,rand(4, 21); mes "You got " + @player + " with your cards."; mes "Do you want another card?"; next; @@ -176,7 +176,9 @@ new_8-1.gat,28,63,0 script BlackJack 107,{ menu "Yes",L_Another,"No",L_End; L_Another: - set @player,@player+rand(2, 11); + set @tempace,rand(2,11); + if (@tempace == 11) goto L_Ace; + set @player,@player+@tempace; if (@player > 21) goto L_Lost; mes "You got " + @player + " with your cards."; mes "Do you want another card?"; @@ -184,7 +186,7 @@ L_Another: menu "Yes",L_Another,"No",L_End; L_End: - if (@player < @croupier) goto L_Lost; + if (@player <= @croupier) goto L_Lost; mes "Congratulations, you won!"; mes "I had " + @croupier + ""; mes "You get 50 casino coins"; @@ -204,6 +206,17 @@ L_Lost: mes "You got " + @player + " with your cards."; mes "I had " + @croupier + ""; close; + +L_Ace: + set @player,@player + 11; + if (@player > 21) set @player,@player - 10; + if (@player > 21) goto L_Lost; + mes "You got " + @player + " with your cards."; + mes "Do you want another card?"; + next; + + menu "Yes",L_Another,"No",L_End; + } new_8-1.gat,22,69,0 script Roulette 107,{ |