sweetgum83/scripts/npc/9102101.js
2024-01-19 03:56:28 -05:00

46 lines
1.9 KiB
JavaScript

/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation. You may not use, modify
or distribute this program under any other version of the
GNU Affero General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
-- Odin JavaScript --------------------------------------------------------------------------------
? - Victoria Road: Pet-Walking Road (100000202)
-- By ---------------------------------------------------------------------------------------------
Xterminator
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Xterminator
2.0 - Second Version by Moogra
---------------------------------------------------------------------------------------------------
**/
function start() {
cm.sendYesNo("#b(I can see something covered in grass. Should I pull it out?)");
}
function action(mode, type, selection) {
if (mode == -1) {
} else if (mode == 0) {
cm.sendNext("#b(I didn't think much of it, so I didn't touch it.)");
} else if (mode == 1) {
cm.sendNext("#b(Yuck... it's pet poop!)");
cm.gainItem(4031922, 1);
}
cm.dispose();
}