Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Pet's Commands

Status
Not open for further replies.
Junior Spellweaver
Joined
Jun 25, 2008
Messages
166
Reaction score
0
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
 
Skilled Illusionist
Joined
Apr 29, 2008
Messages
310
Reaction score
1
Re: [RELEASE]Pet's Commands

first and very nice
 
Skilled Illusionist
Joined
May 12, 2008
Messages
321
Reaction score
0
Re: [RELEASE]Pet's Commands

Nice find :]
Though i dont think we need to make things easier and easier lol :D
 
Master Summoner
Loyal Member
Joined
Apr 20, 2008
Messages
578
Reaction score
76
Re: [RELEASE]Pet's Commands

NX food problem? What are you talking about?
 
Junior Spellweaver
Joined
Jun 25, 2008
Messages
166
Reaction score
0
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..
 
Skilled Illusionist
Joined
Apr 12, 2008
Messages
397
Reaction score
0
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..

True, that happened to me..
 
Master Summoner
Loyal Member
Joined
Apr 20, 2008
Messages
578
Reaction score
76
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)
 
Junior Spellweaver
Joined
Jun 25, 2008
Messages
166
Reaction score
0
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]
 
Master Summoner
Loyal Member
Joined
Apr 20, 2008
Messages
578
Reaction score
76
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.
 
Junior Spellweaver
Joined
Jun 25, 2008
Messages
166
Reaction score
0
Re: [RELEASE]Pet's Commands

omg ty!! finally its work fine... chek my last message
 
Junior Spellweaver
Joined
Jun 25, 2008
Messages
166
Reaction score
0
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
Top