Newbie Spellweaver
- Joined
- Jun 15, 2008
- Messages
- 99
- Reaction score
- 0
TESTED AND WORKS.
Change whatever you like.
This is a quest. That gives Horned Tail Necklace
Coded bye PureLock and Ideas from Teamr3.net ---Thanks airflow0 for fixing a line in the code.
This is what happens in script.
You need 200 Broken Horns and 100 Charm of Undeads. You also need 1 Event Ticket (Dropped bye Horntail.)
In return you get a Horned Tail Necklace
Run This in MySQL: This makes a 1,000 chance of dropping event ticket from each part of horntail. (Might need server restart.) (This is a rare chance of drop. For some servers with low drop rates.)
Sorry if no one likes it. This is just for people that may need it or think it is cool.
IMAGES
Change whatever you like.
This is a quest. That gives Horned Tail Necklace
Coded bye PureLock and Ideas from Teamr3.net ---Thanks airflow0 for fixing a line in the code.
This is what happens in script.
You need 200 Broken Horns and 100 Charm of Undeads. You also need 1 Event Ticket (Dropped bye Horntail.)
In return you get a Horned Tail Necklace
Run This in MySQL: This makes a 1,000 chance of dropping event ticket from each part of horntail. (Might need server restart.) (This is a rare chance of drop. For some servers with low drop rates.)
Code:
INSERT INTO `monsterdrops` VALUES ('293870', '8810008', '5220001', '1000');
INSERT INTO `monsterdrops` VALUES ('293871', '8810009', '5220001', '1000');
INSERT INTO `monsterdrops` VALUES ('293872', '8810006', '5220001', '1000');
INSERT INTO `monsterdrops` VALUES ('293873', '8810007', '5220001', '1000');
INSERT INTO `monsterdrops` VALUES ('293874', '8810005', '5220001', '1000');
INSERT INTO `monsterdrops` VALUES ('293875', '8810004', '5220001', '1000');
INSERT INTO `monsterdrops` VALUES ('293876', '8810003', '5220001', '1000');
INSERT INTO `monsterdrops` VALUES ('293877', '8810002', '5220001', '1000');
INSERT INTO `monsterdrops` VALUES ('293878', '8810001', '5220001', '1000');
INSERT INTO `monsterdrops` VALUES ('293879', '8810000', '5220001', '1000');
Code:
//Horned Tail Necklace Quest.
importPackage(net.sf.odinms.client);
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (status >= 2 && mode == 0) {
cm.sendOk("Rawr!?");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("Hello #h #, I need some items really badly. I will give you a#bHorned Tail Necklace#b if you give me \r\n#v4000274# 200 Broken Horns \r\n#v4000008# 100 Charm of the Undeads and... \r\n#v5220001# 1 Event Ticket. ");
}
else if (status == 1) {
if (cm.haveItem(4000008, 100) && cm.haveItem(4000274, 200) && cm.haveItem(5220001, 1)) {
cm.sendYesNo("I am so glad you have them! Here is the \r\n#v1122000# #bHorned Tail Necklace#k for you.");
}
else if (!cm.haveItem(4000008, 100)) {
cm.sendOk("#h #, You dont have the required items. You are missing some... \r\n#v4000008# Charm of the Undead. Find them in Ant Tunnel");
cm.dispose();
}
else if (!cm.haveItem(4000274, 200)) {
cm.sendOk("#h #, You dont have the required items.You are missing some... \r\n#v4000274# Broken Horns. They are dropped bye Skelegons over in Leafre.");
cm.dispose();
}
else if (!cm.haveItem(5220001, 1)) {
cm.sendOk("#h #, You dont have the required items.You are missing the \r\n#v5220001# Event Ticket! They are dropped bye Horned Tail.");
cm.dispose();
}
}
else if (status == 2) {
cm.gainItem(4000274, -200);
cm.gainItem(4000008, -100);
cm.gainItem(5220001, -1);
cm.gainItem(1122000, 1);
}
}
}
Sorry if no one likes it. This is just for people that may need it or think it is cool.
IMAGES
Last edited: