![]() |
![]() |
|
Lineage II
|
![]() |
Опции темы |
![]() |
#1 |
Пользователь
|
![]()
У кого была такая проблема, я взял бафера
![]() Сделан под l2dot возможно и старый бафер но мне нравится его интерфейс и его возможности сохранять баф (профили). Моя сборка l2jstable. Когда все закидаю меняю импорты мне выдает 41 ошибку в cmd. Ошибки здесь:Свернуть ↑
Свернуть ↑Развернуть ↓
compile: [javac] C:\sourceserv\build.xml:43: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 1297 source files to C:\sourceserv\build\classes [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\CharShemesTable.java:22: class CharSchemesTable is public, should be declared in a file named CharSchemesTable.java [javac] public class CharSchemesTable [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:86: cannot find symbol [javac] symbol : method showChatWnd(net.sf.l2j.gameserver.model.actor.inst ance.L2PcInstance,java.lang.String,int,int) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatWnd(client, after, mp_restore, 57); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:96: cannot find symbol [javac] symbol : method showChatWnd(net.sf.l2j.gameserver.model.actor.inst ance.L2PcInstance,java.lang.String,int,int) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatWnd(client, after, hp_restore, 57); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:106: cannot find symbol [javac] symbol : method showChatWnd(net.sf.l2j.gameserver.model.actor.inst ance.L2PcInstance,java.lang.String,int,int) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatWnd(client, after, cp_restore, 57); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:112: cannot find symbol [javac] symbol : method showChatWnd(net.sf.l2j.gameserver.model.actor.inst ance.L2PcInstance,java.lang.String) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatWnd(client, after); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:119: cannot find symbol [javac] symbol : method showChatErrWnd(net.sf.l2j.gameserver.model.actor.i nstance.L2PcInstance,java.lang.String,java.lang.St ring) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatErrWnd(client, after, client.isGM() ? "buffer is not initialized." : "Come back later."); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:125: cannot find symbol [javac] symbol : method showChatErrWnd(net.sf.l2j.gameserver.model.actor.i nstance.L2PcInstance,java.lang.String,java.lang.St ring) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatErrWnd(client, after, client.isGM() ? (new StringBuilder("template ")).append(st).append(" is null.").toString() : "Come back later."); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:131: cannot find symbol [javac] symbol : method showChatWnd(net.sf.l2j.gameserver.model.actor.inst ance.L2PcInstance,java.lang.String,int,int) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatWnd(client, after, buff.itemCount, buff.itemId); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:143: cannot find symbol [javac] symbol : method showChatWnd(net.sf.l2j.gameserver.model.actor.inst ance.L2PcInstance,java.lang.String) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatWnd(client, after); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:89: cannot find symbol [javac] symbol : class L2Summon [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] L2Summon pet=player.getPet(); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:108: cannot find symbol [javac] symbol : class L2Summon [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] L2Summon pet=player.getPet(); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:123: cannot find symbol [javac] symbol : variable SkillTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] int level=SkillTable.getInstance().getMaxLevel(id,0); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:128: cannot find symbol [javac] symbol : variable SkillTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] SkillTable.getInstance().getInfo(id,level).getEffe cts(player,player); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:141: cannot find symbol [javac] symbol : variable SkillTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] int level=SkillTable.getInstance().getMaxLevel(id,0); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:144: cannot find symbol [javac] symbol : class L2Summon [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] L2Summon pet=player.getPet(); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:148: cannot find symbol [javac] symbol : variable SkillTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] SkillTable.getInstance().getInfo(id,level).getEffe cts(pet,pet); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:187: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] if (CharSchemesTable.getInstance().getScheme( [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:192: cannot find symbol [javac] symbol : class L2Skill [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] for (L2Skill sk : CharSchemesTable.getInstance().getScheme( [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:192: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] for (L2Skill sk : CharSchemesTable.getInstance().getScheme( [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:201: cannot find symbol [javac] symbol : class L2Skill [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] for (L2Skill sk : CharSchemesTable.getInstance().getScheme( [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:201: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] for (L2Skill sk : CharSchemesTable.getInstance().getScheme( [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:204: cannot find symbol [javac] symbol : class L2Summon [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] L2Summon pet = player.getPet(); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:237: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] if (CharSchemesTable.getInstance().getAllSchemes(play er.getObjectId()) != null [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:238: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] && CharSchemesTable.getInstance().getAllSchemes(playe r.getObjectId()).containsKey(name)) [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:240: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] CharSchemesTable.getInstance().getAllSchemes(playe r.getObjectId()).remove(name); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:242: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] if (CharSchemesTable.getInstance().getAllSchemes(play er.getObjectId()) == null) [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:245: cannot find symbol [javac] symbol : class FastMap [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] new FastMap<String, FastList<L2Skill>>(6)); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:245: cannot find symbol [javac] symbol : class FastList [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] new FastMap<String, FastList<L2Skill>>(6)); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:245: cannot find symbol [javac] symbol : class L2Skill [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] new FastMap<String, FastList<L2Skill>>(6)); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:244: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] CharSchemesTable.getInstance().getSchemesTable().p ut(player.getObjectId(), [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:248: cannot find symbol [javac] symbol : class FastList [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] new FastList<L2Skill>(69)); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:248: cannot find symbol [javac] symbol : class L2Skill [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] new FastList<L2Skill>(69)); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:247: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] CharSchemesTable.getInstance().setScheme(player.ge tObjectId(),name.trim(), [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:249: cannot find symbol [javac] symbol : class L2Effect [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] L2Effect[] s; [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:257: cannot find symbol [javac] symbol : class L2Summon [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] L2Summon pet=player.getPet(); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:264: cannot find symbol [javac] symbol : class L2Effect [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] L2Effect value = s[i]; [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:277: cannot find symbol [javac] symbol : variable SkillTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] SkillTable.getInstance().getInfo(Id, value.getSkill().getLevel())); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:275: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] CharSchemesTable.getInstance().getScheme( [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\CharShemesTable.java:139: cannot find symbol [javac] symbol : variable NPCBUFFER_MAX_SCHEMES [javac] location: class net.sf.l2j.Config [javac] && map.size() <= Config.NPCBUFFER_MAX_SCHEMES) [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\CharShemesTable.java:143: cannot find symbol [javac] symbol : variable NPCBUFFER_MAX_SKILLS [javac] location: class net.sf.l2j.Config [javac] && map.get(scheme).size() < Config.NPCBUFFER_MAX_SKILLS) [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\CharShemesTable.java:182: cannot find symbol [javac] symbol : variable NPCBUFFER_STORE_SCHEMES [javac] location: class net.sf.l2j.Config [javac] if (Config.NPCBUFFER_STORE_SCHEMES) [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 41 errors BUILD FAILED C:\sourceserv\build.xml:43: Compile failed; see the compiler error output for details. Total time: 6 seconds Вот два файла которые идут с бафером CharShemesTable.java:Свернуть ↑
Свернуть ↑Развернуть ↓
package com.l2dot.gameserver.datatables; import com.l2dot.Config; import com.l2dot.L2DatabaseFactory; import com.l2dot.gameserver.model.L2Skill; import javolution.util.FastList; import javolution.util.FastMap; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.logging.Logger; /** * This class stores players' buff schemes into FastMap. On player login, his * scheme is loaded and on server shutdown all modified schemes are saved to * DataBase. This avoids too many unnecessary DataBase connections and queries. * If server crashes, nothing important is lost ![]() * * @author House */ public class CharSchemesTable { private static FastMap<Integer, FastMap<String, FastList<L2Skill>>> _schemesTable; private static CharSchemesTable _instance = null; private static Logger _log = Logger.getLogger(CharSchemesTable.class .getName()); private static final String SQL_LOAD_SCHEME = "SELECT * FROM mods_buffer_schemes WHERE ownerId=?"; private static final String SQL_DELETE_SCHEME = "DELETE FROM mods_buffer_schemes WHERE ownerId=?"; private static final String SQL_INSERT_SCHEME = "INSERT INTO mods_buffer_schemes (ownerId, id, level, scheme) VALUES (?,?,?,?)"; public static CharSchemesTable getInstance() { if (_instance == null) _instance = new CharSchemesTable(); return _instance; } public CharSchemesTable() { _schemesTable = new FastMap<Integer, FastMap<String, FastList<L2Skill>>>(); } public void clearDB() { if (_schemesTable.isEmpty()) return; Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); for (FastMap.Entry<Integer, FastMap<String, FastList<L2Skill>>> e = _schemesTable .head(), end = _schemesTable.tail(); (e = e.getNext()) != end ![]() { PreparedStatement statement = con .prepareStatement(SQL_DELETE_SCHEME); statement.setInt(1, e.getKey()); statement.execute(); } } catch (Exception e) { _log .warning("CharSchemesTable: Error while trying to delete schemes"); } finally { try { con.close(); } catch (Exception e) { } } } public FastMap<String, FastList<L2Skill>> getAllSchemes(int playerId) { return _schemesTable.get(playerId); } public FastList<L2Skill> getScheme(int playerid, String scheme_key) { if (_schemesTable.get(playerid) == null) return null; return _schemesTable.get(playerid).get(scheme_key); } public boolean getSchemeContainsSkill(int playerId, String scheme_key, int skillId) { for (L2Skill sk : getScheme(playerId, scheme_key)) { if (sk.getId() == skillId) return true; } return false; } public FastMap<Integer, FastMap<String, FastList<L2Skill>>> getSchemesTable() { return _schemesTable; } /** * This method loads player scheme and put into _schemesTable map. * * @param objectId * : player's objectId */ public void loadScheme(int objectId) { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement(SQL_LOAD_SCHEME); statement.setInt(1, objectId); ResultSet rs = statement.executeQuery(); FastMap<String, FastList<L2Skill>> map = new FastMap<String, FastList<L2Skill>>(); while (rs.next()) { int skillId = rs.getInt("id"); int skillLevel = rs.getInt("level"); String scheme = rs.getString("scheme"); if (!map.containsKey(scheme) && map.size() <= Config.NPCBUFFER_MAX_SCHEMES) map.put(scheme, new FastList<L2Skill>()); if (map.get(scheme) != null && map.get(scheme).size() < Config.NPCBUFFER_MAX_SKILLS) map.get(scheme).add( SkillTable.getInstance().getInfo(skillId, skillLevel)); } if (!map.isEmpty()) _schemesTable.put(objectId, map); statement.close(); rs.close(); } catch (Exception e) { _log.warning("Error trying to load buff scheme from object id: " + objectId); } finally { try { con.close(); } catch (Exception e) { } } } public void onPlayerLogin(int playerId) { if (_schemesTable.get(playerId) == null) loadScheme(playerId); } /** * Do necessary task when server is shutting down or restarting:<br> * <li>Clears DataBase</li> <li>Saves new info</li> */ public void onServerShutdown() { if (Config.NPCBUFFER_STORE_SCHEMES) { clearDB(); saveDataToDB(); } } public void saveDataToDB() { if (_schemesTable.isEmpty()) return; Connection con = null; int count = 0; try { con = L2DatabaseFactory.getInstance().getConnection(); // _schemesTable for (FastMap.Entry<Integer, FastMap<String, FastList<L2Skill>>> e = _schemesTable .head(), end = _schemesTable.tail(); (e = e.getNext()) != end ![]() { // each profile if (e.getValue() == null || e.getValue().isEmpty()) continue; for (FastMap.Entry<String, FastList<L2Skill>> a = e.getValue() .head(), enda = e.getValue().tail(); (a = a.getNext()) != enda ![]() { if (a.getValue() == null || a.getValue().isEmpty()) continue; // each skill for (L2Skill sk : a.getValue()) { PreparedStatement statement = con .prepareStatement(SQL_INSERT_SCHEME); statement.setInt(1, e.getKey()); statement.setInt(2, sk.getId()); statement.setInt(3, sk.getLevel()); statement.setString(4, a.getKey()); statement.execute(); } } count++; } } catch (Exception e) { _log .warning("CharSchemesTable: Error while trying to delete schemes"); } finally { try { con.close(); } catch (Exception e) { } System.out.println("CharSchemeTable: Saved " + String.valueOf(count + " scheme(s)")); } } public void setScheme(int playerId, String schemeKey, FastList<L2Skill> list) { _schemesTable.get(playerId).put(schemeKey, list); } } L2BuffInstance.java:Свернуть ↑
package com.l2dot.gameserver.model.actor.instance;
Свернуть ↑Развернуть ↓
import com.l2dot.gameserver.datatables.CharSchemesTable; import com.l2dot.gameserver.datatables.SkillTable; import com.l2dot.gameserver.model.L2Effect; import com.l2dot.gameserver.model.L2Skill; import com.l2dot.gameserver.model.actor.L2Summon; import com.l2dot.gameserver.network.serverpackets.ActionF ailed; import com.l2dot.gameserver.network.serverpackets.NpcHtml Message; import com.l2dot.gameserver.templates.L2NpcTemplate; import javolution.util.FastList; import javolution.util.FastMap; import java.util.StringTokenizer; public class L2BuffInstance extends L2FolkInstance { public int[] TableId; public int[] TableDialog; public L2BuffInstance(int objectId, L2NpcTemplate template) { super(objectId, template); TableId=new int[]{ 1068,1388,1086,1077,1242,1240,1085,1059,1303,1062, 1043, 1040,1389,1036,1035,1243,1304,1078,1087, 1045,1048,1204,1073,1397,1044,1268,1257, 1182,1189,1191,1033,1259,1392,1393,1353,1352,1354, 271,272,273,274,275,276,277,307,309,310,311, 264,265,266,267,268,269,270,304,305,306,308, 1355,1356,1357,1363,4699,4554,365,363,364,349,4702 }; TableDialog=new int[]{ 1,1,1,1,1,1,1,1,1,1,1, 2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3, 4,4,4,4,4,4,4,4,4,4, 5,5,5,5,5,5,5,5,5,5,5, 6,6,6,6,6,6,6,6,6,6,6, 7,7,7,7,7,7,7,7,7,7,7 }; } @Override public String getHtmlPath(int npcId, int val) { String pom; if (val == 0) pom = "" + npcId; else pom = npcId + "-" + val; return "data/html/buff/" + pom + ".htm"; } @Override public void onBypassFeedback(L2PcInstance player, String command) { StringTokenizer st = new StringTokenizer(command, " "); String actualCommand = st.nextToken(); // Get actual command if (actualCommand.startsWith("Chat")) { String filename = "data/html/buff/40001.htm"; int cmdChoice = Integer.parseInt(command.substring(5,7).trim()); if(cmdChoice>0) { filename = "data/html/buff/40001-"+cmdChoice+".htm"; } NpcHtmlMessage html = new NpcHtmlMessage(1); html.setFile(filename); sendHtmlMessage(player,html); player.sendPacket(new ActionFailed()); } else if(actualCommand.startsWith("Cancel")) { player.stopAllEffects(); NpcHtmlMessage html = new NpcHtmlMessage(1); html.setFile("data/html/buff/40001.htm"); sendHtmlMessage(player,html); player.sendPacket(new ActionFailed()); } else if(actualCommand.startsWith("PetCancel")) { L2Summon pet=player.getPet(); if(pet!=null) pet.stopAllEffects(); NpcHtmlMessage html = new NpcHtmlMessage(1); html.setFile("data/html/buff/40001-08.htm"); sendHtmlMessage(player,html); player.sendPacket(new ActionFailed()); } else if(actualCommand.startsWith("Regenerate")) { player.setCurrentHpMp(player.getMaxHp(),(player.ge tMaxMp())); player.setCurrentCp(player.getMaxCp()); NpcHtmlMessage html = new NpcHtmlMessage(1); html.setFile("data/html/buff/40001.htm"); sendHtmlMessage(player,html); player.sendPacket(new ActionFailed()); } else if(actualCommand.startsWith("PetRegenerate")) { L2Summon pet=player.getPet(); pet.setCurrentHpMp(pet.getMaxHp(),(pet.getMaxMp()) ); pet.setCurrentCp(pet.getMaxCp()); NpcHtmlMessage html = new NpcHtmlMessage(1); html.setFile("data/html/buff/40001-08.htm"); sendHtmlMessage(player,html); player.sendPacket(new ActionFailed()); } else if(actualCommand.startsWith("Buff")) { String filename = "data/html/buff/40001",v; int cmdChoice = Integer.parseInt(command.substring(5, 7).trim()); int id=TableId[cmdChoice]; int dialog=TableDialog[cmdChoice]; int level=SkillTable.getInstance().getMaxLevel(id,0); if(id==4554)level=4; if(dialog==0)v=""; else v="-"+Integer.toString(dialog); player.stopSkillEffects(id); SkillTable.getInstance().getInfo(id,level).getEffe cts(player,player); NpcHtmlMessage html = new NpcHtmlMessage(1); html.setFile(filename+v+".htm"); sendHtmlMessage(player,html); player.sendPacket(new ActionFailed()); } else if(actualCommand.startsWith("PetBuff")) { String filename = "data/html/buff/40001",v; int cmdChoice = Integer.parseInt(command.substring(5, 7).trim()); int id=TableId[cmdChoice]; int dialog=TableDialog[cmdChoice]; int level=SkillTable.getInstance().getMaxLevel(id,0); if(dialog==0)v=""; else v="-"+Integer.toString(dialog); L2Summon pet=player.getPet(); if(pet!=null) { pet.stopSkillEffects(id); SkillTable.getInstance().getInfo(id,level).getEffe cts(pet,pet); } else player.sendMessage("У вас нет суммона или питомца"); NpcHtmlMessage html = new NpcHtmlMessage(1); html.setFile(filename+v+".htm"); sendHtmlMessage(player,html); player.sendPacket(new ActionFailed()); } else if(actualCommand.startsWith("save")) { int cmdChoice = Integer.parseInt(command.substring(5, 6).trim()); int flag=0; NpcHtmlMessage html = new NpcHtmlMessage(1); if(cmdChoice>3) { html.setFile("data/html/buff/40001-11.htm"); flag=1; } else html.setFile("data/html/buff/40001.htm"); CreateScheme(player,Integer.toString(cmdChoice),fl ag); sendHtmlMessage(player,html); player.sendPacket(new ActionFailed()); } else if(actualCommand.startsWith("give")) { int cmdChoice = Integer.parseInt(command.substring(5, 6).trim()); if((cmdChoice<1)&&(cmdChoice>6))return; String key="data/html/buff/40001",sKey=Integer.toString(cmdChoice); int flag=0; NpcHtmlMessage html = new NpcHtmlMessage(1); if(cmdChoice>3) { flag=1; key="data/html/buff/40001-8"; } if (CharSchemesTable.getInstance().getScheme( player.getObjectId(),sKey)!=null) { if(flag==0) { for (L2Skill sk : CharSchemesTable.getInstance().getScheme( player.getObjectId(),sKey)) { player.stopSkillEffects(sk.getId()); sk.getEffects(this, player); } } else { for (L2Skill sk : CharSchemesTable.getInstance().getScheme( player.getObjectId(),sKey)) { L2Summon pet = player.getPet(); if(pet!=null) { pet.stopSkillEffects(sk.getId()); sk.getEffects(this, pet); } } } html.setFile(key+".htm"); } else { player.sendMessage("Профиль "+sKey+" не найден"); return; } sendHtmlMessage(player,html); player.sendPacket(new ActionFailed()); } else { super.onBypassFeedback(player, command); } } private void sendHtmlMessage(L2PcInstance player, NpcHtmlMessage html) { html.replace("%objectId%", String.valueOf(getObjectId())); html.replace("%npcId%", String.valueOf(getNpcId())); player.sendPacket(html); } private void CreateScheme(L2PcInstance player,String name,int flag) { if (CharSchemesTable.getInstance().getAllSchemes(play er.getObjectId()) != null && CharSchemesTable.getInstance().getAllSchemes(playe r.getObjectId()).containsKey(name)) { CharSchemesTable.getInstance().getAllSchemes(playe r.getObjectId()).remove(name); } if (CharSchemesTable.getInstance().getAllSchemes(play er.getObjectId()) == null) { CharSchemesTable.getInstance().getSchemesTable().p ut(player.getObjectId(), new FastMap<String, FastList<L2Skill>>(6)); } CharSchemesTable.getInstance().setScheme(player.ge tObjectId(),name.trim(), new FastList<L2Skill>(69)); L2Effect[] s; if (flag==0) { s= player.getAllEffects(); } else { L2Summon pet=player.getPet(); s=pet.getAllEffects(); } int Id; Boolean Ok=false; int i = 0; while (i < s.length) { L2Effect value = s[i]; Id = value.getSkill().getId(); int k = 0; while (k < TableId.length) { if (Id == TableId[k]) { Ok = true; break; } k++; } if (Ok) CharSchemesTable.getInstance().getScheme( player.getObjectId(), name).add( SkillTable.getInstance().getInfo(Id, value.getSkill().getLevel())); Ok = false; i++; } player.sendMessage("Профиль "+name+" успешно сохранён"); } } Может у кого есть другой бафер с профилями для сборки IT тогда не проходите мимо. |
![]() |
![]() |
![]() |
#2 | |
Супергерой
|
![]()
Покажи лог компиляции
Цитата:
Web программист\разработчик — Есть только один способ проделать большую работу — полюбить ее. Если вы к этому не пришли, подождите. Не беритесь за дело. |
|
![]() ![]() |
![]() |
[STIGMATED] |
Посмотреть профиль |
Найти ещё сообщения от [STIGMATED] |
![]() |
#3 |
Пользователь
|
![]()
Вроди он
ЛОГ:Свернуть ↑
Свернуть ↑Развернуть ↓
compile: [javac] C:\sourceserv\build.xml:43: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 1297 source files to C:\sourceserv\build\classes [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\CharShemesTable.java:22: class CharSchemesTable is public, should be declared in a file named CharSchemesTable.java [javac] public class CharSchemesTable [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:86: cannot find symbol [javac] symbol : method showChatWnd(net.sf.l2j.gameserver.model.actor.inst ance.L2PcInstance,java.lang.String,int,int) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatWnd(client, after, mp_restore, 57); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:96: cannot find symbol [javac] symbol : method showChatWnd(net.sf.l2j.gameserver.model.actor.inst ance.L2PcInstance,java.lang.String,int,int) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatWnd(client, after, hp_restore, 57); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:106: cannot find symbol [javac] symbol : method showChatWnd(net.sf.l2j.gameserver.model.actor.inst ance.L2PcInstance,java.lang.String,int,int) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatWnd(client, after, cp_restore, 57); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:112: cannot find symbol [javac] symbol : method showChatWnd(net.sf.l2j.gameserver.model.actor.inst ance.L2PcInstance,java.lang.String) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatWnd(client, after); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:119: cannot find symbol [javac] symbol : method showChatErrWnd(net.sf.l2j.gameserver.model.actor.i nstance.L2PcInstance,java.lang.String,java.lang.St ring) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatErrWnd(client, after, client.isGM() ? "buffer is not initialized." : "Come back later."); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:125: cannot find symbol [javac] symbol : method showChatErrWnd(net.sf.l2j.gameserver.model.actor.i nstance.L2PcInstance,java.lang.String,java.lang.St ring) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatErrWnd(client, after, client.isGM() ? (new StringBuilder("template ")).append(st).append(" is null.").toString() : "Come back later."); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:131: cannot find symbol [javac] symbol : method showChatWnd(net.sf.l2j.gameserver.model.actor.inst ance.L2PcInstance,java.lang.String,int,int) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatWnd(client, after, buff.itemCount, buff.itemId); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2ddt\engine\Npcbuffer.j ava:143: cannot find symbol [javac] symbol : method showChatWnd(net.sf.l2j.gameserver.model.actor.inst ance.L2PcInstance,java.lang.String) [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] jj.showChatWnd(client, after); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:89: cannot find symbol [javac] symbol : class L2Summon [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] L2Summon pet=player.getPet(); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:108: cannot find symbol [javac] symbol : class L2Summon [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] L2Summon pet=player.getPet(); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:123: cannot find symbol [javac] symbol : variable SkillTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] int level=SkillTable.getInstance().getMaxLevel(id,0); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:128: cannot find symbol [javac] symbol : variable SkillTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] SkillTable.getInstance().getInfo(id,level).getEffe cts(player,player); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:141: cannot find symbol [javac] symbol : variable SkillTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] int level=SkillTable.getInstance().getMaxLevel(id,0); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:144: cannot find symbol [javac] symbol : class L2Summon [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] L2Summon pet=player.getPet(); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:148: cannot find symbol [javac] symbol : variable SkillTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] SkillTable.getInstance().getInfo(id,level).getEffe cts(pet,pet); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:187: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] if (CharSchemesTable.getInstance().getScheme( [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:192: cannot find symbol [javac] symbol : class L2Skill [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] for (L2Skill sk : CharSchemesTable.getInstance().getScheme( [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:192: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] for (L2Skill sk : CharSchemesTable.getInstance().getScheme( [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:201: cannot find symbol [javac] symbol : class L2Skill [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] for (L2Skill sk : CharSchemesTable.getInstance().getScheme( [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:201: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] for (L2Skill sk : CharSchemesTable.getInstance().getScheme( [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:204: cannot find symbol [javac] symbol : class L2Summon [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] L2Summon pet = player.getPet(); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:237: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] if (CharSchemesTable.getInstance().getAllSchemes(play er.getObjectId()) != null [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:238: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] && CharSchemesTable.getInstance().getAllSchemes(playe r.getObjectId()).containsKey(name)) [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:240: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] CharSchemesTable.getInstance().getAllSchemes(playe r.getObjectId()).remove(name); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:242: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] if (CharSchemesTable.getInstance().getAllSchemes(play er.getObjectId()) == null) [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:245: cannot find symbol [javac] symbol : class FastMap [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] new FastMap<String, FastList<L2Skill>>(6)); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:245: cannot find symbol [javac] symbol : class FastList [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] new FastMap<String, FastList<L2Skill>>(6)); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:245: cannot find symbol [javac] symbol : class L2Skill [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] new FastMap<String, FastList<L2Skill>>(6)); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:244: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] CharSchemesTable.getInstance().getSchemesTable().p ut(player.getObjectId(), [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:248: cannot find symbol [javac] symbol : class FastList [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] new FastList<L2Skill>(69)); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:248: cannot find symbol [javac] symbol : class L2Skill [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] new FastList<L2Skill>(69)); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:247: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] CharSchemesTable.getInstance().setScheme(player.ge tObjectId(),name.trim(), [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:249: cannot find symbol [javac] symbol : class L2Effect [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] L2Effect[] s; [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:257: cannot find symbol [javac] symbol : class L2Summon [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] L2Summon pet=player.getPet(); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:264: cannot find symbol [javac] symbol : class L2Effect [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] L2Effect value = s[i]; [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:277: cannot find symbol [javac] symbol : variable SkillTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] SkillTable.getInstance().getInfo(Id, value.getSkill().getLevel())); [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\L2BuffInstance.java:275: cannot find symbol [javac] symbol : variable CharSchemesTable [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2BuffI nstance [javac] CharSchemesTable.getInstance().getScheme( [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\CharShemesTable.java:139: cannot find symbol [javac] symbol : variable NPCBUFFER_MAX_SCHEMES [javac] location: class net.sf.l2j.Config [javac] && map.size() <= Config.NPCBUFFER_MAX_SCHEMES) [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\CharShemesTable.java:143: cannot find symbol [javac] symbol : variable NPCBUFFER_MAX_SKILLS [javac] location: class net.sf.l2j.Config [javac] && map.get(scheme).size() < Config.NPCBUFFER_MAX_SKILLS) [javac] ^ [javac] C:\sourceserv\java\net\sf\l2j\gameserver\model\act or\instance\CharShemesTable.java:182: cannot find symbol [javac] symbol : variable NPCBUFFER_STORE_SCHEMES [javac] location: class net.sf.l2j.Config [javac] if (Config.NPCBUFFER_STORE_SCHEMES) [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 41 errors BUILD FAILED C:\sourceserv\build.xml:43: Compile failed; see the compiler error output for details. Total time: 6 seconds |
![]() |
![]() |
![]() |
#5 |
Пользователь
|
![]()
Кто хочет мне помочь и заработать а то я уже дальше не понимаю. Мне нужно что бы этот бафер заработал у меня на сборке и вот такой ГМшоп нужен в инете его не нашел но видел на многих серверах. Пишите в ICQ: 403898459
![]() |
![]() |
![]() |
![]() |
#7 |
Пользователь
|
![]()
Я бы и сам все сделал но я еще многого не знаю а мне хочется сделать нормальный сервер. Вот ты говоришь "Он не может найти метод " но я не совсем понимаю а объяснять что к чему думаю никто не будет. Во решил за деньги сделать.
У кого может есть баффер с профилями Скинь ссылку на скачку сюда. |
![]() |
![]() |
![]() |
#8 |
Изгнанные
|
![]()
Стукни в аську (563-747-329), исправим-с ошибки
![]() |
![]() |
![]() |
Сказали спасибо: |
Open-Shadow |
Посмотреть профиль |
Найти ещё сообщения от Open-Shadow |
![]() |
#9 |
Пользователь
|
![]()
Open-Shadow, Спасибо помог очень! Бафер отличный вот еще можно как то сделать что бы бафер сам хилял игроков когда у них мало ХП или МП.
|
![]() |
![]() |
![]() |
#10 |
Пользователь
|
![]()
видел такую фишку на Battlecore , классная тема =)
|
![]() |
![]() |
![]() |
Здесь присутствуют: 1 (пользователей: 0 , гостей: 1) | |
Опции темы | |
|
|
![]() |
||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Сборка Trinity Core под версию 3.3.5а | Perfecto | Готовые сборки | 194 | 04.01.2014 18:50 |
Shadowhack Core | crawling | Ядра | 5 | 22.12.2011 03:10 |
[core]Модификации Java серверов | Devilop | Тех-документация | 27 | 28.02.2011 19:30 |
L2Phoenix Core(20736) | Tsunamikus | Lineage II | 1 | 12.10.2010 13:30 |
Core + Utf8 | saylara | Lineage II | 2 | 09.11.2009 13:49 |