diff options
author | The Kandiman <kandiman@kandiman.(none)> | 2011-09-11 20:33:46 -0400 |
---|---|---|
committer | The Kandiman <kandiman@kandiman.(none)> | 2011-09-11 20:33:46 -0400 |
commit | ea8bb7b0cd86321ad0f85cc7a145671c527c10f9 (patch) | |
tree | 58128461e815f6aef84d7989e6fc5e0463b00235 /world/map/npc/027-2/werewolf.txt | |
parent | 1cb0e75cbd356485ebe35bb3f5af10e1454e57a5 (diff) | |
download | serverdata-ea8bb7b0cd86321ad0f85cc7a145671c527c10f9.tar.gz serverdata-ea8bb7b0cd86321ad0f85cc7a145671c527c10f9.tar.bz2 serverdata-ea8bb7b0cd86321ad0f85cc7a145671c527c10f9.tar.xz serverdata-ea8bb7b0cd86321ad0f85cc7a145671c527c10f9.zip |
Tab conversion and script formatting project.
Final commit, maps 024-1 through 042-2 complete.
Diffstat (limited to 'world/map/npc/027-2/werewolf.txt')
-rw-r--r-- | world/map/npc/027-2/werewolf.txt | 55 |
1 files changed, 32 insertions, 23 deletions
diff --git a/world/map/npc/027-2/werewolf.txt b/world/map/npc/027-2/werewolf.txt index 41870095..59272169 100644 --- a/world/map/npc/027-2/werewolf.txt +++ b/world/map/npc/027-2/werewolf.txt @@ -15,7 +15,8 @@ mes "\"What a nice place here, isn't it?\""; next; mes "\"Just the stuff they call 'food' in here is awful, bah.\""; - if (baselevel < 80) goto L_Close; + if (baselevel < 80) + goto L_Close; next; mes "\"I like bones from big animals, the best would be with some raw flesh on it. But just the bones are fine too.\""; next; @@ -28,11 +29,12 @@ L_Bones: mes "[Wolfgang]"; mes "\"Do you have " + @ANIMALBONES_AMOUNT + " bones of an animal for me?\""; next; - if ((countitem("Bone") > 0) && (countitem("AnimalBones") >= @ANIMALBONES_AMOUNT)) - menu - "Yes, here they are.",L_Bring, - "What about this normal bone?",L_Human, - "Not yet.",L_Close; + if ((countitem("Bone") > 0) + && (countitem("AnimalBones") >= @ANIMALBONES_AMOUNT)) + menu + "Yes, here they are.",L_Bring, + "What about this normal bone?",L_Human, + "Not yet.",L_Close; if (countitem("Bone") > 0) menu "What about this normal bone?",L_Human, @@ -85,7 +87,8 @@ L_Happy: //The game mechanics is copied from casino.txt L_Game: - if(zeny < @money) goto L_No_Money; + if (zeny < @money) + goto L_No_Money; mes "[Wolfgang]"; mes "\"Very nice. Let's start.\""; mes "He shuffles the cards."; @@ -95,29 +98,33 @@ L_Game: set @croupier, @croupier + 17; set @player, rand(4, 21); mes "\"You got " + @player + " with your cards."; - if(@player == 21) goto L_End; + if (@player == 21) + goto L_End; mes "Do you want another card?\""; next; - menu "Yes.", L_Another, "No.", L_End; L_Another: set @tempace, rand(2, 11); - if (@tempace == 11) goto L_Ace; + if (@tempace == 11) + goto L_Ace; set @player, @player + @tempace; - if (@player > 21) goto L_Lost; - if (@player == 21) goto L_End; + if (@player > 21) + goto L_Lost; + if (@player == 21) + goto L_End; mes "\"You got " + @player + " with your cards."; mes "Do you want another card?\""; next; - menu "Yes", L_Another, "No", L_End; + L_End: - if (@player <= @croupier) goto L_Lost; + if (@player <= @croupier) + goto L_Lost; mes "\"You won! Hrm, here is your money.\""; set zeny, zeny + (3 * @money); close; @@ -135,13 +142,15 @@ L_Lost: L_Ace: set @player, @player + 11; - if (@player > 21) set @player, @player - 10; - if (@player > 21) goto L_Lost; - if (@player == 21) goto L_End; + if (@player > 21) + set @player, @player - 10; + if (@player > 21) + goto L_Lost; + if (@player == 21) + goto L_End; mes "You got " + @player + " with your cards."; mes "Do you want another card?"; next; - menu "Yes", L_Another, "No", L_End; @@ -151,8 +160,8 @@ L_Close: close; S_Update_Mask: - set QUEST_Graveyard_Inn, - (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK)) - | (@state << @Graveyard_Inn_SHIFT); - return; -} + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK)) + | (@state << @Graveyard_Inn_SHIFT); + return; +}
\ No newline at end of file |