dead_branch.txt 3.2 KB

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