[1] | 1 | //===== eAthena Script ======================================= |
---|
| 2 | //= Event King Items |
---|
| 3 | //===== By: ================================================== |
---|
| 4 | //= $ephiroth |
---|
| 5 | //===== Current Version: ===================================== |
---|
| 6 | //= 1.0 |
---|
| 7 | //===== Compatible With: ===================================== |
---|
| 8 | //= eAthena Version |
---|
| 9 | //===== Description: ========================================= |
---|
| 10 | //= Grand Circlet Quest combined with Excalibur Quest. |
---|
| 11 | //= Converted to eAthena format from Fusion. |
---|
| 12 | //= 2006/09/27: 1.0 Release and fully working. [$ephiroth] |
---|
| 13 | //============================================================ |
---|
| 14 | |
---|
| 15 | prt_castle,80,170,4 script King of Prontera 108,{ |
---|
| 16 | set @npcname$,"[King of Prontera]"; |
---|
| 17 | |
---|
| 18 | mes @npcname$; |
---|
| 19 | mes "Hello can you help me?"; |
---|
| 20 | next; |
---|
| 21 | menu "Sure, what can I do?",L_Sure,"No sorry I'm busy",L_Quit; |
---|
| 22 | |
---|
| 23 | L_Sure: |
---|
| 24 | mes @npcname$; |
---|
| 25 | mes "Thank you."; |
---|
| 26 | mes "Well, my daughter next to me is a little rowdy"; |
---|
| 27 | mes "if you got her these items I'm sure she would calm down."; |
---|
| 28 | mes "If you bring me these items I'll give you my crown or my sword"; |
---|
| 29 | mes "Both are very special."; |
---|
| 30 | next; |
---|
| 31 | menu "Ok what do you need?",L_Req,"I have the items",L_Have,"Forget it",L_Quit; |
---|
| 32 | |
---|
| 33 | L_Req: |
---|
| 34 | mes @npcname$; |
---|
| 35 | mes "If you could get me:"; |
---|
| 36 | mes "^00B6FF30 Chonchon doll^000000"; |
---|
| 37 | mes "^D5A50050 Poring doll^000000"; |
---|
| 38 | mes "^0080FF20 Yoyo doll^000000"; |
---|
| 39 | mes "^CC66331 3carat diamond^000000"; |
---|
| 40 | mes "^3131FF20 Illusion Flowers^000000"; |
---|
| 41 | mes "^AA00AA20 Singing Flowers^000000"; |
---|
| 42 | mes "I'll give you my crown."; |
---|
| 43 | next; |
---|
| 44 | mes @npcname$; |
---|
| 45 | mes "If you could get me:"; |
---|
| 46 | mes "^0000881 Angel Band^000000"; |
---|
| 47 | mes "^4422FF1 Heaven Ring^000000"; |
---|
| 48 | mes "^AA00AA1 Emperium^000000"; |
---|
| 49 | mes "I'll give my sword."; |
---|
| 50 | mes "Once you find those, come back to me."; |
---|
| 51 | close; |
---|
| 52 | |
---|
| 53 | L_Have: |
---|
| 54 | mes @npcname$; |
---|
| 55 | mes "What item you want?"; |
---|
| 56 | next; |
---|
| 57 | menu "Crown",L_crown,"Sword",L_sword; |
---|
| 58 | |
---|
| 59 | L_crown: |
---|
| 60 | if(countitem(742)<30) goto L_Error; |
---|
| 61 | if(countitem(741)<50) goto L_Error1; |
---|
| 62 | if(countitem(753)<20) goto L_Error2; |
---|
| 63 | if(countitem(732)<1) goto L_Error3; |
---|
| 64 | if(countitem(710)<20) goto L_Error4; |
---|
| 65 | if(countitem(629)<20) goto L_Error5; |
---|
| 66 | delitem 742,30; |
---|
| 67 | delitem 741,50; |
---|
| 68 | delitem 753,20; |
---|
| 69 | delitem 732,1; |
---|
| 70 | delitem 710,20; |
---|
| 71 | delitem 629,20; |
---|
| 72 | mes @npcname$; |
---|
| 73 | mes "THANK YOU SOO MUCH!!"; |
---|
| 74 | mes "This will surely calm her down."; |
---|
| 75 | mes "Let me just take the items from you."; |
---|
| 76 | next; |
---|
| 77 | mes @npcname$; |
---|
| 78 | mes "As I promised here is my crown."; |
---|
| 79 | getitem 5007,1; |
---|
| 80 | next; |
---|
| 81 | mes @npcname$; |
---|
| 82 | mes "Well, I have to calm her down now."; |
---|
| 83 | mes "Thanks again!"; |
---|
| 84 | close; |
---|
| 85 | L_sword: |
---|
| 86 | if(countitem(2254)<1) goto L_NoAngel; |
---|
| 87 | if(countitem(2282)<1) goto L_NoHeaven; |
---|
| 88 | if(countitem(714)<1) goto L_NoEmp; |
---|
| 89 | delitem 2254,1; |
---|
| 90 | delitem 2282,1; |
---|
| 91 | delitem 714,1; |
---|
| 92 | mes @npcname$; |
---|
| 93 | mes "THANK YOU SOO MUCH!!"; |
---|
| 94 | mes "This will surely calm her down."; |
---|
| 95 | mes "Let me just take the items from you."; |
---|
| 96 | next; |
---|
| 97 | mes @npcname$; |
---|
| 98 | mes "As I promised here is my sword."; |
---|
| 99 | getitem 1137,1; |
---|
| 100 | next; |
---|
| 101 | mes @npcname$; |
---|
| 102 | mes "Well, I have to calm her down now."; |
---|
| 103 | mes "Thanks again!"; |
---|
| 104 | close; |
---|
| 105 | |
---|
| 106 | L_NoAngel: |
---|
| 107 | mes @npcname$; |
---|
| 108 | mes "Sorry but you must have at least one Angel Band."; |
---|
| 109 | mes "Come back after you get ALL the items."; |
---|
| 110 | close; |
---|
| 111 | |
---|
| 112 | L_NoHeaven: |
---|
| 113 | mes @npcname$; |
---|
| 114 | mes "Sorry but you must have at least one Heaven Ring."; |
---|
| 115 | mes "Come back after you get ALL the items."; |
---|
| 116 | close; |
---|
| 117 | |
---|
| 118 | L_NoEmp: |
---|
| 119 | mes @npcname$; |
---|
| 120 | mes "Sorry but you must have at least one Emperium."; |
---|
| 121 | mes "Come back after you get ALL the items."; |
---|
| 122 | close; |
---|
| 123 | |
---|
| 124 | L_Error: |
---|
| 125 | mes @npcname$; |
---|
| 126 | mes "Oh darn, you need 30 Chonchon Dolls."; |
---|
| 127 | close; |
---|
| 128 | |
---|
| 129 | L_Error1: |
---|
| 130 | mes @npcname$; |
---|
| 131 | mes "Oh darn, you need 50 Poring dolls."; |
---|
| 132 | close; |
---|
| 133 | |
---|
| 134 | L_Error2: |
---|
| 135 | mes @npcname$; |
---|
| 136 | mes "Oh darn, you need 20 Yoyo dolls."; |
---|
| 137 | close; |
---|
| 138 | |
---|
| 139 | L_Error3: |
---|
| 140 | mes @npcname$; |
---|
| 141 | mes "Oh darn, you need one 3 Carat Diamond."; |
---|
| 142 | close; |
---|
| 143 | |
---|
| 144 | L_Error4: |
---|
| 145 | mes @npcname$; |
---|
| 146 | mes "Oh darn, you need 20 Illusion Flowers."; |
---|
| 147 | close; |
---|
| 148 | |
---|
| 149 | L_Error5: |
---|
| 150 | mes @npcname$; |
---|
| 151 | mes "Oh darn, you need 20 Singing Flowers."; |
---|
| 152 | close; |
---|
| 153 | |
---|
| 154 | L_Quit: |
---|
| 155 | mes @npcname$; |
---|
| 156 | mes "Ok, that's fine, I'm sure someone else will help."; |
---|
| 157 | close; |
---|
| 158 | } |
---|
| 159 | |
---|
| 160 | prt_castle,84,170,4 script King's Daughter 62,{ |
---|
| 161 | set @npcname$,"[King's Daughter]"; |
---|
| 162 | |
---|
| 163 | mes @npcname$; |
---|
| 164 | mes "Hmph, I hate my dad right now!!"; |
---|
| 165 | next; |
---|
| 166 | menu "Why?",L_Why,"Ok...Whatever..",L_Quit; |
---|
| 167 | |
---|
| 168 | L_Why: |
---|
| 169 | mes @npcname$; |
---|
| 170 | mes "Well, he won't give me what I want!!"; |
---|
| 171 | mes "He's the King of Prontera, he should be able to get me ANYTHING!!!"; |
---|
| 172 | close; |
---|
| 173 | |
---|
| 174 | L_Quit: |
---|
| 175 | mes @npcname$; |
---|
| 176 | mes "FINE THEN Hmph!!"; |
---|
| 177 | close; |
---|
| 178 | } |
---|