-
[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
-
Re: [Release] Part of Pet Evolution
Quote:
Originally Posted by
Shinykirby
Oh, sweet - I was gonna make one on my own but this works out well. Much appreciated.
Heh, atleast you seem like you know how much potential this has. :] Even though it's just saving work ;) I have the full thing done. Could you PM me your MSN too?
-
Re: [Release] Part of Pet Evolution
this looks like it belongs in maplecharacter
anyways i dont think with will work
for the sheer fact that how would the source know if its a dragon or not. the only way is to put an array or int.
*this coming from a nub dev*
-
Re: [Release] Part of Pet Evolution
Quote:
Originally Posted by
holthelper
this looks like it belongs in maplecharacter
anyways i dont think with will work
for the sheer fact that how would the source know if its a dragon or not. the only way is to put an array or int.
*this coming from a nub dev*
Quote:
public void doEvolve(SeekableLittleEndianAccessor slea, MapleClient c, boolean dragon) {
Thats how it's going to know.
-
Re: [Release] Part of Pet Evolution
ok than whats going to declare the boolean?
-
Re: [Release] Part of Pet Evolution
When you use it...lol
c.getPlayer().deEvolve( INSERT ALL INFO HERE)
-
Re: [Release] Part of Pet Evolution
Quote:
Originally Posted by
holthelper
ok than whats going to declare the boolean?
God, its basic java. He already declared dragon as a boolean, then why the hell would he declare it again?
-
Re: [Release] Part of Pet Evolution
Quote:
Originally Posted by
holthelper
*this coming from a nub dev*
no wonder people are leaving ragezone. people cant read. its sad how i have to quote myself so that you people would know
here let me make it bigger so people can read it better ^-^
*this coming from a nub dev*
-
Re: [Release] Part of Pet Evolution
Quote:
Originally Posted by
holthelper
no wonder people are leaving ragezone. people cant read. its sad how i have to quote myself so that you people would know
here let me make it bigger so people can read it better ^-^
*this coming from a nub dev*
Then why the hell would you even bother to comment?
-
Re: [Release] Part of Pet Evolution
Keep flame posts off my thread. Tell me if anyone has anyone progress. I would like to see how everyone else is doing it. ;0