Jump to content

[Share]Refresh your buffs time :)


Recommended Posts

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)

 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...