summaryrefslogtreecommitdiff
path: root/world/map/npc/021-1/banu.txt
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2015-01-07 21:00:16 -0600
committerwushin <pasekei@gmail.com>2015-01-07 21:00:16 -0600
commit2901ba177dea5867cbd52eb2b02a0ef8e1816e15 (patch)
tree81cc70a70e7cc0b9e46cc3e055dea1c702db1309 /world/map/npc/021-1/banu.txt
parentfb7caf2cb0e768cf4b9c7f83df644edc97250a78 (diff)
downloadserverdata-2901ba177dea5867cbd52eb2b02a0ef8e1816e15.tar.gz
serverdata-2901ba177dea5867cbd52eb2b02a0ef8e1816e15.tar.bz2
serverdata-2901ba177dea5867cbd52eb2b02a0ef8e1816e15.tar.xz
serverdata-2901ba177dea5867cbd52eb2b02a0ef8e1816e15.zip
Moving Tutorial from Tulimshar to Candor
Diffstat (limited to 'world/map/npc/021-1/banu.txt')
-rw-r--r--world/map/npc/021-1/banu.txt112
1 files changed, 0 insertions, 112 deletions
diff --git a/world/map/npc/021-1/banu.txt b/world/map/npc/021-1/banu.txt
deleted file mode 100644
index db3830dc..00000000
--- a/world/map/npc/021-1/banu.txt
+++ /dev/null
@@ -1,112 +0,0 @@
-// Old woman working on a field, asks the player to get her some water
-// after that she asks for a knife
-// Using bit 10 and 11 of QUEST_NorthTulimshar (second half of nibble 2)
-// author: Jenalya
-
-021-1.gat,102,54,0|script|Banu|154
-{
- set @state, ((QUEST_NorthTulimshar & TWOBIT_5_MASK) >> TWOBIT_5_SHIFT);
- set @EXP, 30;
- set @money_water, 200;
- set @money_knife, 60;
-
- if (@state >= 3) goto L_Done;
- if (@state == 2) goto L_Knife;
- if (@state == 1) goto L_Water;
-
- mes "[Banu]";
- mes "\"Ah, hello. You've come at just the right moment. The field work is hard and the sun is burning.";
- mes "Would you mind refilling an old woman's Empty Bottle with water?\"";
- menu
- "Sure!",L_Next,
- "Sorry, I'm busy.",L_Close;
-
-L_Next:
- getinventorylist;
- if (@inventorylist_count == 100)
- goto L_FullInv;
-
- mes "She smiles.";
- mes "[Banu]";
- mes "\"Here is my Empty Bottle. There is a well right over there at the market.\"";
- getitem "EmptyBottle", 1;
- set @state, 1;
- callsub S_Update_Mask;
- goto L_Close;
-
-L_Water:
- mes "[Banu]";
- mes "\"Ah, you're back. I'm so thirsty.\"";
- next;
- if (countitem("BottleOfWater") < 1)
- goto L_NoWater;
- delitem "BottleOfWater", 1;
- mes "She grabs the Bottle of Water and drinks.";
- getexp @EXP, 0;
- set Zeny, Zeny + @money_water;
- set @state, 2;
- callsub S_Update_Mask;
- mes "[Banu]";
- mes "\"Ah, that's refreshing. Thank you. You're a good kid. Have this for your expenses.";
- mes "Maybe you can do me another favor?\"";
- next;
- mes "\"I need a new Knife. Mjolnir in the Tulimshar forge to the north east of here is selling some. But it's such a long way for my old legs.";
- mes "Would you go to get me a Knife?\"";
- goto L_Close;
-
-L_Knife:
- mes "[Banu]";
- mes "\"Hello dear. Did you get the knife for me?\"";
- menu
- "Yeah, here is it.",L_Next1,
- "Not yet.",L_Close;
-
-L_Next1:
- if (countitem("Knife") < 1)
- goto L_NoKnife;
- delitem "Knife", 1;
- getexp @EXP, 0;
- set Zeny, Zeny + @money_knife;
- set @state, 3;
- callsub S_Update_Mask;
- mes "[Banu]";
- mes "\"Thank you! You're a darling. Please take this for your effort.\"";
- goto L_Close;
-
-L_Done:
- mes "[Banu]";
- set @rand, rand(3);
- if (@rand == 0)
- mes "\"I spent all my life here in Tulimshar. It's a good place to live.\"";
- if (@rand == 1)
- mes "\"Did you see the kids playing hide and seek? Ah, when I was young I used to play with my good friend Sorfina. She lives in the suburbs now, north of Tulimshar.\"";
- if (@rand == 2)
- mes "\"Tulimshar is ruled by a council of wise wizards.\"";
- goto L_Close;
-
-L_NoWater:
- mes "[Banu]";
- mes "\"You didn't get it yet? Shame on you, an old woman is depending on you.\"";
- goto L_Close;
-
-L_NoKnife:
- mes "[Banu]";
- mes "\"Where is it? Don't play tricks on an old woman! That's not nice.\"";
- goto L_Close;
-
-L_FullInv:
- mes "[Banu]";
- mes "\"Oh my dear! You're carrying so many things that you can't take my Empty Bottle.\"";
- goto L_Close;
-
-L_Close:
- set @inventorylist_count, 0;
- set @EXP, 0;
- set @state, 0;
- set @rand, 0;
- close;
-
-S_Update_Mask:
- set QUEST_NorthTulimshar, (QUEST_NorthTulimshar & ~(TWOBIT_5_MASK)) | (@state << TWOBIT_5_SHIFT);
- return;
-}