diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-01-20 14:41:51 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-01-20 14:41:51 -0300 |
commit | a4241079bf3cb5d9b739851d632ad73304417e5b (patch) | |
tree | 1f6696a8bffa4e393d84fb512a021f86e6765174 | |
parent | 3bce32ef341e284f7973f2b07a4b3088c7b023b2 (diff) | |
download | serverdata-a4241079bf3cb5d9b739851d632ad73304417e5b.tar.gz serverdata-a4241079bf3cb5d9b739851d632ad73304417e5b.tar.bz2 serverdata-a4241079bf3cb5d9b739851d632ad73304417e5b.tar.xz serverdata-a4241079bf3cb5d9b739851d632ad73304417e5b.zip |
Clean up some code not related to what I'm working on
-rw-r--r-- | npc/001-3-1/cooking.txt | 6 | ||||
-rw-r--r-- | npc/002-1/chefgado.txt | 2 | ||||
-rw-r--r-- | npc/005-3/barrel.txt | 31 |
3 files changed, 19 insertions, 20 deletions
diff --git a/npc/001-3-1/cooking.txt b/npc/001-3-1/cooking.txt index 1e8aecb45..b3e38e108 100644 --- a/npc/001-3-1/cooking.txt +++ b/npc/001-3-1/cooking.txt @@ -10,10 +10,10 @@ if ($@GM_OVERRIDE) goto L_Master; mesc l("Welcome to Saulc's Magic Cooking Stove!"); mesc l("What will you cook today?"); - mesc l("Operation cost: %s GP", fnum(1500)), 1; - if (Zeny < 1500) close; + mesc l("Operation cost: %s GP", fnum(750)), 1; + if (Zeny < 750) close; if (CookingSystem()) { - Zeny -= 1500; + Zeny -= 750; mesc l("Success!"), 3; } else { mesc l("That didn't work!"), 1; diff --git a/npc/002-1/chefgado.txt b/npc/002-1/chefgado.txt index 6eb08d94c..a17a74e02 100644 --- a/npc/002-1/chefgado.txt +++ b/npc/002-1/chefgado.txt @@ -9,8 +9,6 @@ // Variable: // ShipQuests_ChefGado // ShipQuests_Knife -// Translation -// FR Translated 002-1,27,28,0 script Chef Gado NPC_CHEF_GADO,{ .@q = getq(ShipQuests_Knife); diff --git a/npc/005-3/barrel.txt b/npc/005-3/barrel.txt index 6f49589bc..f1b0588e1 100644 --- a/npc/005-3/barrel.txt +++ b/npc/005-3/barrel.txt @@ -15,7 +15,7 @@ function script CheckBarrel { @barrel_count = 0; - @count_tmp = 0; + .@count_tmp = 0; if ($@GM_OVERRIDE) npctalk3 l("Hello, I am B-@@, of the @@ order.", @barrel, $@BarrelBits[@barrel]); if (getq2(CandorQuest_Barrel) & $@BarrelBits[@barrel]) @@ -34,23 +34,24 @@ L_BarrelTally: killmonster("005-3", "Trainer::OnKillHouseMaggot"); setq CandorQuest_Barrel, 3; } - @rand = rand2(5); - if (@rand == 0) - getitem Coal,1; - else if (@rand == 1) - getitem BugLeg,1; - else if (@rand == 2) - getitem CommonCarp,1; - else if (@rand == 3) - getitem Croconut,1; - else if (@rand == 4) - getitem TolchiArrow,6; + switch (rand2(5)) { + case 0: + getitem Coal, 1; break; + case 1: + getitem BugLeg, 1; break; + case 2: + getitem CommonCarp, 1; break; + case 3: + getitem Croconut, 1; break; + case 4: + getitem TolchiArrow, 6; break; + } return; L_Loop: - while (@count_tmp < 8) { - @count_tmp = (@count_tmp + 1); - if (getq2(CandorQuest_Barrel) & $@BarrelBits[@count_tmp]) + while (.@count_tmp < 8) { + .@count_tmp = (.@count_tmp + 1); + if (getq2(CandorQuest_Barrel) & $@BarrelBits[.@count_tmp]) @barrel_count = (@barrel_count + 1); } goto L_BarrelTally; |