Авторизация

Войдите, используя свой логин и пароль:

  • Страница 1 из 1
  • 1
Модератор форума: BlesseNtumble  
Форум » Lineage 2 "Java" » Дополнения к серверам » Бафер в комунити (...)
Бафер в комунити
Отправлено 14.08.2012 - 18:511
Пользователи
222 сообщений
Мужчина
Статус: Offline
Баффер в комунити бафает не корректно.
кратко он бафает 1 баф потом надо ждать 5-6 сек чтобы следующий бафнуть...
вот лог гс он выдает ошибки
Code
[12:46:10] INFO =================================================
[12:46:10] INFO AllowedMemory: ........... 1019456 KB
[12:46:10] INFO Allocated: .......... 1019456 KB (100.0%)
[12:46:10] INFO Non-Allocated: ...... 0 KB (0.0%)
[12:46:10] INFO AllocatedMemory: ......... 1019456 KB
[12:46:10] INFO Used: ............... 790985 KB (77.589%)
[12:46:10] INFO Unused (cached): .... 228470 KB (22.411%)
[12:46:10] INFO UseableMemory: ........... 228470 KB (22.411%)
[12:46:10] INFO =================================================
[12:46:10] INFO SpawnManager: spawned 443 npc; spawns: 121; group: DAY
[12:46:10] INFO Registered on loginserver as 1 [Bartz]
[12:46:40] INFO Restored 0 offline traders
[12:47:09] INFO saved 0 ip in the block list
[12:47:09] ERROR Bad RequestBypassToServer: _bbsbuff;buff;530;1
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at services.community.BuffManager.onBypassCommand(BuffManager.java:132)
at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(Re
questBypassToServer.java:189)
at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameCli
entPacket.java:51)
at l2r.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:38)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[12:47:19] ERROR Bad RequestBypassToServer: _bbsbuff;buff;264;1
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at services.community.BuffManager.onBypassCommand(BuffManager.java:132)
at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(Re
questBypassToServer.java:189)
at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameCli
entPacket.java:51)
at l2r.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:38)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[12:47:26] ERROR Bad RequestBypassToServer: _bbsbuff;buff;349;1
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at services.community.BuffManager.onBypassCommand(BuffManager.java:132)
at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(Re
questBypassToServer.java:189)
at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameCli
entPacket.java:51)
at l2r.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:38)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[12:48:18] ERROR Bad RequestBypassToServer: _bbsbuff;buff;264;1
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at services.community.BuffManager.onBypassCommand(BuffManager.java:132)
at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(Re
questBypassToServer.java:189)
at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameCli
entPacket.java:51)
at l2r.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:38)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[12:48:25] ERROR Bad RequestBypassToServer: _bbsbuff;buff;764;1
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at services.community.BuffManager.onBypassCommand(BuffManager.java:132)
at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(Re
questBypassToServer.java:189)
at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameCli
entPacket.java:51)
at l2r.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:38)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[12:48:34] ERROR Bad RequestBypassToServer: _bbsbuff;buff;365;1
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at services.community.BuffManager.onBypassCommand(BuffManager.java:132)
at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(Re
questBypassToServer.java:189)
at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameCli
entPacket.java:51)
at l2r.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:38)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[12:50:08] INFO FourSepulchersManager: Entry time: Thu Aug 09 12:55:08 MSK 2012

[12:55:09] ERROR Bad RequestBypassToServer: _bbsbuff;buff;274;1
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at services.community.BuffManager.onBypassCommand(BuffManager.java:132)
at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(Re
questBypassToServer.java:189)
at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameCli
entPacket.java:51)
at l2r.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:38)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[12:56:57] INFO Abuse: Loaded 18 abuse words.
[12:57:02] ERROR Bad RequestBypassToServer: _bbsbuff;buff;365;1
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at services.community.BuffManager.onBypassCommand(BuffManager.java:132)
at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(Re
questBypassToServer.java:189)
at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameCli
entPacket.java:51)
at l2r.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:38)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[12:57:04] ERROR Bad RequestBypassToServer: _bbsbuff;buff;277;1
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at services.community.BuffManager.onBypassCommand(BuffManager.java:132)
at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(Re
questBypassToServer.java:189)
at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameCli
entPacket.java:51)
at l2r.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:38)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Добавлено (14.08.2012, 17:24)
---------------------------------------------
говорят это если скрипт исправить то получиться где его править чтобы работал норм все есть)

Добавлено (14.08.2012, 18:50)
---------------------------------------------

Code
package services.community;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.StringTokenizer;
import java.util.concurrent.ScheduledFuture;

import javolution.text.TextBuilder;
import l2r.commons.dbutils.DbUtils;
import l2r.gameserver.Config;
import l2r.gameserver.ThreadPoolManager;
import l2r.gameserver.dao.BuffManagerDAO;
import l2r.gameserver.data.htm.HtmCache;
import l2r.gameserver.database.DatabaseFactory;
import l2r.gameserver.handler.bbs.CommunityBoardManager;
import l2r.gameserver.handler.bbs.ICommunityBoardHandler;
import l2r.gameserver.model.Effect;
import l2r.gameserver.model.Player;
import l2r.gameserver.model.Skill;
import l2r.gameserver.model.Summon;
import l2r.gameserver.model.Zone.ZoneType;
import l2r.gameserver.network.serverpackets.ShowBoard;
import l2r.gameserver.scripts.ScriptFile;
import l2r.gameserver.skills.effects.EffectTemplate;
import l2r.gameserver.stats.Env;
import l2r.gameserver.tables.SkillTable;
import l2r.gameserver.utils.AutoBan;
import l2r.gameserver.utils.GCSArray;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
  * @author KilRoy
  * Community Board v2.0 Buff (Player/Pet + Sheme) MOD
  */
public class BuffManager implements ScriptFile, ICommunityBoardHandler
{
  private static final Logger _log = LoggerFactory.getLogger(BuffManager.class);

  /**
   * Имплементированые методы скриптов
   */
  @Override
  public void onLoad()
  {
   if(Config.COMMUNITYBOARD_ENABLED && Config.BBS_PVP_BUFFER_ENABLED)
   {
    _log.info("CommunityBoard: Manage Buffer service loaded.");
    CommunityBoardManager.getInstance().registerHandler(this);
   }
  }

  @Override
  public void onReload()
  {
   if(Config.COMMUNITYBOARD_ENABLED && Config.BBS_PVP_BUFFER_ENABLED)
    CommunityBoardManager.getInstance().removeHandler(this);
  }

  @Override
  public void onShutdown()
  {}

  public class CBBuffGroups
  {
   public int GpId = 0; // ID группы
   public String GpName = ""; // Имя группы
   public int PlayerId = 0; // ID владельца
  }

  public class CBBuffGroup
  {
   public int OneId = 0; // Уникальный ID группы в таблице communitybuff_grp_buffs
   public int OneGpId = 0; // ID группы
   public int OnePlayerId = 0; // ID владельца
   public int OneBuffId = 0; // ID баффа
  }

  public class CBBuffAllowedBuffs
  {
   public int BuffLvL = 0; // LvL баффа
   public int BuffId = 0; // ID баффа
  }

  /**
   * Регистратор команд
   */
  @Override
  public String[] getBypassCommands()
  {
   return new String[] {
     "_bbsbuff;",
     "_bbsbuff;buff;",
     "_bbsbuff;cancel",
     "_bbsbuff;restore",
     "_bbsbuff;buffgrp;",
     "_bbsbuff;bufffixedgrp;",
     "_bbsbuff;addgrp; ",
     "_bbsbuff;dellGrp;",
     "_bbsbuff;use;",
     "_bbsbuff;usefixed;",
     "_bbsbuff;editegrp;",
     "_bbsbuff;addbuffin;",
     "_bbsbuff;addbuffingrp;",
     "_bbsbuff;dellbufffrom;",
     "_bbsbuff;buffgrpauto;",
     "_bbsbuff;buffgrpautostop;",
     "_bbsbuff;buffgrpautopet;",
     "_bbsbuff;buffgrpautopetstop;" };
  }

  @Override
  public void onBypassCommand(Player activeChar, String command)
  {
   activeChar.setSessionVar("add_fav", null);
   Summon pet = activeChar.getPet();

   if(command.equals("_bbsbuff;"))
   {
    showBuffIndexPage(activeChar);
   }
   else if(command.startsWith("_bbsbuff;buff;"))
   {
    StringTokenizer buffOne = new StringTokenizer(command, ";");
    buffOne.nextToken();
    buffOne.nextToken();
    int BuffIdUse = Integer.parseInt(buffOne.nextToken());
    int BuffLvL = Integer.parseInt(buffOne.nextToken());
    BuffOne(activeChar, BuffIdUse, BuffLvL);
    UseFixedBuffGrp(activeChar, activeChar.getVar("GrpName"), Integer.parseInt(activeChar.getVar("page")));

   }
   else if (command.startsWith("_bbsbuff;cancel"))  
   {
    if (activeChar.getEffectList().getEffectsBySkillId(Skill.SKILL_RAID_CURSE) == null)
     activeChar.getEffectList().stopAllEffects();
    if (pet != null && pet.getEffectList().getEffectsBySkillId(Skill.SKILL_RAID_CURSE) == null)
     pet.getEffectList().stopAllEffects();
    showBuffIndexPage(activeChar);
   }
   if(command.startsWith("_bbsbuff;restore"))
   {
    activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
    activeChar.setCurrentCp(activeChar.getMaxCp());
    onBypassCommand(activeChar, "_bbsbuff;");
    return;
   }
   else if(command.startsWith("_bbsbuff;buffgrp;"))
   {
    StringTokenizer st = new StringTokenizer(command, ";");
    st.nextToken();
    st.nextToken();
    int BuffIdUse = Integer.parseInt(st.nextToken());
    String target = st.nextToken();
    BuffGrp(activeChar, BuffIdUse, target);
    showBuffIndexPage(activeChar);
   }
   else if(command.startsWith("_bbsbuff;bufffixedgrp;"))
   {
    StringTokenizer st = new StringTokenizer(command, ";");
    st.nextToken();
    st.nextToken();
    String GrpName = st.nextToken();
    String target = st.nextToken();
    BuffFixedGrp(activeChar, GrpName, target);
    showBuffIndexPage(activeChar);
   }
   else if(command.startsWith("_bbsbuff;addgrp; "))
   {
    StringTokenizer st = new StringTokenizer(command, ";");
    st.nextToken();
    st.nextToken();
    String GrpNameAdd = st.nextToken();
    AddBuffGrp(activeChar, GrpNameAdd);
    showBuffIndexPage(activeChar);
   }
   else if(command.startsWith("_bbsbuff;dellGrp;"))
   {
    StringTokenizer st = new StringTokenizer(command, ";");
    st.nextToken();
    st.nextToken();
    int GpNameDell = Integer.parseInt(st.nextToken());
    DellBuffGrp(activeChar, GpNameDell);
    showBuffIndexPage(activeChar);
   }
   else if(command.startsWith("_bbsbuff;use;"))
   {
    StringTokenizer st = new StringTokenizer(command, ";");
    st.nextToken();
    st.nextToken();
    int GpIdUse = Integer.parseInt(st.nextToken());
    UseBuffGrp(activeChar, GpIdUse);
   }
   else if(command.startsWith("_bbsbuff;usefixed;"))
   {
    StringTokenizer st = new StringTokenizer(command, ";");
    st.nextToken();
    st.nextToken();
    String GrpName = st.nextToken();
    int page = Integer.parseInt(st.nextToken());
    UseFixedBuffGrp(activeChar, GrpName, page);
    if(activeChar.getVar("GrpName") != null && activeChar.getVar("page") != null)
    {
     activeChar.unsetVar("GrpName");
     activeChar.unsetVar("page");
    }
    activeChar.setVar("GrpName", GrpName, 100000);
    activeChar.setVar("page", String.valueOf(page), 100000);
   }
   else if(command.startsWith("_bbsbuff;editegrp;"))
   {
    StringTokenizer st = new StringTokenizer(command, ";");
    st.nextToken();
    st.nextToken();
    int GpIdUse = Integer.parseInt(st.nextToken());
    EditeBuffGrp(activeChar, GpIdUse);
   }
   else if(command.startsWith("_bbsbuff;addbuffin;"))
   {
    StringTokenizer st = new StringTokenizer(command, ";");
    st.nextToken();
    st.nextToken();
    int GpIdUse = Integer.parseInt(st.nextToken());
    int page = Integer.parseInt(st.nextToken());
    EditeAddBuffInGrp(activeChar, GpIdUse, page);
   }
   else if(command.startsWith("_bbsbuff;addbuffingrp;"))
   {
    StringTokenizer st = new StringTokenizer(command, ";");
    st.nextToken();
    st.nextToken();
    int GpIdUse = Integer.parseInt(st.nextToken());
    int Buff = Integer.parseInt(st.nextToken());
    int BuffLvL = Integer.parseInt(st.nextToken());
    AddBuffInGrp(activeChar, GpIdUse, Buff, BuffLvL);
   }
   else if(command.startsWith("_bbsbuff;dellbufffrom;"))
   {
    StringTokenizer st = new StringTokenizer(command, ";");
    st.nextToken();
    st.nextToken();
    int GpIdUse = Integer.parseInt(st.nextToken());
    int Buff = Integer.parseInt(st.nextToken());
    DellBuffFromGrp(activeChar, GpIdUse, Buff);
   }
   else if(command.startsWith("_bbsbuff;buffgrpauto;"))
   {
    StringTokenizer st = new StringTokenizer(command, ";");
    st.nextToken();
    st.nextToken();
    int GpIdUse = Integer.parseInt(st.nextToken());
    String GpNameUse = st.nextToken();
    int price = Integer.parseInt(st.nextToken());
    StartAutoBuff(activeChar, GpIdUse, GpNameUse, price);//Запуск задачи.
   }
   else if(command.startsWith("_bbsbuff;buffgrpautostop;"))
   {
    StringTokenizer st = new StringTokenizer(command, ";");
    st.nextToken();
    st.nextToken();
    int GpIdUse = Integer.parseInt(st.nextToken());
    String GpNameUse = st.nextToken();
    StopAutoBuff(activeChar, GpIdUse, GpNameUse);//Остановка задачи.
   }
   else if(command.startsWith("_bbsbuff;buffgrpautopet;"))
   {
    StringTokenizer st = new StringTokenizer(command, ";");
    st.nextToken();
    st.nextToken();
    int GpIdUse = Integer.parseInt(st.nextToken());
    String GpNameUse = st.nextToken();
    int price = Integer.parseInt(st.nextToken());
    StartAutoBuffPet(activeChar, GpIdUse, GpNameUse, price);//Запуск задачи.
   }
   else if(command.startsWith("_bbsbuff;buffgrpautopetstop;"))
   {
    StringTokenizer st = new StringTokenizer(command, ";");
    st.nextToken();
    st.nextToken();
    int GpIdUse = Integer.parseInt(st.nextToken());
    String GpNameUse = st.nextToken();
    StopAutoBuffPet(activeChar, GpIdUse, GpNameUse);//Остановка задачи.
   }

Добавлено (14.08.2012, 18:51)
---------------------------------------------
кусок скрипта

Профиль Личное сообщение Дом. страница icq
7
Отправлено 14.08.2012 - 21:412
Пользователи
528 сообщений
Мужчина
Статус: Offline
Quote (ex3me)
вот лог гс он выдает ошибки

[12:47:19] ERROR Bad RequestBypassToServer: _bbsbuff;buff;264;1 .......at services.community.BuffManager.onBypassCommand(BuffManager.java:132)
Quote (ex3me)
где его править

UseFixedBuffGrp(activeChar, activeChar.getVar("GrpName"), Integer.parseInt(activeChar.getVar("page")));
Quote (ex3me)
чтобы работал норм все есть

тогда какого хрена ты сюда пишешь?
Нужна помощь? Обращайся!
http://flash-dev.in.ua
Профиль Личное сообщение Дом. страница icq
49
Отправлено 14.08.2012 - 23:073
Пользователи
222 сообщений
Мужчина
Статус: Offline
ясно спс за пост выше

Quote (den01101)
тогда какого хрена ты сюда пишешь?


я извиняюсь, имелось ввиду исходники и т.д.

п.с. в следующий раз буду все описывать без скрытого смысла)
Профиль Личное сообщение Дом. страница icq
7
Форум » Lineage 2 "Java" » Дополнения к серверам » Бафер в комунити (...)
  • Страница 1 из 1
  • 1
Поиск: