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!

AP Resetter

Status
Not open for further replies.
Newbie Spellweaver
Joined
Aug 8, 2008
Messages
7
Reaction score
0
Can you post this in the Library, cause I don't think it's in there :S
Post it under NPCS or something.
And credits don't go to me, I was just hoping that you could put it in, because I had to search for it, instead of the library! <\3
Wait let me upload it, I forgot to >.<
Its an AP resetter tho.




Aiit Link---
 
Experienced Elementalist
Joined
Jul 26, 2008
Messages
280
Reaction score
0
Re: [Release]AP Resetter

Ure just re-releasing something that is a piece of cake -.-
Its not even full..
Code:
               var statup = new java.util.ArrayList();
		var p = cm.c.getPlayer();
		var totAp = p.getRemainingAp() + p.getStr() + p.getDex() + p.getInt() + p.getLuk();
		p.setStr(4);
		p.setDex(4);
		p.setInt(4);
		p.setLuk(4);
		p.setRemainingAp (totAp - 16);
		statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.STR, java.lang.Integer.valueOf(4)));
		statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.DEX, java.lang.Integer.valueOf(4)));
		statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.LUK, java.lang.Integer.valueOf(4)));
		statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.INT, java.lang.Integer.valueOf(4)));
		statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.AVAILABLEAP, java.lang.Integer.valueOf(p.getRemainingAp())));

		p.getClient().getSession().write (net.sf.odinms.tools.MaplePacketCreator.updatePlayerStats(statup));
WOWWW.. Amazing how I did that in 1 minute -.-
 
Status
Not open for further replies.
Back
Top