Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
community first-team
#1
вытащил комюнити из first-team и поставил в свой исходники l2phoenix но не работает ещо
при загрузке эти ошибки
Код:
[06.05.12 21:14:42:584]  INFO gameserver.GameServer: =================================================
[06.05.12 21:14:42:584]  INFO gameserver.GameServer: Revision: ................ ${build.revision}
[06.05.12 21:14:42:600]  INFO gameserver.GameServer: Build date: .............. 2012.05.06 21:06
[06.05.12 21:14:42:600]  INFO gameserver.GameServer: Compiler version: ........ 1.6.0_31-b05 (Sun Microsystems Inc.)
[06.05.12 21:14:42:600]  INFO gameserver.GameServer: =================================================
[06.05.12 21:14:42:631]  INFO gameserver.Config: Abuse: Loaded 18 abuse words.
[06.05.12 21:14:42:943]  INFO idfactory.IdFactory: IdFactory: Clear characters online status.
[06.05.12 21:14:42:959]  INFO idfactory.IdFactory: IdFactory: Extracted total 0 used id's.
[06.05.12 21:14:42:959]  INFO idfactory.BitSetIDFactory: IdFactory: 102912 id's available.
[06.05.12 21:14:43:130]  INFO scripts.Scripts: Scripts: Loading...
[06.05.12 21:15:03:832] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\CommunityBoard.java:133,11: The method setIsBBSUse(boolean) is undefined for the type l2p.gameserver.model.Player
[06.05.12 21:15:03:972] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:199,13: The method updateEffectIconsImpl() from the type l2p.gameserver.model.Player is not visible
[06.05.12 21:15:03:972] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:413,35: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:03:972] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:415,35: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:03:972] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:417,35: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:03:988] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:419,35: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:03:988] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:421,35: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:04:003] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:423,35: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:04:003] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:425,35: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:04:003] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:427,35: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:04:003] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:430,34: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:04:003] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:435,41: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:04:003] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:437,41: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:04:003] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:439,41: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:04:003] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:441,41: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:04:019] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:443,41: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:04:019] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:445,41: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:04:019] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:447,41: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:04:019] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:449,35: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:04:019] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:452,40: The method GetStringCount(int) is undefined for the type services.community.ManageBuffer
[06.05.12 21:15:04:019] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageBuffer.java:504,13: The method updateEffectIconsImpl() from the type l2p.gameserver.model.Player is not visible
[06.05.12 21:15:04:066] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageProf.java:386,39: CONGRATULATIONS__YOUVE_COMPLETED_A_CLASS_TRANSFER cannot be resolved or is not a field
[06.05.12 21:15:04:081] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageProf.java:627,32: CONGRATULATIONS__YOUVE_COMPLETED_YOUR_THIRDCLASS_TRANSFER_QUEST cannot be resolved or is not a field
[06.05.12 21:15:04:081] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageProf.java:629,32: CONGRATULATIONS__YOUVE_COMPLETED_A_CLASS_TRANSFER cannot be resolved or is not a field
[06.05.12 21:15:04:081] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageTeleport.java:288,35: The method GetStringCount(int) is undefined for the type services.community.ManageTeleport
[06.05.12 21:15:04:097] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageTeleport.java:290,35: The method GetStringCount(int) is undefined for the type services.community.ManageTeleport
[06.05.12 21:15:04:097] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageTeleport.java:292,35: The method GetStringCount(int) is undefined for the type services.community.ManageTeleport
[06.05.12 21:15:04:097] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageTeleport.java:294,35: The method GetStringCount(int) is undefined for the type services.community.ManageTeleport
[06.05.12 21:15:04:097] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageTeleport.java:296,35: The method GetStringCount(int) is undefined for the type services.community.ManageTeleport
[06.05.12 21:15:04:097] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageTeleport.java:298,35: The method GetStringCount(int) is undefined for the type services.community.ManageTeleport
[06.05.12 21:15:04:097] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageTeleport.java:300,35: The method GetStringCount(int) is undefined for the type services.community.ManageTeleport
[06.05.12 21:15:04:097] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageTeleport.java:302,35: The method GetStringCount(int) is undefined for the type services.community.ManageTeleport
[06.05.12 21:15:04:097] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageTeleport.java:305,34: The method GetStringCount(int) is undefined for the type services.community.ManageTeleport
[06.05.12 21:15:04:097] ERROR compiler.Compiler: C:\Users\California\Desktop\Sr2\gameserver\data\scripts\services\community\ManageTeleport.java:306,38: The method GetStringCount(int) is undefined for the type services.community.ManageTeleport
[06.05.12 21:15:05:485] ERROR scripts.Scripts: Scripts: Failed loading scripts!
подскажите в чем дело
managebuffer
manageproff
[SPOILER="manageteleport"]
[CODE]package services.community;

import l2p.commons.dbutils.DbUtils;

import l2p.gameserver.Config;
import l2p.gameserver.data.htm.HtmCache;
import l2p.gameserver.handler.bbs.CommunityBoardManager;
import l2p.gameserver.handler.bbs.ICommunityBoardHandler;
import l2p.gameserver.model.Player;
import l2p.gameserver.model.base.TeamType;
import l2p.gameserver.serverpackets.ShowBoard;
import l2p.gameserver.scripts.Functions;
import l2p.gameserver.scripts.Events;
import l2p.gameserver.scripts.ScriptFile;
import l2p.gameserver.database.DatabaseFactory;
import l2p.gameserver.utils.BbsUtil;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.*;

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

public class ManageTeleport extends Functions implements ScriptFile, ICommunityBoardHandler
{

static final Logger _log = LoggerFactory.getLogger(ManageTeleport.class);

@Override
public void onLoad()
{
if(Config.COMMUNITYBOARD_ENABLED && Config.COMMUNITYBOARD_TELEPORT_ENABLED)
{
_log.info("CommunityBoard: Teleport Community service loaded.");
CommunityBoardManager.getInstance().registerHandler(this);
}
}

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

@Override
public void onShutdown(){}

@Override
public String[] getBypassCommands()
{
return new String[] {
"_bbsteleport",
"_bbsgotoxyz",
"_bbstsave",
"_bbstrestore",
"_bbstdelete"
};
}

@Override
public void onBypassCommand(Player player, String bypass)
{
String html = "";

if(!CheckCondition(player))
return;

if(bypass.startsWith("_bbsteleport"))
{
StringTokenizer st2 = new StringTokenizer(bypass, ";");
String[] mBypass = st2.nextToken().split(":");
ShowHtml(mBypass.length == 1 ? "index" : mBypass[1], player);
}
else if(bypass.startsWith("_bbsgotoxyz"))
{
StringTokenizer st2 = new StringTokenizer(bypass, ";");
String[] mBypass = st2.nextToken().split(":");

int cX = Integer.parseInt(mBypass[2]);
int cY = Integer.parseInt(mBypass[3]);
int cZ = Integer.parseInt(mBypass[4]);

int pice = 0;
if (Config.COMMUNITYBOARD_BOARD_ALT_ENABLED)
{
if (player.getLevel() < 20)
pice = Config.COMMUNITYBOARD_TELEPORT_PICE_NG;
else if (player.getLevel() >= 20 && player.getLevel() <40)
pice = Config.COMMUNITYBOARD_TELEPORT_PICE_D;
else if (player.getLevel() >= 40 && player.getLevel() <52)
pice = Config.COMMUNITYBOARD_TELEPORT_PICE_C;
else if (player.getLevel() >= 52 && player.getLevel() <61)
pice = Config.COMMUNITYBOARD_TELEPORT_PICE_B;
else if (player.getLevel() >= 61 && player.getLevel() <76)
pice = Config.COMMUNITYBOARD_TELEPORT_PICE_A;
else if (player.getLevel() >= 76 && player.getLevel() <80)
pice = Config.COMMUNITYBOARD_TELEPORT_PICE_S;
else if (player.getLevel() >= 80 && player.getLevel() <84)
pice = Config.COMMUNITYBOARD_TELEPORT_PICE_S80;
else
pice = Config.COMMUNITYBOARD_TELEPORT_PICE_S84;
}
else
pice = Config.COMMUNITYBOARD_TELE_PICE;
String page = mBypass[1];

if(player.getAdena() < pice)
{
if (player.isLangRus())
player.sendMessage("Недостаточно сердств!");
else
player.sendMessage("It is not enough money!");
ShowHtml(page, player);
return;
}

player.teleToLocation(cX, cY, cZ, 0);

player.reduceAdena(pice);
ShowHtml(page, player);
}
else if(bypass.startsWith("_bbstsave"))
{
StringTokenizer st2 = new StringTokenizer(bypass, ";");
String[] mBypass = st2.nextToken().split(":");
int pice = Config.COMMUNITYBOARD_SAVE_TELE_PICE;
try
{
String name = mBypass[2].substring(1);

if(player.getAdena() < pice)
{
if (player.isLangRus())
player.sendMessage("Недостаточно сердств!");
else
player.sendMessage("It is not enough money!");
ShowHtml(mBypass[1], player);
return;
}

if(getTeleCount(player) >= 7)
{
if (player.isLangRus())
player.sendMessage("Превышено максимално допустимое количество точек возвращения!");
else
player.sendMessage("Exceeded the maximum number of return points!");
ShowHtml(mBypass[1], player);
return;
}
if(!CheckTeleName(player, name))
{
if (player.isLangRus())
player.sendMessage("Точка с таким названи...
#2
Нет методов и переменных в соответствующих Классах. Переводите ошибки.. Я не думаю, что вы сможете их исправить, ибо нет знаний.
#3
Ro_0TT Написал:Нет методов и переменных в соответствующих Классах. Переводите ошибки.. Я не думаю, что вы сможете их исправить, ибо нет знаний.

как в них нету если на других исодников рабоатет
#4
Исходники разных команд не одинаковы.
#5
Zte1 Написал:вытащил комюнити из first-team и поставил в свой исходники l2phoenix

:el: Cool Story


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Крупному проекту требуется спонсор! (Interlude Pain-Team) iLee 3 3,878 07-17-2017, 02:32 PM
Последний пост: iLee
  JTS-TEAM DeG 29 8,055 05-31-2015, 11:26 PM
Последний пост: moveton
  Community Manager \ Moderator \ PR ( Clan ) Suspense 3 1,986 05-13-2015, 08:39 PM
Последний пост: Zeratyl
  Community Board (Ov) Zte1 3 2,335 05-06-2012, 08:26 PM
Последний пост: KilRoy
  исходники our-team - слиты Dreampwer 6 3,226 11-01-2009, 12:13 PM
Последний пост: PROGRAMMATOR
  La2base [Java Developers Team] Interlude 1.1.3 drakola 3 4,072 09-26-2008, 11:30 AM
Последний пост: Квося

Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)