1 | //===== eAthena Script ======================================= |
---|
2 | //= Treasure Hunter Script |
---|
3 | //===== Converted By ========================================= |
---|
4 | //= Fredzilla |
---|
5 | //= Original |
---|
6 | ////////////////////////////////////////////////////////////// |
---|
7 | // Treasure Hunter Quests // |
---|
8 | // By: Ezekial // |
---|
9 | // for the use on nRO run by Newbe5 // |
---|
10 | // revised By Warlock // |
---|
11 | ////////////////////////////////////////////////////////////// |
---|
12 | //===== Version ============================================== |
---|
13 | //= 1.0 - Straight conversion of Aegis NPC file |
---|
14 | //===== Compatible With ====================================== |
---|
15 | //= eAthena 1.0 |
---|
16 | //===== Description ========================================== |
---|
17 | //= Start for Treasure hunter quests |
---|
18 | //===== Comments ============================================= |
---|
19 | //= Event_THQS - Used to check if you have already registered |
---|
20 | //= #Treasure_Token - used to keep track of tokens |
---|
21 | //============================================================ |
---|
22 | |
---|
23 | |
---|
24 | yuno_in01,124,164,6 script Guild Leader 108,{ |
---|
25 | mes "[Keegan]"; |
---|
26 | mes "What brings you here? Have something to say?"; |
---|
27 | next; |
---|
28 | menu "I want to be a Treasure Hunter",-,"Take a New Quest.",N_NQuest,"Take me to the Official Shop.",N_OShop,"Nevermind.",N_NVM; |
---|
29 | if(Event_THQS==1) goto N_AlreadyReg; |
---|
30 | mes "[Keegan]"; |
---|
31 | mes "Well "+strcharinfo(0)+" if you want to be a Treasure Hunter first you must."; |
---|
32 | mes " "; |
---|
33 | mes "^FF00001.^000000 You well be changed ^FF000025,000z^000000 for basic training and your proof of being a member."; |
---|
34 | mes " "; |
---|
35 | mes "Umm... Well that is all you need to do. Hahaha."; |
---|
36 | next; |
---|
37 | menu "Pay ^FF000025,000z^000000.",-,"Thats way to high!!",N_HighPrice; |
---|
38 | if (zeny < 25000) goto N_NoZeny; |
---|
39 | set Zeny,Zeny-25000; |
---|
40 | //getitem 7950, 1; |
---|
41 | //getitem 7951, 1; |
---|
42 | set Event_THQS,1; |
---|
43 | mes "[Keegan]"; |
---|
44 | mes "Congratulations!"; |
---|
45 | emotion 46; |
---|
46 | next; |
---|
47 | mes "[Keegan]"; |
---|
48 | mes "Welcome to the Guild of Treasure Hunters."; |
---|
49 | mes "You may now take a Treasure Hunting Quest as you see fit."; |
---|
50 | close; |
---|
51 | N_NoZeny: |
---|
52 | mes "[Keegan]"; |
---|
53 | mes "Hmmm you don't seem to have ^FF000025,000z^000000 "+strcharinfo(0)+". Please come back when you do."; |
---|
54 | close; |
---|
55 | N_HighPrice: |
---|
56 | mes "[Keegan]"; |
---|
57 | mes "Well if you can't afford a small ^FF000025,000z^000000 you shouldent be a Treasure Hunter yet."; |
---|
58 | close; |
---|
59 | N_AlreadyReg: |
---|
60 | mes "[Keegan]"; |
---|
61 | mes "Ha ha ha...you are already a member."; |
---|
62 | close; |
---|
63 | N_NQuest: |
---|
64 | if (Event_THQS!=1) goto A_NeedReg; |
---|
65 | mes "[Keegan]"; |
---|
66 | mes "Well "+strcharinfo(0)+" if you wish to take a quest go talk to the fellow Treasure Hunter in the other room there."; |
---|
67 | close; |
---|
68 | A_NeedReg: |
---|
69 | mes "[Keegan]"; |
---|
70 | mes "Sorry you must be a member of the Treasure Hunter Guild if you wish to take a quest."; |
---|
71 | mes " "; |
---|
72 | mes "Also now that you are a member feel free to use our shops anytime you wish.They are all located on this floor."; |
---|
73 | mes " "; |
---|
74 | mes "We also have another shop for members only,in which we use little metal diamonds called Treasure Hunter Tokens to exchange for rare goods."; |
---|
75 | mes " "; |
---|
76 | mes "You will even have access to our exclusive personal Dungeon."; |
---|
77 | close; |
---|
78 | N_OShop: |
---|
79 | if (Event_THQS!=1) goto N_NeedMem; |
---|
80 | mes "[Keegan]"; |
---|
81 | mes "Yes "+strcharinfo(0)+" I will take you to our shop right away!"; |
---|
82 | next; |
---|
83 | warp "prt_in",166,171; |
---|
84 | close; |
---|
85 | end; |
---|
86 | N_NeedMem: |
---|
87 | mes "[Keegan]"; |
---|
88 | mes "Im sorry only members may visit our private shop."; |
---|
89 | close; |
---|
90 | N_NVM: |
---|
91 | mes "[Keegan]"; |
---|
92 | mes "Alright come back when you have the free time to spare."; |
---|
93 | close; |
---|
94 | |
---|
95 | } |
---|