Hi, I would like to handle a buffer an ACIS 382 rev as far as I know db best pack.
Code: https: //maxcheaters.com/topic/223485-npc-player-buffer-acis/#comment-2688248
The problem is not found in the PlayerBuffer.java file
import net.sf.l2j.gameserver.data.BufferTable;
import net.sf.l2j.gameserver.model.actor.ai.CtrlIntention;
Does not find much fragment in the code.
PlayerBuffer.java file
Quote
@Override
public void onAction(Player player)
{
if (this != player.getTarget())
{
player.setTarget(this);
player.sendPacket(new MyTargetSelected(getObjectId(), 0));
player.sendPacket(new ValidateLocation(this));
}
else
{
if (!canInteract(player))
player.getAI().setIntention(CtrlIntention.INTERACT, this);
else
{
if (player.getInventory().getInventoryItemCount(Config.PVOTE_BUFF_ITEM_ID, 0) >= 1)
{
player.getInventory().destroyItemByItemId("VoteCoins", Config.PVOTE_BUFF_ITEM_ID, 1, player, null);
player.getInventory().updateDatabase();
player.sendPacket(new ItemList(player, true));
player.sendMessage(1 + " Vote eye destroyed.");
}
else
{
player.sendMessage("You dont have enough (" + 1 + ") vote item for buff.");
return;
}
}
if (votebuff != null)
{
if (player.getInventory().getInventoryItemCount(Config.PVOTE_BUFF_ITEM_ID, 0) >= Config.PVOTE_BUFF_ITEM_COUNT)
{
player.getInventory().destroyItemByItemId("VoteCoins", Config.PVOTE_BUFF_ITEM_ID, Config.PVOTE_BUFF_ITEM_COUNT, player, null);
player.getInventory().updateDatabase();
player.sendPacket(new ItemList(player, true));
player.sendMessage(Config.PVOTE_BUFF_ITEM_COUNT + " vote stone destroyed.");
}
else
{
player.sendMessage("You dont have enough (" + Config.PVOTE_BUFF_ITEM_COUNT + ") vote item for buff.");
return;
}
}
Where everything is written in red in capital letters. Config.java file
String[] FighterList = PFIGHTER_SET.split(",");
PFIGHTER_SET_LIST = new int[FighterList.length];
for (int i = 0; i < FighterList.length; i++)
PFIGHTER_SET_LIST[i] = Integer.parseInt(FighterList[i]);
String[] MageList = PMAGE_SET.split(",");
PMAGE_SET_LIST = new int[MageList.length];
for (int i = 0; i < MageList.length; i++)
PMAGE_SET_LIST[i] = Integer.parseInt(MageList[i]);
PBUFFER_BUFFLIST = new HashMap<>();
for (String skillInfo : PBUFFER_BUFFS.split(";"))
{
final String[] infos = skillInfo.split(",");
PBUFFER_BUFFLIST.put(Integer.valueOf(infos[0]), new BuffSkillHolder(Integer.valueOf(infos[0]), Integer.valueOf(infos[1]), infos[2], skillInfo));
}
Question
wertynas
Hi, I would like to handle a buffer an ACIS 382 rev as far as I know db best pack.

Code: https: //maxcheaters.com/topic/223485-npc-player-buffer-acis/#comment-2688248
The problem is not found in the PlayerBuffer.java file
import net.sf.l2j.gameserver.data.BufferTable;
import net.sf.l2j.gameserver.model.actor.ai.CtrlIntention;
Does not find much fragment in the code.
PlayerBuffer.java file
Where everything is written in red in capital letters. Config.java file
1 answer to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now