diff options
author | Haru <haru@dotalux.com> | 2016-08-20 23:39:17 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-08-21 00:54:23 +0200 |
commit | 460e53b1b64cf2880b4c615ad6eb41386f7530f6 (patch) | |
tree | 8fc91c576f7a0910faec125e1043bb1a2b76bb8c /npc/custom/quests/dead_branch.txt | |
parent | 7a276976948fa39e2d329de3b622c34dd0c572ad (diff) | |
download | hercules-460e53b1b64cf2880b4c615ad6eb41386f7530f6.tar.gz hercules-460e53b1b64cf2880b4c615ad6eb41386f7530f6.tar.bz2 hercules-460e53b1b64cf2880b4c615ad6eb41386f7530f6.tar.xz hercules-460e53b1b64cf2880b4c615ad6eb41386f7530f6.zip |
Removed some of the leftover calls to menu() in custom scripts
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/custom/quests/dead_branch.txt')
-rw-r--r-- | npc/custom/quests/dead_branch.txt | 141 |
1 files changed, 67 insertions, 74 deletions
diff --git a/npc/custom/quests/dead_branch.txt b/npc/custom/quests/dead_branch.txt index 9b54501f7..7ae12a60c 100644 --- a/npc/custom/quests/dead_branch.txt +++ b/npc/custom/quests/dead_branch.txt @@ -25,78 +25,71 @@ niflheim,204,179,3 script Mister Mobry 2_M_MOLGENSTEIN,{ mes "[Mister Mobry]"; mes "I can create a spirited branch... That is, if you can provide me with the correct materials..."; next; - goto L_Menu; - -L_Menu: - menu "What Do I Need?",-,"Where Can I find this Crap?",M_FIND,"Make me a Dead Branch!",M_CREATE,"Forget it...",M_End; - - mes "[Mister Mobry]"; - mes "Mwehehe... I see you want to control tree spirits am I right? Ok... I need:"; - mes "^1354453 Logs^000000"; - mes "^1354451 Wooden Heart^000000"; - mes "^1354455 Trunk^000000"; - mes "^1354451 Wooden Gnarl^000000"; - next; - goto L_Menu; - -M_FIND: - mes "[Mister Mobry]"; - mes "You can find the following items from certain monsters heheh..."; - mes "^135445Logs can be found off of Tree Golems.^000000"; - mes "^135445Wooden Hearts the essence of Tree Golems.^000000"; - mes "^135445Trunks? Seriously, think wood...^000000"; - mes "^135445Wooden Gnarl... Gibbet...^000000"; - next; - goto L_Menu; - -L_NOLOG: - mes "[Mister Mobry]"; - mes "^135445Logs^000000 are the body... I need more of them."; - mes "Get me three logs and I'll make you the spirit..."; - close; - -L_NOHEART: - mes "[Mister Mobry]"; - mes "The ^135445Wooden Heart^000000 is the essence of the spirit."; - mes "Get me one wooden heart and I'll make you the spirit..."; - close; - -L_NOTRUNK: - mes "[Mister Mobry]"; - mes "What? You couldn't even find ^1354455 Trunks^000000?"; - mes "Kill Elder Willows or something... Geez... no trunks heh... pathetic."; - close; - -L_NOGNARL: - mes "[Mister Mobry]"; - mes "How can I make one without a ^135445Wooden Gnarl^000000?"; - mes "I said Gibbet... they are all around this place..."; - close; - -M_CREATE: - mes "[Mister Mobry]"; - mes "Well...let us see what you brought me..."; - next; - if(countitem(Log)<3) goto L_NOLOG; - if(countitem(Heart_Of_Tree)<1) goto L_NOHEART; - if(countitem(Wooden_Block)<5) goto L_NOTRUNK; - if(countitem(Tree_Knot)<1) goto L_NOGNARL; - delitem 7201,3; - delitem 7189,1; - delitem 1019,5; - delitem 7222,1; - mes "[Mister Mobry]"; - mes "Heh... Hope you have fun with the tree spirits... Careful now..."; - mes "Heh... careful now? What do I care if you di..... Never mind."; - if(rand(1000)==0) goto L_GIVE2; - getitem Branch_Of_Dead_Tree,1; //Dead Branch - close; -L_GIVE2: - getitem Bloody_Dead_Branch,1; //Bloody Branch - close; - -M_End: - mes "[Mister Mobry]"; - mes "No spirit for you... then go!"; - close; + while (true) { + switch (select("What Do I Need?", "Where Can I find this Crap?", "Make me a Dead Branch!", "Forget it...")) { + case 1: + mes "[Mister Mobry]"; + mes "Mwehehe... I see you want to control tree spirits am I right? Ok... I need:"; + mes "^1354453 Logs^000000"; + mes "^1354451 Wooden Heart^000000"; + mes "^1354455 Trunk^000000"; + mes "^1354451 Wooden Gnarl^000000"; + next; + continue; + case 2: + mes "[Mister Mobry]"; + mes "You can find the following items from certain monsters heheh..."; + mes "^135445Logs can be found off of Tree Golems.^000000"; + mes "^135445Wooden Hearts the essence of Tree Golems.^000000"; + mes "^135445Trunks? Seriously, think wood...^000000"; + mes "^135445Wooden Gnarl... Gibbet...^000000"; + next; + continue; + case 3: + mes "[Mister Mobry]"; + mes "Well...let us see what you brought me..."; + next; + if (countitem(Log)<3) { + mes "[Mister Mobry]"; + mes "^135445Logs^000000 are the body... I need more of them."; + mes "Get me three logs and I'll make you the spirit..."; + close; + } + if (countitem(Heart_Of_Tree)<1) { + mes "[Mister Mobry]"; + mes "The ^135445Wooden Heart^000000 is the essence of the spirit."; + mes "Get me one wooden heart and I'll make you the spirit..."; + close; + } + if (countitem(Wooden_Block)<5) { + mes "[Mister Mobry]"; + mes "What? You couldn't even find ^1354455 Trunks^000000?"; + mes "Kill Elder Willows or something... Geez... no trunks heh... pathetic."; + close; + } + if (countitem(Tree_Knot)<1) { + mes "[Mister Mobry]"; + mes "How can I make one without a ^135445Wooden Gnarl^000000?"; + mes "I said Gibbet... they are all around this place..."; + close; + } + delitem 7201,3; + delitem 7189,1; + delitem 1019,5; + delitem 7222,1; + mes "[Mister Mobry]"; + mes "Heh... Hope you have fun with the tree spirits... Careful now..."; + mes "Heh... careful now? What do I care if you di..... Never mind."; + if (rand(1000)==0) { + getitem Bloody_Dead_Branch,1; //Bloody Branch + close; + } + getitem Branch_Of_Dead_Tree,1; //Dead Branch + close; + case 4: + mes "[Mister Mobry]"; + mes "No spirit for you... then go!"; + close; + } + } } |