summaryrefslogtreecommitdiff
path: root/npc/027-2_Caretakers_House
diff options
context:
space:
mode:
Diffstat (limited to 'npc/027-2_Caretakers_House')
-rw-r--r--npc/027-2_Caretakers_House/_import.txt8
-rw-r--r--npc/027-2_Caretakers_House/_warps.txt2
-rwxr-xr-xnpc/027-2_Caretakers_House/alacrius.txt2
-rwxr-xr-xnpc/027-2_Caretakers_House/alacrius2.txt4
-rw-r--r--npc/027-2_Caretakers_House/crying_child.txt208
-rw-r--r--npc/027-2_Caretakers_House/diary.txt43
-rw-r--r--npc/027-2_Caretakers_House/door.txt14
-rwxr-xr-xnpc/027-2_Caretakers_House/gy_inn_shops.txt6
-rw-r--r--npc/027-2_Caretakers_House/innkeeper.txt231
-rwxr-xr-xnpc/027-2_Caretakers_House/testnpcs.txt41
10 files changed, 543 insertions, 16 deletions
diff --git a/npc/027-2_Caretakers_House/_import.txt b/npc/027-2_Caretakers_House/_import.txt
index f548a434..5a78e00e 100644
--- a/npc/027-2_Caretakers_House/_import.txt
+++ b/npc/027-2_Caretakers_House/_import.txt
@@ -2,7 +2,13 @@ map: 027-2.gat
npc: npc/027-2_Caretakers_House/_mobs.txt
npc: npc/027-2_Caretakers_House/_warps.txt
npc: npc/027-2_Caretakers_House/alacrius.txt
-npc: npc/027-2_Caretakers_House/alacrius2.txt
+//npc: npc/027-2_Caretakers_House/alacrius2.txt
npc: npc/027-2_Caretakers_House/caretaker.txt
+npc: npc/027-2_Caretakers_House/diary.txt
+npc: npc/027-2_Caretakers_House/door.txt
npc: npc/027-2_Caretakers_House/gy_inn_shops.txt
+//npc: npc/027-2_Caretakers_House/husband.txt
+npc: npc/027-2_Caretakers_House/innkeeper.txt
+npc: npc/027-2_Caretakers_House/crying_child.txt
+//npc: npc/027-2_Caretakers_House/lover.txt
npc: npc/027-2_Caretakers_House/testnpcs.txt
diff --git a/npc/027-2_Caretakers_House/_warps.txt b/npc/027-2_Caretakers_House/_warps.txt
index 8b7af158..ebb1f99e 100644
--- a/npc/027-2_Caretakers_House/_warps.txt
+++ b/npc/027-2_Caretakers_House/_warps.txt
@@ -1,3 +1,5 @@
// 027-2 Caretaker's House warps
027-2.gat,26,33 warp toGraveyard -1,-1,027-1.gat,88,85
+027-2.gat,128,35 warp To2ndFloor 0,-1,027-2.gat,75,93
+027-2.gat,76,95 warp To1stFloor 0,-1,027-2.gat,127,37
diff --git a/npc/027-2_Caretakers_House/alacrius.txt b/npc/027-2_Caretakers_House/alacrius.txt
index eee471ad..825c114b 100755
--- a/npc/027-2_Caretakers_House/alacrius.txt
+++ b/npc/027-2_Caretakers_House/alacrius.txt
@@ -1,6 +1,6 @@
// Starts the reaper quest
-027-2.gat,104,39,0 script Alacrius 313,{
+027-2.gat,107,29,0 script Alacrius 313,{
// if started, go to started
// if fail go to failed
// if complete go to complete
diff --git a/npc/027-2_Caretakers_House/alacrius2.txt b/npc/027-2_Caretakers_House/alacrius2.txt
index 70cf0c42..51614868 100755
--- a/npc/027-2_Caretakers_House/alacrius2.txt
+++ b/npc/027-2_Caretakers_House/alacrius2.txt
@@ -1,6 +1,6 @@
// Starts the reaper quest
-027-2.gat,104,39,0 script Alacrius 313,{
+027-2.gat,107,29,0 script Alacrius 313,{
if ($@FIGHT_ALACRIUS_STATUS != 0) goto L_Enjoy;
@@ -110,4 +110,4 @@ L_NOHERO:
OnInit:
initnpctimer;
stopnpctimer;
-} \ No newline at end of file
+}
diff --git a/npc/027-2_Caretakers_House/crying_child.txt b/npc/027-2_Caretakers_House/crying_child.txt
new file mode 100644
index 00000000..a42be868
--- /dev/null
+++ b/npc/027-2_Caretakers_House/crying_child.txt
@@ -0,0 +1,208 @@
+027-2.gat,50,92,0 script Crying Child 314,{
+ end;
+
+
+// Crying Child subquest (Still need to change it to Bitmask)
+// Variable states:
+// 1 = You agree to help the child to find the bracelet outside
+// 2 = You found the bracelet (see _mobs.txt)
+// 3 = You gave the bracelet to the child
+// 4 = You decided to help the child again, by investigating what the bracelet means to them.
+// 5 = The father/husband told you what he thinks of the bracelet
+// 6 = The mother/wife told you what he thinks of the bracelet
+// 7 = The kid decided that the bracelet has no value to their parents, so you can have it.
+
+ if (Sex == 0) set @madamsir$, "Madam";
+ if (Sex == 1) set @madamsir$, "Sir";
+ if (QUEST_GYINN == 7) goto L_return5;
+ if (QUEST_GYINN == 6) goto L_return4;
+ if (QUEST_GYINN == 4 || QUEST_GYINN == 5) goto L_return3;
+ if (QUEST_GYINN == 3) goto L_return2;
+ if (QUEST_GYINN == 2) goto L_return1;
+ if (QUEST_GYINN == 1) goto L_return;
+ if (BaseLevel >= 80) goto L_intro;
+
+
+L_cry:
+ mes "[Crying Child]";
+ mes "\"Waaahhhhh! (Sniffle)\"";
+ close;
+
+L_intro:
+ mes "[Crying Child]";
+ mes "\"Waaah!\"";
+ next;
+ mes "\"(Sniffle)\"";
+ next;
+ menu
+ "Calm down kid, what happened?",-,
+ "Leave the kid alone",L_close;
+ mes "[Crying Child]";
+ mes "\"Oh, what? Who are you "+@madamsir$+", what are you doing here?\"";
+ next;
+ menu
+ "My name is "+strcharinfo(0)+", I heard you cry and decided to ask if you need help.",-;
+ next;
+ mes "[Crying Child]";
+ mes "\"You look like a good person... Maybe I can trust you... My name is Aldred and I live here with my parents. They own this place.\"";
+ next;
+ mes "[Aldred]";
+ mes "\"My problem is... I don't know what to do... My dad will be so angry with me... He is very nice, but when you do something wrong... he... WAAAAAAH!\"";
+ next;
+ menu
+ "Here, here, don't cry... What did you do?",-;
+ next;
+ mes "[Aldred]";
+ mes "\"Err.. I was looking at my parents stuff and I found this funny thing! It looks like a big blue beetle... I thought it would be funny to play with it for a while, so I took it with me. But I... sniffle... I lost it...\"";
+ next;
+ mes "\"I don't know what happened. It was outside and... maybe it fell on the ground! I am so scared! What if someone picked it up? It could be anyone!\"";
+ next;
+ menu
+ "Don't worry, I will look around. Maybe I can find it for you...",-,
+ "Hey, you messed up, now you deal with this.",L_close;
+
+ mes "[Aldred]";
+ mes "\"Thank you " +strcharinfo(0)+"! I hope you find it soon! It is not like it is worth a lot of money... It looks like a simple thing, but I really don't know what would be my dad's reaction when he finds out I lost something that belongs to him!\"";
+ set QUEST_GYINN, 1;
+ close;
+
+L_return:
+ mes "[Aldred]";
+ mes "\"Please, help me, find the bracelet. If my father asks me why I'm crying I don't think I can come up with an excuse... Oh no...\"";
+ close;
+
+
+L_return1:
+ mes "[Aldred]";
+ mes "\"Great! You are the best! Where did you find it?\"";
+ next;
+ menu
+ "It was easy, it was with one of the monsters outside.",-;
+ next;
+ mes "[Aldred]";
+ mes "\"Ohh.. a monster? He must be a fine monster since he returned it so easily to you!\"";
+ next;
+ menu
+ "Err... kind of...",-;
+ next;
+ mes "[Aldred]";
+ mes "\"Now I will put this thing in its right place... Thank you!\"";
+ set QUEST_GYINN, 3;
+ close;
+
+
+L_return2:
+ mes "[Aldred]";
+ mes "\"Hi "+strcharinfo(0)+ "! I was thinking about something... you are such a nice person and you helped me a lot, but I didn't give you anything in exchange. It was really rude, I know, but I am only a child, I have nothing to give you!\"";
+ next;
+ menu
+ "Don't worry, you don't need to give me anything...",-;
+ next;
+ mes "[Aldred]";
+ mes "\"I know! That is why you are so great! But hey, I have an idea. What if you talk to my father and my mother about this item? If it is not important or valuable to them, I think there is no problem to let you keep it.\"";
+ next;
+ menu
+ "Sounds interesting... But who are your parents?",-,
+ "Bad idea, it will only bring more problems...",L_close;
+ next;
+ set QUEST_GYINN, 4;
+ mes "[Aldred]";
+ mes "\"Ok, great... But please, try to be discrete about it. I don't want my parents to know I was playing with their stuff. My Father owns this place. He is always carying a lantern... I guess he is still afraid of the dark. My mother is the Innkeeper. She is very beautiful and today is using a red dress.\"";
+ close;
+
+L_return3:
+ mes "[Aldred]";
+ mes "\"I hope this bracelet doesn't mean a lot to my parents, this way you can keep it as a gift.\"";
+ close;
+
+L_return4:
+ menu
+ "Hi, I talked to your parents.",-;
+ mes "[Aldred]";
+ mes "\"Really? What did my father say about the bracelet?\"";
+ menu
+ "He said it is just a cheap bracelet. And it does not belong to him.",-;
+ mes "[Aldred]";
+ mes "\"And what did my mother say?\"";
+ menu
+ "She said it was a gift to her, but she wanted to throw it away.",-;
+ mes "[Aldred]";
+ mes "\"Really? A gift? I bet it was not my father who gave her this gift. She wouldn't throw it away if it was a gift from him.\"";
+ next;
+ mes "\"Well, I guess you can keep it. But now I am really curious, who would give a gift to my mother? There are so many strange things happening lately...\"";
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_full;
+ getitem "ScarabArmlet", 1;
+ set QUEST_GYINN, 7;
+ mes "\"I will tell my parents how good and helpfull you are... Maybe they can even offer you a discount in your expenses here at Reid's Inn...\"";
+ close;
+
+L_return5:
+ mes "[Aldred]";
+ mes "\"Thank you for all your help.\"";
+ close;
+
+L_full:
+ mes "[Aldred]";
+ mes "\"I dont think you can carry this bracelet... Your backpack is full! Throw something away and come back to get the bracelet.\"";
+ close;
+
+
+L_close:
+ close;
+
+}
+
+
+
+// Participation of the Wife/Mother in the crying child subquest. Merge later with the apropriate NPC
+
+// if (QUEST_GYINN == 5) goto L_asking_child;
+// end;
+
+//L_asking_child:
+// menu
+// "Hi. I found this in the main hall. Do you know to whom it belongs?",-;
+// next;
+// mes "[Innkeeper's Ghost]";
+// mes "\"What?! In the main hall? Let me take a look at this bracelet.\"";
+// next;
+// mes "[Innkeeper's Ghost]";
+// mes "\"Oh, I recognize this bracelet. Someone gave it to me a few weeks ago. But I don't want to keep it. I thought I have thrown it in the garbage.\"";
+// next;
+// menu
+// "Garbage? Is this bracelet so ugly?",-;
+// next;
+// mes "[Innkeeper's Ghost]";
+// mes "\"No, no. It is not that I don't like it. I just don't like the feelings it causes on me... It is... Complicated. Please, take this bracelet away. I don't want it... You can have it, or just give to someone else.\"";
+// set QUEST_GYINN, 6;
+// close;
+
+
+// Participation of the Husband/Father in the crying child subquest. Merge later with the apropriate NPC
+
+// if (QUEST_GYINN == 4) goto L_asking_child;
+// end;
+
+//L_asking_child:
+// menu
+// "Hello sir. Can I ask you a question?",-;
+// mes "[Lantern Man]";
+// mes "\"Just ask!\"";
+// next;
+// menu
+// "Ok... Ehh, I found this in the main hall. Do you know to whom it belongs?",-;
+// next;
+// mes "[Lantern Man]";
+// mes "\"Hmm! Let me see.\"";
+// next;
+// mes "\"Well.. this is just a cheap bracelet, it is very popular with the young kids these days, specially the magic students. They call it 'Scarab Armlet'. Fancy name, huh? But for me it is just a cheap bracelet.\"";
+// next;
+// mes "\"They also say it increases 'magic atack'. But, in fact, I think these kids are delusional. There is no such thing as magic, everyone knows it.\"";
+// next;
+// mes "\"Anyway, you can easily find one of these in a lot of small shops in this town. I am pretty sure that whoever lost it won't bother coming all the way back to get it. \"";
+// menu
+// "Thank you sir, that is all I wanted to ask.",-;
+// set QUEST_GYINN, 5;
+// close;
+
diff --git a/npc/027-2_Caretakers_House/diary.txt b/npc/027-2_Caretakers_House/diary.txt
new file mode 100644
index 00000000..f110c9f7
--- /dev/null
+++ b/npc/027-2_Caretakers_House/diary.txt
@@ -0,0 +1,43 @@
+027-2.gat,26,97,0 script #Diary 127,1,1,{
+ set @Graveyard_Inn_MASK, NIBBLE_0_MASK;
+ set @Graveyard_Inn_SHIFT, NIBBLE_0_SHIFT;
+
+ set @reid, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT);
+
+ if (@reid >= 6) goto L_Diary;
+ end;
+
+L_Diary:
+ mes "You pull out Reid's diary behind a huge poem book. In the back part of the book, you find some entries, which seem to be about Savaric.";
+ next;
+ mes "'Savaric keeps confusing me - one time he is so flirting and slinky, another time he is cold and unfriendly. What is it with this man?'";
+ next;
+ mes "'I need to stay away from him! It's not right, what I am feeling. It seems, Hamond doesn't suspect anything of my feelings - but I know, it's just a matter of time. I need to come to my sense again!'";
+ next;
+ mes "'Oh, this chaos between Savaric and me is getting serious. I was in his room today and he put my arms around me - I wanted to push him away, but I couldn't move. It was such a sweet feeling. I was twisted between my brain saying 'No!' and my body wanting to feel his touch. Then Aldred showed up and Savaric let me go.'";
+ next;
+ mes "The next part is blurred - it seems, Reid was crying while writing.";
+ mes "'Savaric was talking again about leaving, because he can't find the mana seed. The thought, I could never see him again made me feel like falling in a big black hole! I need to decide what to do. But Hamond - I owe him so much. And what about Aldred?'";
+ next;
+ mes "'We kissed each other - oh, I'm feeling so bad. I'm a disloyal slut. But I want it to happen again.'";
+ next;
+ mes "'I told Savaric, we have to stop with it - he was very understanding. But then he started to hold me again and I couldn't resist. I completely don't know, what to do! His touch on my waist even above my clothes made me feel hotter than every touch of Hamond ever did.'";
+ next;
+ mes "'I don't know, if Hamond suspects us - he was holding me tight all the night, whispering declerations of love in my ears. Oh, I'm feeling so bad.'";
+ next;
+ mes "'Hamond won't be here next night - he needs to visit our wine supplier to negotiate the prices. Savaric knows this. I'm feeling so excited - I should go with Hamond, but I told him, I need to take care about the inn, while he is away. Savaric.. '";
+ next;
+ mes "This is the last entry.";
+ if (@state != 6) goto L_Close;
+
+ set @state, 7;
+ callsub S_Update_Mask;
+L_Close:
+ close;
+
+S_Update_Mask:
+ set QUEST_Graveyard_Inn,
+ (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK))
+ | (@state << @Graveyard_Inn_SHIFT);
+ return;
+}
diff --git a/npc/027-2_Caretakers_House/door.txt b/npc/027-2_Caretakers_House/door.txt
new file mode 100644
index 00000000..7cf479fd
--- /dev/null
+++ b/npc/027-2_Caretakers_House/door.txt
@@ -0,0 +1,14 @@
+027-2.gat,24,99,0 script #Door 127,1,1,{
+ set @Graveyard_Inn_MASK, NIBBLE_0_MASK;
+ set @Graveyard_Inn_SHIFT, NIBBLE_0_SHIFT;
+
+ set @reid, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT);
+
+ if (@reid >= 6) goto L_Warp;
+ message strcharinfo(0), "The door is locked.";
+ end;
+
+L_Warp:
+ warp "027-2.gat", 26, 99;
+ end;
+}
diff --git a/npc/027-2_Caretakers_House/gy_inn_shops.txt b/npc/027-2_Caretakers_House/gy_inn_shops.txt
index b7e3aa5f..af6b2d39 100755
--- a/npc/027-2_Caretakers_House/gy_inn_shops.txt
+++ b/npc/027-2_Caretakers_House/gy_inn_shops.txt
@@ -7,10 +7,10 @@
// banker: function
-027-2.gat,75,26,0 shop Chef Skeleton 300,519:100
+027-2.gat,75,22,0 shop Chef 300,519:100
027-2.gat,90,36,0 shop Barmaid 301,519:100,533:150,534:90,562:500,676:200
-027-2.gat,33,77,0 shop Shopkeeper 302,586:1000,524:1600,544:10000,632:10000,528:1000,735:1
-027-2.gat,103,28,0 shop Magic Undead Shop 304,501
+027-2.gat,93,22,0 shop Shopkeeper 302,586:1000,524:1600,544:10000,632:10000,528:1000,735:1
+027-2.gat,56,99,0 shop Magic Undead Shop 304,501:50
027-2.gat,106,22,0 shop Chief Barman 309,539:175,567:500,568:500
// Inn
diff --git a/npc/027-2_Caretakers_House/innkeeper.txt b/npc/027-2_Caretakers_House/innkeeper.txt
new file mode 100644
index 00000000..51bbf296
--- /dev/null
+++ b/npc/027-2_Caretakers_House/innkeeper.txt
@@ -0,0 +1,231 @@
+027-2.gat,104,39,0 script Reid's Ghost 315,{
+
+ set @Graveyard_Inn_MASK, NIBBLE_0_MASK;
+ set @Graveyard_Inn_SHIFT, NIBBLE_0_SHIFT;
+
+ set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT);
+
+ //TODO: determine correct nibble
+ set @Graveyard_Inn_Kid_MASK, NIBBLE_2_MASK;
+ set @Graveyard_Inn_Kid_SHIFT, NIBBLE_2_SHIFT;
+
+ set @kidstate, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Kid_MASK) >> @Graveyard_Inn_Kid_SHIFT);
+
+ //TODO: determine sane values
+ set @YETI_TEAR_AMOUNT, 10;
+ set @YETI_TEAR_EXP, 60000; // maybe about 1% for a level 80?
+
+ if (@state == 6) goto L_Read_Diary;
+ if ((@state == 5) && (sex == 1) && (@kidstate >= 5)) goto L_Helped_Kid; //TODO: determine right value of kidstate
+ if (@state == 4) goto L_Ask_Life;
+ if (@state == 3) goto L_Bring_Tears;
+ if (@state == 2) goto L_Offer_Help2;
+ if (@state == 1) goto L_After_Welcome;
+
+ mes "You see a dead women lying on the floor, something that appears to be her ghost floating above her dead body.";
+ next;
+ mes "[Ghost]";
+ mes "\"He- I - What - Oh -\"";
+ mes "The womens ghost seems to be confused.";
+ next;
+ mes "[Ghost]";
+ mes "Oh, I'm sorry. Welcome to Reid's Inn. My name is Reid, I am the innkeeper of this wonderful place of leisure. Please enjoy your visit here!";
+ next;
+
+ set @state, 1;
+ callsub S_Update_Mask;
+
+ goto L_Ask_Dead;
+
+L_After_Welcome:
+ mes "[Reid's Ghost]";
+ mes "\"Please enjoy yourself!\"";
+ if (baselevel < 85) goto L_Close;
+
+L_Ask_Dead:
+ if (baselevel < 85) goto L_Close;
+ menu
+ "What happened to you?", - ,
+ "Thank you, I'll surely enjoy my visit.", L_Close;
+
+ mes "[Reid's Ghost]";
+ mes "\"What happened to me? What do you mean?\"";
+ //TODO: add more possible answers
+ menu
+ "Ahm, you don't look very well - actually, you look dead.",-,
+ "You don't seem to be in the best condition.",-,
+ "You are dead!",-;
+
+ mes "Reid looks down at her body and turns even more pale, if this is possible.";
+ next;
+ mes "[Reid's Ghost]";
+ mes "\"OH?\"";
+ next;
+
+ menu
+ "I'm sorry. I didn't know you weren't aware of that.",-,
+ "Yes - do you understand my question now?",-,
+ "Shall I help you to find out what happened with you?", L_Offer_Help1;
+
+ mes "[Reid's Ghost]";
+ mes "\"I'm dead? But why? And why am I still here?\"";
+ next;
+ mes "She stares into space and doesn't seem to notice you anymore.";
+ set @state, 2;
+ callsub S_Update_Mask;
+ close;
+
+L_Offer_Help2:
+ mes "Reid's Ghost is still staring into space.";
+ menu
+ "Shall I help you to find out what happened with you?", -,
+ "I don't want to bother you.", L_Close;
+
+L_Offer_Help1:
+ mes "\"I.. I don't know you. Why should you help me?\"";
+ next;
+ mes "\"Bring me a proof, you are serious. My life seems to have ended sadly, bring me something which represents the sadness I am feeling!\"";
+
+ set @state, 3;
+ callsub S_Update_Mask;
+ close;
+
+L_Bring_Tears:
+ mes "[Reid's Ghost]";
+ mes "\"Did you find something, which can represent my sadness?\"";
+ next;
+
+ if (countitem("FrozenYetiTear") > 0)
+ menu
+ "I found this frozen tear to represent your sadness.", L_Check_Tears,
+ "I'm still searching.", L_Close;
+
+ mes "\"You didn't? It seems, you're not serious with your offer to help me.\"";
+ close;
+
+L_Check_Tears:
+ if (countitem("FrozenYetiTear") < @YETI_TEAR_AMOUNT)
+ goto L_Not_Enough_Tears;
+ delitem "FrozenYetiTear", @YETI_TEAR_AMOUNT;
+
+ set @state, 4;
+ callsub S_Update_Mask;
+
+ mes "[Reid's Ghost]";
+ mes "\"This tears.. how they shimmer in the candle light. Yes, it seems you are serious with your offer.\"";
+ next;
+L_Ask_Life:
+ mes "[Reid's Ghost]";
+ mes "\"How do you plan to help me?\"";
+ next;
+
+ menu
+ "Please tell me about your life. Maybe this gives a clue what happened.",-,
+ "I need to think about that.", L_Close;
+
+ mes "[Reid's Ghost]";
+ mes "\"About my life? Well ok.\"";
+ next;
+ mes "\"I'm the owner of this inn. I inherited it from my parents, who ran it while I was a child.\"";
+ next;
+ mes "\"My father - he was a very joyful man. But one day, I was just ten years old, he had an accident while carrying a barrel of beer.\"";
+ next;
+ mes "\"The barrel smashed his legs and he wasn't able to walk anymore. He got very desperate about that and started to drink.\"";
+ next;
+ mes "\"My mother and me didn't know, how to cheer him up, he wouldn't have listened to us. My mother tried her best to keep the inn running and I tried my best to help her, even if I was a still a child.\"";
+ next;
+ mes "\"But with the years going on, my mother lost her will to go on and the inn went down the drain slowly. Everything was dirty and we had less and less patrons.\"";
+ next;
+ mes "\"I don't blame my mother. She loved my father so much, she couldn't stand to see, what was happening to him. When he died because of his drinking, she totally lost her will to live and just lay in bed and followed him.\"";
+ next;
+ mes "Reid seems to be tortured by her memories.";
+ next;
+ mes "\"That was very hard time.\"";
+
+ menu
+ "Yes, yes, but that what about your life shortly before you died?",-,
+ "I can imagine. I'm very sorry for you",-;
+
+ mes "She doesn't seem to pay much attention on what you say.";
+ next;
+ mes "\"But Hamond, my friend since I was a child, helped me in that bad times. We built up the inn again and we - we married.\"";
+ next;
+ mes "\"He was so kind and my only light in that dark times. And our little son Aldred gave me back my joy in life.\"";
+ next;
+ mes "\"Everything was peaceful and I thought, I had found my place. But one day -\"";
+ next;
+
+ set @state, 5;
+ callsub S_Update_Mask;
+
+ if (Sex == 0) goto L_Woman;
+ //TODO: think, if gender change should be checked
+ //TODO: determine correct value for kidstate
+ if ((Sex == 1) && (@kidstate < 5)) goto L_Man;
+
+ mes "\"What I'm going to tell you is very personal, but you showed me you're a sensitive person with helping my child.\"";
+
+L_Lovestory:
+ mes "[Reid's Ghost]";
+ mes "\"It began as a completely normal day. We were taking care of our overnight guests and prepared the inn for the evenings rush.\"";
+ next;
+ mes "\"But that day, a very special patron checked in. His name was Savaric, and he was a student of magic. He came from far away to check some rumours about a legendary mana seed.\"";
+ next;
+ mes "Reid's ghost has a completely enchanted look on her face.";
+ next;
+ mes "\"He really made me feel alive - when he was near, I was feeling like I never felt before. I started to search for reasons to be near him - I told myself that I just like him because he was interesting, coming from so far away and being a mage.\"";
+ next;
+ mes "\"But I was lying to myself.\"";
+ next;
+ mes "\"I - oh, it is really hard to talk about this. Maybe - yes, I could let you read my diary. I'll give you the key to our rooms.\"";
+ next;
+ mes "She pulls a key out of her pocket as transparent as she is herself. As you try to grab it, your fingers go just through it.";
+ next;
+ mes "[Reid's Ghost]";
+ mes "\"I keep forgetting! Please take the key out of my pocket.\"";
+ mes "She is pointing at her dead body with a sad look on her face. You take the key.";
+ next;
+ mes "[Reid's Ghost]";
+ mes "\"Me and my husbands rooms are at the very end of the corridor upstairs. You will find my dairy in the bookshelf, hidden behind a book with poems. Hamond didn't like poems.\"";
+ next;
+ mes "\"Please go and read it.\"";
+
+ set @state, 6;
+ callsub S_Update_Mask;
+ close;
+
+L_Read_Diary:
+ //TODO
+ close;
+
+L_Not_Enough_Tears:
+ mes "[Reid's Ghost]";
+ mes "\"This is beautiful! But this are not enough to represent my sadness.\"";
+ close;
+
+L_Man:
+ mes "[Reid's Ghost]";
+ mes "\"What I am about to tell is very personal. You're a man - I'm not sure, if I want to tell you. Maybe you kann show me you are sensitive someway.\"";
+ close;
+
+L_Woman:
+ mes "[Reid's Ghost]";
+ mes "\"I'm going to tell you something very personal. But you are a woman like me - I'm sure you will understand.\"";
+ next;
+ goto L_Lovestory;
+
+L_Helped_Kid:
+ mes "[Reid's Ghost]";
+ mes "\"You showed me you're a sensitive person with helping my child.\"";
+ next;
+ goto L_Lovestory;
+
+L_Close:
+ close;
+
+S_Update_Mask:
+ set QUEST_Graveyard_Inn,
+ (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK))
+ | (@state << @Graveyard_Inn_SHIFT);
+ return;
+}
diff --git a/npc/027-2_Caretakers_House/testnpcs.txt b/npc/027-2_Caretakers_House/testnpcs.txt
index 62f8c956..a64e80b9 100755
--- a/npc/027-2_Caretakers_House/testnpcs.txt
+++ b/npc/027-2_Caretakers_House/testnpcs.txt
@@ -25,39 +25,62 @@
end;
}
-027-2.gat,74,21,0 script Chef's helper 306,{
+027-2.gat,75,29,0 script Archibald 306,{
end;
}
027-2.gat,77,40,0 script Drunker 308,{
+ set @drunker, rand(4);
+ if (@drunker == 0) goto L_0;
+ if (@drunker == 1) goto L_1;
+ if (@drunker == 2) goto L_2;
+ if (@drunker == 3) goto L_3;
end;
+L_0:
+ mes "[Ghost Drunker]";
+ mes "\"zzzZZZzzz...\"";
+ close;
+L_1:
+ mes "[Ghost Drunker]";
+ mes "\"Ish that a Zzombee?...\"";
+ close;
+L_2:
+ mes "[Ghost Drunker]";
+ mes "\"Auuu... Hiccup... Don't byte mee... \"";
+ close;
+L_3:
+ mes "[Ghost Drunker]";
+ mes "\"Moar Bearr...Pleash!\"";
+ close;
}
027-2.gat,103,22,0 script Barman 310,{
end;
}
-027-2.gat,68,77,0 script SwordGuy 311,{
+027-2.gat,70,77,0 script Cerhan 311,{
end;
}
027-2.gat,110,23,0 script Ghost Drunker 312,{
- end;
+ mes "[Ghost Drunker]";
+ mes "\"Ohh... My head is killing me! I have to stop drinking too much or I will lose my job... But being a waiter... oh I can't resist a drink or two!\"";
+ close;
}
-027-2.gat,107,29,0 script Golbenez 307,{
+027-2.gat,39,91,0 script Golbenez 307,{
end;
}
-027-2.gat,39,91,0 script Crying Child 314,{
+027-2.gat,50,92,0 script Crying Child 314,{
end;
}
-027-2.gat,91,22,0 script Innkeeper's Ghost 315,{
+027-2.gat,104,39,0 script Innkeeper's Ghost 315,{
end;
}
-027-2.gat,58,90,0 script Evil Guard 316,{
+027-2.gat,100,43,0 script Evil Guard 316,{
end;
}
@@ -65,10 +88,10 @@
end;
}
-027-2.gat,29,99,0 script Headless Lover 318,{
+027-2.gat,24,77,0 script Headless Man 318,{
end;
}
-027-2.gat,86,30,0 script Lantern Man 319,{
+027-2.gat,22,84,0 script Lantern Man 319,{
end;
}