diff options
author | wushin <pasekei@gmail.com> | 2015-05-19 12:35:46 -0500 |
---|---|---|
committer | wushin <pasekei@gmail.com> | 2015-09-06 13:13:30 -0500 |
commit | a5816766ed870dd55170a4b66a75a1907021e421 (patch) | |
tree | 12288e1561914b5268a2ccd6801cc4aa4f0e4dd8 /world/map/npc/002-2 | |
parent | f86e961ffbf9e1467279d3086a48c47be2a5a86f (diff) | |
download | serverdata-a5816766ed870dd55170a4b66a75a1907021e421.tar.gz serverdata-a5816766ed870dd55170a4b66a75a1907021e421.tar.bz2 serverdata-a5816766ed870dd55170a4b66a75a1907021e421.tar.xz serverdata-a5816766ed870dd55170a4b66a75a1907021e421.zip |
Some of the Tonori Area Quests
Diffstat (limited to 'world/map/npc/002-2')
-rw-r--r-- | world/map/npc/002-2/casino.txt | 7 | ||||
-rw-r--r-- | world/map/npc/002-2/imec.txt | 25 | ||||
-rw-r--r-- | world/map/npc/002-2/kps.txt | 34 | ||||
-rw-r--r-- | world/map/npc/002-2/kylian.txt | 87 | ||||
-rw-r--r-- | world/map/npc/002-2/latoy.txt | 8 |
5 files changed, 51 insertions, 110 deletions
diff --git a/world/map/npc/002-2/casino.txt b/world/map/npc/002-2/casino.txt index b99f6911..5e3999ac 100644 --- a/world/map/npc/002-2/casino.txt +++ b/world/map/npc/002-2/casino.txt @@ -1,17 +1,12 @@ -// Casino - -// takes part in quest given by 021-2/kylian.txt 002-2,79,68,0|script|#CasinoEntrance|32767,13,0 { set QUEST_NorthTulimshar, QUEST_NorthTulimshar | $@knowCasinoNT; - set @kylian, ((QUEST_NorthTulimshar & NIBBLE_5_MASK) >> NIBBLE_5_SHIFT); - if (@kylian != 6) + if (QL_KYLIAN != 6) goto L_End; message strcharinfo(0), "You wonder if Kylian would be interested in visiting the Casino."; goto L_End; L_End: - set @kylian, 0; end; } diff --git a/world/map/npc/002-2/imec.txt b/world/map/npc/002-2/imec.txt index b8f63e4d..6bb00065 100644 --- a/world/map/npc/002-2/imec.txt +++ b/world/map/npc/002-2/imec.txt @@ -1,17 +1,12 @@ -// Merchant got his shop shot down due to selling poison and asks the player for some errand -// after finishing this, daily quest with scorpion stingers -// Using bit 8 and 9 of QUEST_NorthTulimshar (first half of nibble 2) -// author: Jenalya 002-2,36,75,0|script|Imec|162 { - set @state, ((QUEST_NorthTulimshar & TWOBIT_4_MASK) >> TWOBIT_4_SHIFT); set @EXP, 90; set @money, 500; set @lvl, 10; - if (@state >= 3) goto L_Stingers; - if (@state == 2) goto L_Return; - if (@state == 1) goto L_Bring; + if (QL_IMEC >= 3) goto L_Stingers; + if (QL_IMEC == 2) goto L_Return; + if (QL_IMEC == 1) goto L_Bring; mes "[Imec]"; mes "%%9"; @@ -40,8 +35,7 @@ L_Next: mes "[Imec]"; mes "\"Great! Here's the appeal.\""; mes "Imec gives you a sealed letter, which you store in a safe pocket outside of your inventory."; - set @state, 1; - callsub S_Update_Mask; + set QL_IMEC, 1; goto L_Close; L_Explain: @@ -53,7 +47,7 @@ L_Explain: if (BaseLevel < WEDDING_MIN_LEVEL) mes "\"Once you're older, you can even get married there.\""; next; mes "\"So... will you submit my appeal for me?\""; - if (@state == 0) + if (QL_IMEC == 0) goto L_Offer; goto L_Close; @@ -82,8 +76,7 @@ L_Next1: mes "\"What? Oh, right. Here, have this.\""; getexp @EXP, 0; set Zeny, Zeny + @money; - set @state, 3; - callsub S_Update_Mask; + set QL_IMEC, 3; next; if (BaseLevel >= @lvl) goto L_Transition_Stingers; @@ -111,8 +104,6 @@ L_Stingers: L_Close: set @money, 0; - set @state, 0; - set @dq_level, 0; set @dq_cost, 0; set @dq_count, 0; @@ -122,8 +113,4 @@ L_Close: set @dq_exp, 0; set @dq_return, 0; close; - -S_Update_Mask: - set QUEST_NorthTulimshar, (QUEST_NorthTulimshar & ~(TWOBIT_4_MASK)) | (@state << TWOBIT_4_SHIFT); - return; } diff --git a/world/map/npc/002-2/kps.txt b/world/map/npc/002-2/kps.txt index 73b40466..176b7ba8 100644 --- a/world/map/npc/002-2/kps.txt +++ b/world/map/npc/002-2/kps.txt @@ -1,25 +1,18 @@ -// KPS (Killian Parcel Service) -// Author: Wushin -// Kylian_Timer denotes current quest time & holds last completed. -// reuse the 4 bits -// To Mark 4 Different NPCs. -// setarray $@kps_npc_bits, $@knowYanisNT, $@knowLatoyNT, $@knowWeellosNT, $@knowCasinoNT; 002-2,120,89,0|script|KPS Manager|191 { - set @state, ((QUEST_NorthTulimshar & NIBBLE_5_MASK) >> NIBBLE_5_SHIFT); set @run, ((QUEST_NorthTulimshar & TWOBIT_8_MASK) >> TWOBIT_8_SHIFT); set @run_cnt, ((QUEST_NorthTulimshar & TWOBIT_9_MASK) >> TWOBIT_9_SHIFT); - if (@state == 15) + if (QL_KYLIAN == 15) goto L_SeeKylian; - if (@state == 14) + if (QL_KYLIAN == 14) goto L_RunComplete; - if (@state == 13) + if (QL_KYLIAN == 13) goto L_RunStarted; - if (@state == 12) + if (QL_KYLIAN == 12) goto L_JobSelect; - if (@state == 11) + if (QL_KYLIAN == 11) goto L_AcceptJob; - if (@state == 10) + if (QL_KYLIAN == 10) goto L_OfferJob; goto L_Default; @@ -41,8 +34,7 @@ L_OfferJob: "Nothing.", L_Close; L_MyName: - set @state, 11; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 11; mes "\"Ah. Kylian said you would be dropping by.\""; next; mes "\"I assume you are looking for some work?\""; @@ -62,15 +54,13 @@ L_StartJob: callfunc "SetKylianRun"; set @run_cnt, 0; callfunc "SetKylianRunCnt"; - set @state, 12; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 12; goto L_JobSelect; L_StartJobAgain: set @run, 0; callfunc "SetKylianRun"; - set @state, 12; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 12; goto L_JobSelect; L_JobSelect: @@ -93,8 +83,7 @@ L_JobInfo: "I need a break.", L_Close; L_StartRun: - set @state, 13; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 13; set @run, @rand_quest; callfunc "SetKylianRun"; set Kylian_Timer, gettimetick(2); @@ -128,8 +117,7 @@ L_KylianReward: set Zeny, Zeny + $@delivery_money; getexp ($@delivery_exp_mod * BaseLevel), 0; callfunc "SetKylianRun"; - set @state, 15; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 15; mes "[" + $@delivery_money + " money]"; mes "[" + ($@delivery_exp_mod * BaseLevel) + " experience points]"; next; diff --git a/world/map/npc/002-2/kylian.txt b/world/map/npc/002-2/kylian.txt index dcd94548..33df4ba7 100644 --- a/world/map/npc/002-2/kylian.txt +++ b/world/map/npc/002-2/kylian.txt @@ -66,8 +66,6 @@ OnInit: } 002-2,43,101,0|script|Kylian|193 { - set @state, ((QUEST_NorthTulimshar & NIBBLE_5_MASK) >> NIBBLE_5_SHIFT); - set @acorn_amount, 12; set @suitcase_money, 100; set @suitcase_exp, 50; @@ -82,22 +80,20 @@ OnInit: set @fun_money, 50; set @fun_exp, 20; - set @fieri, ((QUEST_SouthTulimshar & NIBBLE_6_MASK) >> NIBBLE_6_SHIFT); - - if (@state == 15) goto L_Done; - if (@state >= 11) goto L_Helping; - if (@state == 10) goto L_OfferedJob; - if (@state == 9) goto L_Shop; + if (QL_KYLIAN == 15) goto L_Done; + if (QL_KYLIAN >= 11) goto L_Helping; + if (QL_KYLIAN == 10) goto L_OfferedJob; + if (QL_KYLIAN == 9) goto L_Shop; if (@KylianNTCasino) goto L_CasinoDone; - if (@state == 8) goto L_DesertHat; - if (@state == 7) goto L_Clothes; + if (QL_KYLIAN == 8) goto L_DesertHat; + if (QL_KYLIAN == 7) goto L_Clothes; if (@KylianNTSightSeeing) goto L_SightSeeingDone; - if (@state == 6) goto L_Casino; - if (@state == 5) goto L_Food; + if (QL_KYLIAN == 6) goto L_Casino; + if (QL_KYLIAN == 5) goto L_Food; if (@KylianNTLicense) goto L_LicenseDone; - if (@state == 4) goto L_SightSeeing; - if (@state == 3) goto L_ShopLicense; - if (@state >= 1) goto L_Suitcase; + if (QL_KYLIAN == 4) goto L_SightSeeing; + if (QL_KYLIAN == 3) goto L_ShopLicense; + if (QL_KYLIAN >= 1) goto L_Suitcase; mes "[Kylian]"; mes "\"Ah! Are you the room service? I've some requests.\""; @@ -117,14 +113,13 @@ L_Luggage: mes "[Kylian]"; mes "\"I need you to get my luggage from the docks. Just show this paper to the sailor who's watching the luggage.\""; mes "He gives you his ticket, which you promptly store in a safe pocket outside of your inventory."; - set @state, 1; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 1; goto L_Close; -L_Suitcase: // @state >= 1, but below 3 +L_Suitcase: // QL_KYLIAN >= 1, but below 3 mes "[Kylian]"; mes "\"Did you get my luggage from the docks?\""; - if (@state != 2) + if (QL_KYLIAN != 2) goto L_Close; menu "Here it is.",L_Continue, @@ -137,8 +132,7 @@ L_Continue: set Zeny, Zeny + @suitcase_money; getitem "Acorn", @acorn_amount; getexp @suitcase_exp, 0; - set @state, 3; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 3; next; mes "[Kylian]"; mes "\"Ah! Very good. I have some urgent paperwork that I've been needing to attend to.\""; @@ -151,7 +145,7 @@ L_Continue: next; goto L_ShopLicense; -L_ShopLicense: // @state == 3 +L_ShopLicense: // QL_KYLIAN == 3 mes "[Kylian]"; mes "\"I'm a salesman and came to Tulimshar because I'm thinking about establishing a shop here.\""; mes "\"While I'm going through my papers, could you find out whom I have to talk to about opening up a shop in this city?\""; @@ -164,8 +158,7 @@ L_ShopLicense: // @state == 3 L_GovBuild: set Zeny, Zeny + @license_money; getexp @license_exp, 0; - set @state, 4; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 4; set @KylianNTLicense, 1; mes "[Kylian]"; mes "\"Ah... excellent! That's very helpful. Could you tell me how to get to that building?\""; @@ -178,7 +171,7 @@ L_LicenseDone: // the player didn't log out yet after telling about Yanis mes "\"I need to prepare my papers now. I might have some more questions later on though.\""; goto L_Close; -L_SightSeeing: // @state == 4 and logged out sometime between getting to that state and now +L_SightSeeing: // QL_KYLIAN == 4 and logged out sometime between getting to that state and now mes "[Kylian]"; mes "\"You came here at just the right moment! I have finished my business affairs, and I think I should use my time here to learn a bit about the culture in the area. Can you tell me if there are any historical places or landmarks to visit?\""; if (!(QUEST_NorthTulimshar & $@knowWeellosNT)) @@ -190,18 +183,17 @@ L_SightSeeing: // @state == 4 and logged out sometime between getting to that st L_HistBuild: set Zeny, Zeny + @sightseeing_money; getexp @sightseeing_exp, 0; - set @state, 5; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 5; mes "[Kylian]"; mes "\"This sounds interesting. Please tell me the way.\""; mes "You tell him how to get to the historic building."; next; goto L_Food; -L_Food: // @state == 5 +L_Food: // QL_KYLIAN == 5 mes "[Kylian]"; mes "\"While I'm out, I could also get something to eat. Do you have any suggestions for local cuisine?\""; - if (@fieri < 4) // didn't yet help Fieri make Tonori Delight + if (QL_FIERI < 4) // didn't yet help Fieri make Tonori Delight goto L_Close; menu "A man named Fieri makes a tasty Tonori Delight over at the castle.",L_SoupBer, @@ -210,8 +202,7 @@ L_Food: // @state == 5 L_SoupBer: set Zeny, Zeny + @food_money; getexp @food_exp, 0; - set @state, 6; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 6; set @KylianNTSightSeeing, 1; goto L_SightSeeingDone; @@ -220,7 +211,7 @@ L_SightSeeingDone: mes "\"I'm going to see the historic building you told me about and try the local food at the castle. Thank you for the suggestions.\""; goto L_Close; -L_Casino: // @state == 6 and logged out sometime between getting to that state and now +L_Casino: // QL_KYLIAN == 6 and logged out sometime between getting to that state and now mes "[Kylian]"; mes "\"Hello. I just came back from my sight-seeing tour, and this Tonori Delight really was delicious. I wonder what it's made of...\""; next; @@ -234,15 +225,14 @@ L_Casino: // @state == 6 and logged out sometime between getting to that state a L_CasinoFound: set Zeny, Zeny + @casino_money; getexp @casino_exp, 0; - set @state, 7; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 7; mes "[Kylian]"; mes "\"Oh! There's a casino in this city? That's wonderful! Where can I find it?\""; mes "You explain how to get to the casino."; next; goto L_Clothes; -L_Clothes: // @state == 7 +L_Clothes: // QL_KYLIAN == 7 mes "[Kylian]"; mes "\"I should acquire proper clothing before I go to the casino tonight. Do you know a reputable shop where high-quality clothing is sold?\""; if (!(QUEST_NorthTulimshar & $@knowLatoyNT)) @@ -254,8 +244,7 @@ L_Clothes: // @state == 7 L_HarborDistrict: set Zeny, Zeny + @clothes_money; getexp @clothes_exp, 0; - set @state, 8; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 8; set @KylianNTCasino, 1; mes "You explain about Latoy and the quality of his shop."; next; @@ -268,7 +257,7 @@ L_CasinoDone: mes "\"I'm looking forward to going to the casino tonight. See me tomorrow, and I might have more requests.\""; goto L_Close; -L_DesertHat: // @state == 8 +L_DesertHat: // QL_KYLIAN == 8 mes "Kylian looks a bit tired."; next; mes "[Kylian]"; @@ -279,8 +268,7 @@ L_DesertHat: // @state == 8 if ((checkweight("DesertHat", 1) == 0) || (@inventorylist_count == 100)) goto L_Inventory; getitem "DesertHat", 1; - set @state, 9; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 9; next; goto L_Close; @@ -291,8 +279,7 @@ L_Shop: next; mes "\"If you are looking for work, go see the shop keeper I have working for me there.\""; mes "\"Mention your name, and he will know I sent you.\""; - set @state, 10; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 10; goto L_Close; L_OfferedJob: @@ -319,8 +306,7 @@ L_Done: getexp ($@delivery_exp_mod * BaseLevel), 0; set @run_cnt, 0; callfunc "SetKylianRunCnt"; - set @state, 12; - callfunc "SetKylianQuest"; + set QL_KYLIAN, 12; mes "[" + $@delivery_money + " money]"; mes "[" + ($@delivery_exp_mod * BaseLevel) + " experience points]"; next; @@ -351,20 +337,12 @@ L_Close: set @fun_money, 0; set @fun_exp, 0; set @inventorylist_count, 0; - set @fieri, 0; // NOT set to zero: @KylianNTLicense, @KylianNTSightSeeing and @KylianNTCasino // those are used to check if the player logged out in the meanwhile close; } -function|script|SetKylianQuest -{ - set QUEST_NorthTulimshar, (QUEST_NorthTulimshar & ~(NIBBLE_5_MASK)) | (@state << NIBBLE_5_SHIFT); - return; -} function|script|KylianDebug { - set @state, ((QUEST_NorthTulimshar & NIBBLE_5_MASK) >> NIBBLE_5_SHIFT); - set @fieri, ((QUEST_SouthTulimshar & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT); set @run, ((QUEST_NorthTulimshar & TWOBIT_8_MASK) >> TWOBIT_8_SHIFT); set @run_cnt, ((QUEST_NorthTulimshar & TWOBIT_9_MASK) >> TWOBIT_9_SHIFT); goto L_Menu; @@ -379,7 +357,7 @@ L_Menu: "Close.", L_Close; L_ShowState: - mes "State: " + @state; + mes "State: " + QL_KYLIAN; mes "Timer: " + Kylian_Timer; mes "Time: " + gettimetick(2); mes "Elapsed Time: " + (gettimetick(2) - Kylian_Timer); @@ -391,8 +369,7 @@ L_ShowState: L_SetState: mes "\"Input the quest state desired.\""; - input @state; - callfunc "SetKylianQuest"; + input QL_KYLIAN; goto L_Menu; L_WorkTimer: diff --git a/world/map/npc/002-2/latoy.txt b/world/map/npc/002-2/latoy.txt index bb818bc1..90dfe9bb 100644 --- a/world/map/npc/002-2/latoy.txt +++ b/world/map/npc/002-2/latoy.txt @@ -1,16 +1,11 @@ -// A snobby store that won't sell to the player -// takes part in quest given by 021-2/kylian.txt - 002-2,86,93,0|shop|#LatoyShop|32767,SilkHeadband:*4,SilkGloves:*4,SilkPants:*4,SilkRobe:*4 - 002-2,86,93,0|script|Latoy|106 { set QUEST_NorthTulimshar, QUEST_NorthTulimshar | $@knowLatoyNT; - set @kylian, ((QUEST_NorthTulimshar & NIBBLE_5_MASK) >> NIBBLE_5_SHIFT); mes "[Latoy]"; mes "\"Is there something I can help you with?\""; - if (@kylian != 7) + if (QL_KYLIAN != 7) goto L_Shop; next; mes "Maybe this is the kind of shop Kylian is looking for?"; @@ -28,6 +23,5 @@ L_LatoyShop: shop "#LatoyShop"; L_Close: - set @kylian, 0; close; } |