Вообщем, с одного сервака содрал донат менеджер, т. е. у меня есть файл *.java. Мне надо его переделать так, чтоб он читался с папки custom. Просто перенес его, переделал импорты, добавил в базу - безрезультатно. Может я что-то упустил?
Welcome to 100NT форум администраторов игровых серверов
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Переключатель чата Чат
|
|||||||||
#2
Отправлено 05 February 2012 - 19:15
#3
Отправлено 05 February 2012 - 19:45
Пожалуйста
http://turbobit.net/lv9fmmurt0c4.html
http://turbobit.net/lv9fmmurt0c4.html
Сообщение отредактировал Navi: 05 February 2012 - 19:47
#4
Отправлено 06 February 2012 - 08:03
А лучше файлообменника не найти? Даже качать не буду.
Бесплатная доска объявлений "Free2Sell"
#5
Отправлено 06 February 2012 - 10:38
Пожалуйста Скачать файл L2DonateInstance.java без ожидания
#7
Отправлено 06 February 2012 - 13:32
вообщем тут он ругается на все методы
49. ERROR in \Donate.java (at line 495)
InventoryUpdate iu = new InventoryUpdate();
^^^^^^^^^^^^^^^
InventoryUpdate cannot be resolved to a type
----------
50. ERROR in \Donate.java (at line 495)
InventoryUpdate iu = new InventoryUpdate();
^^^^^^^^^^^^^^^
InventoryUpdate cannot be resolved to a type
----------
51. ERROR in \Donate.java (at line 518)
L2PcInstance.savePlayerSex(player, 1);
^^^^^^^^^^^^
L2PcInstance cannot be resolved
----------
52. ERROR in \Donate.java (at line 534)
player.sendPacket(new UserInfo(player));
^^^^^^^^
UserInfo cannot be resolved to a type
----------
53. ERROR in \Donate.java (at line 560)
public void onActionShift(L2GameClient client)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method onActionShift(L2GameClient) of type L2DonateInstance must override or
implement a supertype method
----------
54. ERROR in \Donate.java (at line 562)
L2PcInstance player = client.getActiveChar();
^^^^^^^^^^^^
L2PcInstance cannot be resolved to a type
----------
55. ERROR in \Donate.java (at line 564)
player.sendPacket(new ActionFailed());
^^^^^^^^^^^^
ActionFailed cannot be resolved to a type
----------
56. ERROR in \Donate.java (at line 587)
_log.info("PremiumService: Could not increase data");
^^^^
_log cannot be resolved
----------
57. ERROR in \Donate.java (at line 601)
private void setHero(L2PcInstance player, int days)
^^^^^^^^^^^^
L2PcInstance cannot be resolved to a type
----------
58. ERROR in \Donate.java (at line 612)
Heroes.getInstance().addHero(player, days);
^^^^^^
Heroes cannot be resolved
----------
59. ERROR in \Donate.java (at line 627)
private void addCRP(L2PcInstance player, int crp)
^^^^^^^^^^^^
L2PcInstance cannot be resolved to a type
----------
59 problems (59 errors)The public type L2DonateInstance must be defined in its o
wn file
L2FolkInstance cannot be resolved to a type
The import l2dot.gameserver.model.entity.events.Heroes cannot be resolved
The import l2dot.gameserver.network.serverpackets cannot be resolved
The import l2dot.gameserver.network.serverpackets cannot be resolved
The import l2dot.gameserver.network.serverpackets cannot be resolved
The import l2dot.gameserver.network.serverpackets cannot be resolved
L2PcInstance cannot be resolved to a type
L2PcInstance cannot be resolved to a type
L2PcInstance cannot be resolved to a type
Config.COL_CHANGENAME cannot be resolved
Config.COL_NICKCOLOR cannot be resolved
Config.COL_TITLECOLOR cannot be resolved
Config.COL_CHANGECLANNAME cannot be resolved
Config.COL_6LVL_CLAN cannot be resolved
Config.COL_7LVL_CLAN cannot be resolved
Config.COL_8LVL_CLAN cannot be resolved
Config.COL_NOBLESSE cannot be resolved
Config.COL_PREM1 cannot be resolved
Config.COL_PREM2 cannot be resolved
Config.COL_PREM3 cannot be resolved
Config.COL_SEX cannot be resolved
Config.COL_PK cannot be resolved
Config.COL_HERO cannot be resolved
Config.COL_CRP cannot be resolved
Config.CRP_ITEM_ID cannot be resolved
Config.DON_ITEM_ID cannot be resolved
The constructor java.lang.Object(int, l2dot.gameserver.templates.L2NpcTemplate)
is undefined
The method getHtmlPath(int, int) of type custom.Donate.L2DonateInstance must ove
rride or implement a supertype method
The method getCastle() is undefined for the type custom.Donate.L2DonateInstance
MagicSkillUser cannot be resolved to a type
MagicSkillUser cannot be resolved to a type
MagicSkillUser cannot be resolved to a type
MagicSkillUser cannot be resolved to a type
MagicSkillUser cannot be resolved to a type
MagicSkillUser cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
L2PcInstance cannot be resolved
UserInfo cannot be resolved to a type
The method onActionShift(l2dot.gameserver.network.L2GameClient) of type custom.D
onate.L2DonateInstance must override or implement a supertype method
L2PcInstance cannot be resolved to a type
ActionFailed cannot be resolved to a type
_log cannot be resolved
Heroes cannot be resolved
Failed executing script: E:\l2server\data\scripts\custom\Donate\Donate.java. See
Donate.java.error.log for details.
49. ERROR in \Donate.java (at line 495)
InventoryUpdate iu = new InventoryUpdate();
^^^^^^^^^^^^^^^
InventoryUpdate cannot be resolved to a type
----------
50. ERROR in \Donate.java (at line 495)
InventoryUpdate iu = new InventoryUpdate();
^^^^^^^^^^^^^^^
InventoryUpdate cannot be resolved to a type
----------
51. ERROR in \Donate.java (at line 518)
L2PcInstance.savePlayerSex(player, 1);
^^^^^^^^^^^^
L2PcInstance cannot be resolved
----------
52. ERROR in \Donate.java (at line 534)
player.sendPacket(new UserInfo(player));
^^^^^^^^
UserInfo cannot be resolved to a type
----------
53. ERROR in \Donate.java (at line 560)
public void onActionShift(L2GameClient client)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method onActionShift(L2GameClient) of type L2DonateInstance must override or
implement a supertype method
----------
54. ERROR in \Donate.java (at line 562)
L2PcInstance player = client.getActiveChar();
^^^^^^^^^^^^
L2PcInstance cannot be resolved to a type
----------
55. ERROR in \Donate.java (at line 564)
player.sendPacket(new ActionFailed());
^^^^^^^^^^^^
ActionFailed cannot be resolved to a type
----------
56. ERROR in \Donate.java (at line 587)
_log.info("PremiumService: Could not increase data");
^^^^
_log cannot be resolved
----------
57. ERROR in \Donate.java (at line 601)
private void setHero(L2PcInstance player, int days)
^^^^^^^^^^^^
L2PcInstance cannot be resolved to a type
----------
58. ERROR in \Donate.java (at line 612)
Heroes.getInstance().addHero(player, days);
^^^^^^
Heroes cannot be resolved
----------
59. ERROR in \Donate.java (at line 627)
private void addCRP(L2PcInstance player, int crp)
^^^^^^^^^^^^
L2PcInstance cannot be resolved to a type
----------
59 problems (59 errors)The public type L2DonateInstance must be defined in its o
wn file
L2FolkInstance cannot be resolved to a type
The import l2dot.gameserver.model.entity.events.Heroes cannot be resolved
The import l2dot.gameserver.network.serverpackets cannot be resolved
The import l2dot.gameserver.network.serverpackets cannot be resolved
The import l2dot.gameserver.network.serverpackets cannot be resolved
The import l2dot.gameserver.network.serverpackets cannot be resolved
L2PcInstance cannot be resolved to a type
L2PcInstance cannot be resolved to a type
L2PcInstance cannot be resolved to a type
Config.COL_CHANGENAME cannot be resolved
Config.COL_NICKCOLOR cannot be resolved
Config.COL_TITLECOLOR cannot be resolved
Config.COL_CHANGECLANNAME cannot be resolved
Config.COL_6LVL_CLAN cannot be resolved
Config.COL_7LVL_CLAN cannot be resolved
Config.COL_8LVL_CLAN cannot be resolved
Config.COL_NOBLESSE cannot be resolved
Config.COL_PREM1 cannot be resolved
Config.COL_PREM2 cannot be resolved
Config.COL_PREM3 cannot be resolved
Config.COL_SEX cannot be resolved
Config.COL_PK cannot be resolved
Config.COL_HERO cannot be resolved
Config.COL_CRP cannot be resolved
Config.CRP_ITEM_ID cannot be resolved
Config.DON_ITEM_ID cannot be resolved
The constructor java.lang.Object(int, l2dot.gameserver.templates.L2NpcTemplate)
is undefined
The method getHtmlPath(int, int) of type custom.Donate.L2DonateInstance must ove
rride or implement a supertype method
The method getCastle() is undefined for the type custom.Donate.L2DonateInstance
MagicSkillUser cannot be resolved to a type
MagicSkillUser cannot be resolved to a type
MagicSkillUser cannot be resolved to a type
MagicSkillUser cannot be resolved to a type
MagicSkillUser cannot be resolved to a type
MagicSkillUser cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
InventoryUpdate cannot be resolved to a type
L2PcInstance cannot be resolved
UserInfo cannot be resolved to a type
The method onActionShift(l2dot.gameserver.network.L2GameClient) of type custom.D
onate.L2DonateInstance must override or implement a supertype method
L2PcInstance cannot be resolved to a type
ActionFailed cannot be resolved to a type
_log cannot be resolved
Heroes cannot be resolved
Failed executing script: E:\l2server\data\scripts\custom\Donate\Donate.java. See
Donate.java.error.log for details.
#9
Отправлено 06 February 2012 - 13:43
я уверен, с импортами всё нормально вот как я исправил:
package custom.Donate;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Calendar;
import java.util.StringTokenizer;
import l2dot.Config;
import l2dot.L2DatabaseFactory;
import l2dot.gameserver.datatables.CharNameTable;
import l2dot.gameserver.datatables.ClanTable;
import l2dot.gameserver.model.L2ItemInstance;
import l2dot.gameserver.model.L2Multisell;
import l2dot.gameserver.model.entity.events.Heroes;
import l2dot.gameserver.network.L2GameClient;
import l2dot.gameserver.network.serverpackets.ActionFailed;
import l2dot.gameserver.network.serverpackets.InventoryUpdate;
import l2dot.gameserver.network.serverpackets.MagicSkillUser;
import l2dot.gameserver.network.serverpackets.UserInfo;
import l2dot.gameserver.templates.L2NpcTemplate;
оригинальный квест
import sys
from l2dot.gameserver.model.quest import State
from l2dot.gameserver.model.quest import QuestState
from l2dot.gameserver.model.quest.jython import QuestJython as JQuest
единственное, я не уверен в пути к пакетам, а так импорты правильные
package custom.Donate;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Calendar;
import java.util.StringTokenizer;
import l2dot.Config;
import l2dot.L2DatabaseFactory;
import l2dot.gameserver.datatables.CharNameTable;
import l2dot.gameserver.datatables.ClanTable;
import l2dot.gameserver.model.L2ItemInstance;
import l2dot.gameserver.model.L2Multisell;
import l2dot.gameserver.model.entity.events.Heroes;
import l2dot.gameserver.network.L2GameClient;
import l2dot.gameserver.network.serverpackets.ActionFailed;
import l2dot.gameserver.network.serverpackets.InventoryUpdate;
import l2dot.gameserver.network.serverpackets.MagicSkillUser;
import l2dot.gameserver.network.serverpackets.UserInfo;
import l2dot.gameserver.templates.L2NpcTemplate;
оригинальный квест
import sys
from l2dot.gameserver.model.quest import State
from l2dot.gameserver.model.quest import QuestState
from l2dot.gameserver.model.quest.jython import QuestJython as JQuest
единственное, я не уверен в пути к пакетам, а так импорты правильные
Сообщение отредактировал Navi: 06 February 2012 - 13:44
#10
Отправлено 06 February 2012 - 14:40
И будет ругаться. Либо пихайте в ядро, где стоял, либо учим яву. Ну накройняк качаем НПСа на яве и смотрим, как реализован он и сравниваем со своим.
Бесплатная доска объявлений "Free2Sell"
Количество пользователей, читающих эту тему: 1
0 пользователей, 1 гостей, 0 скрытых пользователей

Вход
Регистрация
Наверх









