[Release] Part of Pet Evolution
Here's a small portion of proper pet evolution
Code:
MapleClient c;
Random generator = new Random();
int rand100 = generator.nextInt(100) + 1;
Code:
public void doEvolve(SeekableLittleEndianAccessor slea, MapleClient c, boolean dragon) {
byte slot = slea.readByte();
MaplePet pet = MaplePet.loadFromDb(c.getPlayer().getInventory(MapleInventoryType.CASH).getItem(slot).getItemId(), slot, c.getPlayer().getInventory(MapleInventoryType.CASH).getItem(slot).getPetId());
if(c.getPlayer().getInventory(MapleInventoryType.CASH).findById(5380000) != null && pet.getLevel() >= 15 && pet.getCloseness() >= 1642) { //Requirements for evolution
if (dragon) {
if (c.getPlayer().getInventory(MapleInventoryType.CASH).findById(5000029) != null) { // Baby Dragon
MapleInventoryManipulator.removeById(c, MapleInventoryType.CASH, 5000029, 1, false, false); // Remove Dragon
if(rand100 <= 31) {
MapleInventoryManipulator.addById(c, 5000032, (short)1, ""); //Blue Dragon
}
else if (rand100 > 31 && rand100 <= 62) {
MapleInventoryManipulator.addById(c, 5000030, (short)1, ""); //Green Dragon
}
else if (rand100 > 62 && rand100 <= 93) {
MapleInventoryManipulator.addById(c, 5000031, (short)1, ""); // Red Dragon
}
else if (rand100 > 93) {
MapleInventoryManipulator.addById(c, 5000033, (short)1, ""); // Black Dragon
}
}
} else {
// Handling for other evolution
}
}
}
There you go. Quest needs to be done, egg to baby evolution needs to be done
EDIT:
I'm aware this only takes a few minutes to make. But considering how lazy communities are. The developers who aren't private releasing could work on this if they want. Of course I have most of it done but you guys can have only abit. =0
EDIT2:
Information taken from Nexon
Re: [Release] Part of Pet Evolution
Re: [Release] Part of Pet Evolution
Re: [Release] Part of Pet Evolution
Quote:
Originally Posted by
JusticeDK
No tut kind of sad...
It's part, if you add it in it won't work magically. It's for Prometheus. If I can do it off an idea, I'm sure some of the developers who actually know what they're doing can get it to work easily. If any of said developers still come here. PM me if you need help.
Re: [Release] Part of Pet Evolution
Nice job Jay, not too hard to make though, and anyone who knows what they're doing at all can add the egg part based off of that easily..
Re: [Release] Part of Pet Evolution
Quote:
Originally Posted by
iamSTEVE
Nice job Jay, not too hard to make though, and anyone who knows what they're doing at all can add the egg part based off of that easily..
Actually eggs get made at random times. ;0.
and the quest needs to be coded. So I gave a nearly 50% release. I'm done everything for it except the quest because I don't know how it works. ;-;
Re: [Release] Part of Pet Evolution
Meh.. there is a pet evolver.. but no one bothers searching for it so yea.. nice release I guess.. you can always screw the quest =p
Re: [Release] Part of Pet Evolution
Quote:
Originally Posted by
MiniAxel
Actually eggs get made at random times. ;0.
and the quest needs to be coded. So I gave a nearly 50% release. I'm done everything for it except the quest because I don't know how it works. ;-;
It does? o.o I never knew that lol. Haven't played GMS for a while...
Re: [Release] Part of Pet Evolution
Re: [Release] Part of Pet Evolution
Quote:
Originally Posted by
DarkMage325
Meh.. there is a pet evolver.. but no one bothers searching for it so yea.. nice release I guess.. you can always screw the quest =p
Prometheus has everything needed for it, including other evolving/egg pets and eggs will evolve properly soon, waiting on someone for the NPC because I don't like coding npcs. ;-;
Re: [Release] Part of Pet Evolution
Re: [Release] Part of Pet Evolution
could you give like a ss?
Re: [Release] Part of Pet Evolution
Quote:
Originally Posted by
Vi3tb0i2ty
could you give like a ss?
There are no screenshots for this.
Re: [Release] Part of Pet Evolution
yeah i made that pet evolver npc but who knows where it went haha i heard some guy transformed it into like the robo egg hatcher :P
Re: [Release] Part of Pet Evolution