From b5c68311298f80fcd49440f79a89051a2280ac6c Mon Sep 17 00:00:00 2001 From: Arufonsu Date: Sat, 18 Aug 2018 19:27:25 -0300 Subject: [PATCH] Added Multi-Pet Jump Quest missing NPC (#246) --- scripts/npc/9102100.js | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 scripts/npc/9102100.js diff --git a/scripts/npc/9102100.js b/scripts/npc/9102100.js new file mode 100644 index 0000000000..2806ca5a48 --- /dev/null +++ b/scripts/npc/9102100.js @@ -0,0 +1,45 @@ +/** +-- Odin JavaScript -------------------------------------------------------------------------------- + ? - Victoria Road: Pet-Walking Road (100000202) +-- By --------------------------------------------------------------------------------------------- + Xterminator +-- Version Info ----------------------------------------------------------------------------------- + 1.0 - First Version by Xterminator +--------------------------------------------------------------------------------------------------- +**/ + +var status = 0; + +function start() { + status = -1; + action(1, 0, 0); +} + +function action(mode, type, selection) { + if (status == 0 && mode == 0) { + cm.sendNext("#b(I didn't touch this hidden item covered in grass)"); + cm.dispose(); + return; + } + if (mode == 1) + status++; + else + status--; + if (status == 0) { + if (cm.getQuestStatus(4646) == 1) { + if (cm.haveItem(4031921)) { + cm.sendNext("#b(What's this... eww... a pet's poop was in there!)"); + cm.dispose(); + } else { + cm.sendYesNo("#b(I can see something covered in grass. Should I pull it out?)"); + } + } else { + cm.sendOk("#b(I couldn't find anything.)"); + cm.dispose(); + } + } else if (status == 1) { + cm.sendNext("I found the item that Pet Trainer Bartos hid... this note."); + cm.gainItem(4031921, 1); + cm.dispose(); + } +} \ No newline at end of file