[1] | 1 | //===== eAthena Script ======================================= |
---|
| 2 | //= Dead Branch (+Bloody Branch) Quest |
---|
| 3 | //===== By: ================================================== |
---|
| 4 | //= GM-Yevon |
---|
| 5 | //===== Current Version: ===================================== |
---|
| 6 | //= 1.1 |
---|
| 7 | //===== Compatible With: ===================================== |
---|
| 8 | //= eAthena 0.5.2 + |
---|
| 9 | //===== Description: ========================================= |
---|
| 10 | // Simple item trade-in quest, a person can get a Dead Branch |
---|
| 11 | // by simply providing the items: Log x3 (7201), Wooden Heart x1 (7189), |
---|
| 12 | // Trunk x5 (1019), and Wooden Gnarl x1 (7222). |
---|
| 13 | //===== Additional Comments: ================================= |
---|
| 14 | //= Fully working. |
---|
| 15 | //= 1.1 Optimized, added Bloody Branch with 0.01% chance [Lupus] |
---|
| 16 | //============================================================ |
---|
| 17 | |
---|
| 18 | niflheim,204,179,3 script Mister Mobry 121,{ |
---|
| 19 | |
---|
| 20 | mes "[Mister Mobry]"; |
---|
| 21 | mes "Trees possess spirits you know..."; |
---|
| 22 | next; |
---|
| 23 | |
---|
| 24 | mes "[Mister Mobry]"; |
---|
| 25 | mes "In fact I know a secret about these spirits that can in some way... perhaps aid you..."; |
---|
| 26 | next; |
---|
| 27 | |
---|
| 28 | mes "[Mister Mobry]"; |
---|
| 29 | mes "I can create a spirited branch... That is, if you can provide me with the correct materials..."; |
---|
| 30 | next; |
---|
| 31 | goto L_MENU; |
---|
| 32 | |
---|
| 33 | L_MENU: |
---|
| 34 | menu "What Do I Need?",-,"Where Can I find this Crap?",M_FIND,"Make me a Dead Branch!",M_CREATE,"Forget it...",M_END; |
---|
| 35 | |
---|
| 36 | mes "[Mister Mobry]"; |
---|
| 37 | mes "Mwehehe... I see you want to control tree spirits am I right? Ok... I need:"; |
---|
| 38 | mes "^1354453 Logs^000000"; |
---|
| 39 | mes "^1354451 Wooden Heart^000000"; |
---|
| 40 | mes "^1354455 Trunk^000000"; |
---|
| 41 | mes "^1354451 Wooden Gnarl^000000"; |
---|
| 42 | next; |
---|
| 43 | goto L_MENU; |
---|
| 44 | |
---|
| 45 | M_FIND: |
---|
| 46 | mes "[Mister Mobry]"; |
---|
| 47 | mes "You can find the following items from certain monsters heheh..."; |
---|
| 48 | mes "^135445Logs can be found off of Tree Golems.^000000"; |
---|
| 49 | mes "^135445Wooden Hearts the essence of Tree Golems.^000000"; |
---|
| 50 | mes "^135445Trunks? Seriously, think wood...^000000"; |
---|
| 51 | mes "^135445Wooden Gnarl... Gibbet...^000000"; |
---|
| 52 | next; |
---|
| 53 | goto L_MENU; |
---|
| 54 | |
---|
| 55 | L_NOLOG: |
---|
| 56 | mes "[Mister Mobry]"; |
---|
| 57 | mes "^135445Logs^000000 are the body... I need more of them."; |
---|
| 58 | mes "Get me three logs and I'll make you the spirit..."; |
---|
| 59 | close; |
---|
| 60 | |
---|
| 61 | L_NOHEART: |
---|
| 62 | mes "[Mister Mobry]"; |
---|
| 63 | mes "The ^135445Wooden Heart^000000 is the essence of the spirit."; |
---|
| 64 | mes "Get me one wooden heart and I'll make you the spirit..."; |
---|
| 65 | close; |
---|
| 66 | |
---|
| 67 | L_NOTRUNK: |
---|
| 68 | mes "[Mister Mobry]"; |
---|
| 69 | mes "What? You couldn't even find ^1354455 Trunks^000000?"; |
---|
| 70 | mes "Kill Elder Willows or something... Geez... no trunks heh... pathetic."; |
---|
| 71 | close; |
---|
| 72 | |
---|
| 73 | L_NOGNARL: |
---|
| 74 | mes "[Mister Mobry]"; |
---|
| 75 | mes "How can I make one without a ^135445Wooden Gnarl^000000?"; |
---|
| 76 | mes "I said Gibbet... they are all around this place..."; |
---|
| 77 | close; |
---|
| 78 | |
---|
| 79 | M_CREATE: |
---|
| 80 | mes "[Mister Mobry]"; |
---|
| 81 | mes "Well...let us see what you brought me..."; |
---|
| 82 | next; |
---|
| 83 | if(countitem(7201)<3) goto L_NOLOG; |
---|
| 84 | if(countitem(7189)<1) goto L_NOHEART; |
---|
| 85 | if(countitem(1019)<5) goto L_NOTRUNK; |
---|
| 86 | if(countitem(7222)<1) goto L_NOGNARL; |
---|
| 87 | delitem 7201,3; |
---|
| 88 | delitem 7189,1; |
---|
| 89 | delitem 1019,5; |
---|
| 90 | delitem 7222,1; |
---|
| 91 | mes "[Mister Mobry]"; |
---|
| 92 | mes "Heh... Hope you have fun with the tree spirits... Careful now..."; |
---|
| 93 | mes "Heh... careful now? What do I care if you di..... Never mind."; |
---|
| 94 | if(rand(1000)==0) goto L_GIVE2; |
---|
| 95 | getitem 604,1; //Dead Branch |
---|
| 96 | close; |
---|
| 97 | L_GIVE2: |
---|
| 98 | getitem 12103,1; //Bloody Branch |
---|
| 99 | close; |
---|
| 100 | |
---|
| 101 | M_END: |
---|
| 102 | mes "[Mister Mobry]"; |
---|
| 103 | mes "No spirit for you... then go!"; |
---|
| 104 | close; |
---|
| 105 | } |
---|