Welcome, Guest. Please login or register.

Author Topic: Buffer  (Read 1347 times)

0 Members and 1 Guest are viewing this topic.

Offline ChrizyS

  • Inner Circle
  • L2jHellas User
  • *****
  • Posts: 40
  • Country: br
  • Karma: 1
Buffer
« on: April 07, 2020, 01:07:03 am »
is there any way to add npc buffer other than through java?

using scripts/custom

rev actual 562

Offline AbsolutePower

  • Admin
  • Head Developer
  • L2jHellas User
  • ******
  • Posts: 380
  • Country: gr
  • Karma: 10
Re: Buffer
« Reply #1 on: April 07, 2020, 06:44:58 pm »
is there any way to add npc buffer other than through java?

using scripts/custom

rev actual 562
no mate, i dropped python years ago.

here is a share : https://l2jhellas.com/index.php?topic=1740.0  and then you can edit the html as you want :)

 in the next rev-commit i will put this buffer too.(last and final customs) buf first i am waiting for more reports i dont commit only for 3-4 buf fixes thats why i share it :)



Offline ChrizyS

  • Inner Circle
  • L2jHellas User
  • *****
  • Posts: 40
  • Country: br
  • Karma: 1
Re: Buffer
« Reply #2 on: April 07, 2020, 07:31:12 pm »
Good man thx  ;)


One question, how do I make L2BufferInstance.java not apply the buffe for free?

Offline AbsolutePower

  • Admin
  • Head Developer
  • L2jHellas User
  • ******
  • Posts: 380
  • Country: gr
  • Karma: 10
Re: Buffer
« Reply #3 on: April 08, 2020, 09:56:31 am »
Good man thx  ;)


One question, how do I make L2BufferInstance.java not apply the buffe for free?

you will find :

if (actualCommand.equalsIgnoreCase("getbuff"))
{
Code: [Select]
and insert this:
if (player.getInventory().getInventoryItemCount(itemId, 0) < itemcount)
{
player.sendMessage("You do not have enough items!");
return;
}