Skip to content

Npc Buffer Scheme (R1N4S)

Featured Replies

Sherlock, you dont have the vip system .. Delete part related to vip or implement vip system.

  • 3 weeks later...

what NPC type should i put ? because is L2Teleporter and it not working ....

what NPC type should i put ? because is L2Teleporter and it not working ....

It's a buffer dude. lol

Think a bit .. (it's free) :troll:

It's a buffer dude. lol

Think a bit .. (it's free) :troll:

i change just to L2NPC and its work anyway ...

  • 2 weeks later...
  • Author

what NPC type should i put ? because is L2Teleporter and it not working ....

you add on file scripts.cfg?

add this line: custom/NpcBuffer/NpcBuffer.java

  • 2 months later...

aCis already have this buffer by "default" which was heavily modified since it was badly coded ;)

 

 

So, in short. I do not recommend this one.

How can i run the integrated buffer. I am on rev.320

  • 4 months later...

nice buffer  FREE_BUFFS is failed take adena :P

before fix :

if (!FREE_BUFFS)
{
	if (st.getQuestItemsCount(CONSUMABLE_ID) < SCHEME_BUFF_PRICE)
	{
		return showText(st, "Sorry", "You don't have the enough items:<br>You need: <font color=LEVEL>" + SCHEME_BUFF_PRICE + " " + getItemNameHtml(st, CONSUMABLE_ID) + "!", false, "0", "0");
	}
}
					
final boolean getPetbuff = isPetBuff(st);
for (int i = 0; i < buffs.size(); ++i)
{
	if (!getPetbuff)
	{
		SkillTable.getInstance().getInfo(buffs.get(i), levels.get(i)).getEffects(player, player);
	}
	else
	{
		if (player.getPet() != null)
		{
			SkillTable.getInstance().getInfo(buffs.get(i), levels.get(i)).getEffects(player.getPet(), player.getPet());
		}
		else
		{
			return showText(st, "Info", "You can't use the Pet's options.<br>Summon your pet first!", false, "Return", "main");
		}
	}
	}
	st.takeItems(CONSUMABLE_ID, SCHEME_BUFF_PRICE);
	if (TIME_OUT)
	{
	addTimeout(st, 3, TIME_OUT_TIME, 600);
	}
	}
	return SMART_WINDOW ? null : rebuildMainHtml(st);
				

after fix :

if (!FREE_BUFFS)
{
	if (st.getQuestItemsCount(CONSUMABLE_ID) < SCHEME_BUFF_PRICE)
{
	return showText(st, "Sorry", "You don't have the enough items:<br>You need: <font color=LEVEL>" + SCHEME_BUFF_PRICE + " " + getItemNameHtml(st, CONSUMABLE_ID) + "!", false, "0", "0");
	}
+		st.takeItems(CONSUMABLE_ID, SCHEME_BUFF_PRICE);
	}
					
	final boolean getPetbuff = isPetBuff(st);
	for (int i = 0; i < buffs.size(); ++i)
	{
	if (!getPetbuff)
		{
			SkillTable.getInstance().getInfo(buffs.get(i), levels.get(i)).getEffects(player, player);
		}
		else
		{
		if (player.getPet() != null)
		{
			SkillTable.getInstance().getInfo(buffs.get(i), levels.get(i)).getEffects(player.getPet(), player.getPet());
		}
		else
		{
			return showText(st, "Info", "You can't use the Pet's options.<br>Summon your pet first!", false, "Return", "main");
		}
		}
		}
-		st.takeItems(CONSUMABLE_ID, SCHEME_BUFF_PRICE);
	if (TIME_OUT)
	{
		addTimeout(st, 3, TIME_OUT_TIME, 600);
	}

1 year share and every one no see that ? :(

It's a crap, that's why. No one is using it, at least you should NOT. We have this buffer reworked and working fine on aCis.

 

https://xp-dev.com/svn/aCis_community/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/L2BufferInstance.java

 

 

/Locked since it's a crap and by default the buffer exists.

Edited by SweeTs

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.