Pet Dragon Seller/Evolver *Updated

Status
Not open for further replies.
Re: [RELEASE]Pet Dragon Seller/Evolver *Updated

There is a glitch...when U take ur pet out, and tok to mar, your pet still dere...and u cn get the adult dragon+Marble
 
Re: [RELEASE]Pet Dragon Seller/Evolver *Updated

it's not cm.getPetLevel, it's

cm.getChar().getPet().getLevel()

and also, it's a contradiction.

You can only get the level of a pet that's OUT. Not in inventory.

And. The cm.haveItem means you're checking for the pet thats in inventory.

Might wanna fix that.

Thanks For The Info =D didn't know that =P im not the best at npc's =P
but it checks if you have the item and if you do then it does randomizing and you get the dragon but it takes away the baby dragon =)
also if its cm.getChar().getPet().getLevel() would it be like
cm.getChar().getPet().getLevel() < 15; ?
 
Re: [RELEASE]Pet Dragon Seller/Evolver *Updated

oops there was i found an error =P i forgot to add in I to one of the if's =P fixed now
 
Re: [RELEASE]Pet Dragon Seller/Evolver *Updated

oops there was i found an error =P i forgot to add in I to one of the if's =P fixed now

Actually you forgot the i on both ifs lol.. i was like staring at it and was talking to my sister about it. I was like um f is a code.. I'm new to java and all but hmm that's interesting xD

Anyways.. another reminder.. you put gaimmesos instead of gainmesos..
 
Re: [RELEASE]Pet Dragon Seller/Evolver *Updated

Lmao Added that you need 10 mill to buy the dragon =P sorry im forgetting all these things
 
Re: [RELEASE]Pet Dragon Seller/Evolver *Updated

Lmao Added that you need 10 mill to buy the dragon =P sorry im forgetting all these things

Lol.. you added 10 mill.. I made mine 12 mill since i sell nx for 1 mill for 1k and since a baby dragon is 12k.. you get the point xD

btw the gaimmeso part is the option when you pay 5 mill to get the name tag..
 
Re: [RELEASE]Pet Dragon Seller/Evolver *Updated

Thanks For The Info =D didn't know that =P im not the best at npc's =P
but it checks if you have the item and if you do then it does randomizing and you get the dragon but it takes away the baby dragon =)
also if its cm.getChar().getPet().getLevel() would it be like
cm.getChar().getPet().getLevel() < 15; ?

Nevermind about my method you can use both ways.

And yes it's < 15.

I have solved this puzzle and made it TRULY evolve (same closeness, fullness, everything) but I don't know if I should release it.. xD
 
Re: [RELEASE]Pet Dragon Seller/Evolver *Updated

I tink it would be better if u include the need of The Evolution of Rock during the evolution. If u wan, heres the code: 5380000
 
Re: [RELEASE]Pet Dragon Seller/Evolver *Updated

Sooo It Does work Right? becuase i can't test it =( im on a mac

Everything works except the take away baby dragon part when you talk to mars and the 5 million mesos taken away for the name tag. It still says gaimmesos -5000000 instead of gain.. so it won't do anything..

I tink it would be better if u include the need of The Evolution of Rock during the evolution. If u wan, heres the code: 5380000

Shouldn't be too hard.. just make it check for the rock and if you have it make it take away the rock as well..
 
Re: [RELEASE]Pet Dragon Seller/Evolver *Updated

ok i guess ill add it =) so ill add it in a lil bit! =0

Update* Fixed GaimMesos lmao
 
Re: [RELEASE]Pet Dragon Seller/Evolver *Updated

PHP:
/* 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();	
		}
	}
}
}

Here try this.. it should take away an evolution rock..
AND.. since mars doesn't take away the baby dragon if you have it out.. then you can evolve as many time as you like as long as you have rock!
 
Status
Not open for further replies.
Back