/* Credits Go To r1c31shg00d For Making script
iGoofy for the edited gainItem()
And Leifide For Making pets =)
*/
/*OMGOSSHH r1c31shg00d's First Public Release At Ragezoneneeee!*/
importPackage(net.sf.odinms.client);
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("Alright, see you next time.");
cm.dispose();
return;
}
if (mode == 1) {
status++;
}
else {
status--;
}
if (status == 0) {
if (!cm.haveItem(5000029)) {
if (!cm.haveItem(5380000)) {
if (cm.getPetLevel() < 15) {
cm.sendOk("Well Well Well I Guess You Don't Have A Dragon...oR ITS not lEVEL 15 yET.. or maybe you forgot the evolution rock? HOW DO I EVOLVE WITHOUT THE ROCK!");
}
else {
var rand = 1 + Math.floor(Math.random() * 4);
if (rand == 1) {
cm.gainItem(5000030, 1);
cm.gainItem(5000029, -1); // Baby Dragon
cm.gainItem(5380000, -1);
}
else if (rand == 2) {
cm.gainItem(5000031, 1);
cm.gainItem(5000029, -1); // Baby dragon
cm.gainItem(5380000, -1);
}
else if (rand == 3) {
cm.gainItem(5000032, 1);
cm.gainItem(5000029, -1); // Baby Dragon
cm.gainItem(5380000, -1);
}
else if (rand == 4) {
cm.gainItem(5000033, 1);
cm.gainItem(5000029, -1); // Baby Dragon
cm.gainItem(5380000, -1);
}
cm.sendOk("Boom Boom Shalla Shalla koom koom!!!Your Dragon Is Now A Bigger Dragon!!!\r\nPlease Use The Dragon Pet Food I Have Provided Before You Start Using Commands To Your New Dragon*note Getting your new dragon is randomized*");
cm.gainItem(5240012,26);
}
cm.dispose();
}
}
}
}