Welcome!

Join our community of MMORPG enthusiasts and private server developers! By registering, you'll gain access to in-depth discussions on source codes, binaries, and the latest developments in MMORPG server files. Collaborate with like-minded individuals, explore tutorials, and share insights on building and optimizing private servers. Join us today and unlock the full potential of MMORPG server development!

Join Today!

Pet's Commands

Status
Not open for further replies.
Junior Spellweaver
Joined
Jun 25, 2008
Messages
166
Reaction score
0
Location
Israel
this is small release but very useful[i think o.o]i dont think someone already released it
so i guess you already know about the nx food problem..
and the only options is to fix the problem or use the milk food and my edited commands.
please don't copy this thread... o.o

ok go to your server wz folder, Item.wz, Pets
i edited all the files but for example use 5000044.img.
you can edit there the pet hunger and if you know how you can add even the expire date...

ok now take a look at this
Code:
<string name="command" value="c1"/>
			[B]<int name="inc" value="1"/>[/B]
			<int name="prob" value="30"/>
			<int name="l0" value="1"/>
			<int name="l1" value="9"/>
			<imgdir name="success">
"inc" is what your petcommandhandler.java load to get the new pet closeness
so if you change inc value to 15, when you use the command your pet will get 15 closeness instead of one.. i dont know how to find the command name
but this command is sit for orange tiger...
its work i use it right now.... o.o
 
Re: [RELEASE]Pet's Commands

Nice find :]
Though i dont think we need to make things easier and easier lol :D
 
Re: [RELEASE]Pet's Commands

if you use your food to level up your pet, when you have 26100 closeness i think..
your pet will be level 30 and when you'll get 30000 closeness your pet will be level 31 and you wont be able to use commands..
 
Re: [RELEASE]Pet's Commands

True, that happened to me..

Seriously if you're a dev for a server it should be quite simple.

UseCashItemHandler

Find

Code:
while (c.getPlayer().getPet().getCloseness() >= ExpTable.getClosenessNeededForLevel(c.getPlayer().getPet().getLevel())) {

Replace

Code:
while (c.getPlayer().getPet().getCloseness() >= ExpTable.getClosenessNeededForLevel(c.getPlayer().getPet().getLevel() + 1)) {

Thanks to you guys I also removed the possibility of level higher than 30 and closeness higher than 30000 when loading from DB and also unequiping the pet (quite simple, PM me for it o.o)
 
Re: [RELEASE]Pet's Commands

you sure its fix it because after this line i got +1 thing..

Code:
while (c.getPlayer().getPet().getCloseness() >= ExpTable.getClosenessNeededForLevel(c.getPlayer().getPet().getLevel())) {
					c.getPlayer().getPet().setLevel(c.getPlayer().getPet().getLevel()+1);
					c.getSession().write(MaplePacketCreator.updatePet(c.getPlayer().getPet().getPosition(), c.getPlayer().getPet().getItemId(), c.getPlayer().getPet().getUniqueId(), c.getPlayer().getPet().getName(), c.getPlayer().getPet().getLevel(), c.getPlayer().getPet().getCloseness(), c.getPlayer().getPet().getFullness(), true));
					c.getSession().write(MaplePacketCreator.showPetLevelUp());
				}

edit: i found another wierd bug... when you use the pet label ring on white tiger or special pet, you dc and get error.
and when you use the quote ring[normal pet] the ring doing nothing and disapear from your inventory
[sry if my english suck]
 
Re: [RELEASE]Pet's Commands

you sure its fix it because after this line i got +1 thing..

Code:
while (c.getPlayer().getPet().getCloseness() >= ExpTable.getClosenessNeededForLevel(c.getPlayer().getPet().getLevel())) {
					c.getPlayer().getPet().setLevel(c.getPlayer().getPet().getLevel()+1);
					c.getSession().write(MaplePacketCreator.updatePet(c.getPlayer().getPet().getPosition(), c.getPlayer().getPet().getItemId(), c.getPlayer().getPet().getUniqueId(), c.getPlayer().getPet().getName(), c.getPlayer().getPet().getLevel(), c.getPlayer().getPet().getCloseness(), c.getPlayer().getPet().getFullness(), true));
					c.getSession().write(MaplePacketCreator.showPetLevelUp());
				}

edit: i found another wierd bug... when you use the pet label ring on white tiger or special pet, you dc and get error.
and when you use the quote ring[normal pet] the ring doing nothing and disapear from your inventory
[sry if my english suck]

Yes... it will work trust me.
 
Re: [RELEASE]Pet's Commands

omg ty!! finally its work fine... chek my last message
 
Re: [RELEASE]Pet's Commands

i found something for your evol dragons
this is from 5000029.img you should chek out the next imgs and 5000028.img

Code:
<int name="evol" value="1"/>
		<int name="evol1" value="5000030"/>
		<int name="evol2" value="5000031"/>
		<int name="evol3" value="5000032"/>
		<int name="evol4" value="5000033"/>
		<int name="evolProb1" value="33"/>
		<int name="evolProb2" value="33"/>
		<int name="evolProb3" value="33"/>
		<int name="evolProb4" value="1"/>
		<int name="evolReqPetLvl" value="15"/>
		<int name="evolNo" value="4"/>

maybe you can do something with that for the evolution thing..
 
Status
Not open for further replies.
Back