Jump to content

Recommended Posts

Posted

Since i have too many months to share something i decided to share something :)

 

its a voiced command.

 

Q:How to use?

A:its simple when you type .refresh your buffs time will be refreshed :)

 

here is the code voiced http://pastebin.com/bHYU3gnn

here is the code with item (NumL0ck request"s) http://pastebin.com/fxNYBaXt (final int ItemForUseId = 34; <- you can change this and you can put any item you want, you can change this final int AdenaCount = 100; and you can put any price you want :) )

DONT FORGET TO REGISTER THE VOICED! :)

DONT FORGET TO REGISTER THE ITEM! :)

 

Credits Me (AbsolutePower)

 

Coded on:L2j (clean source)

 

 

Posted

Nice idea, but this: else if(activeChar.getPkKills() >0) shouldn't be else if(activeChar.getKarma() > 0) ? :)

 

"You can't refresh your buffs while you got pk" ==> "You can't refresh your buffs while you got karma". I think you mean this :P

Posted

yeah there should be activeChar.getKarma()

also for what did u make that map? final FastList<L2Effect> Buffs = new FastList<L2Effect>();

its not needed at all, except that its really cool share, thx a lot :)

Posted

yeah there should be activeChar.getKarma()

also for what did u make that map? final FastList<L2Effect> Buffs = new FastList<L2Effect>();

its not needed at all, except that its really cool share, thx a lot :)

ty man :) i did the Buffs to save the buffs in the list :P

 

Nice idea, but this: else if(activeChar.getPkKills() >0) shouldn't be else if(activeChar.getKarma() > 0) ? :)

 

"You can't refresh your buffs while you got pk" ==> "You can't refresh your buffs while you got karma". I think you mean this :P

wow lol it was my mistake i just wrote it fast  because some times the eclipse shows auto the method and i didn't see what it wrote :P

 

i will update it

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock