Rotical 8 Опубликовано 21 октября, 2016 Ищу кто может помочь с удалением скилов исходники на руках! в скайпе договоримся что да как! Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
zGosu 396 Опубликовано 21 октября, 2016 Интересно даже стало. мне опишись, помогу. Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Rotical 8 Опубликовано 21 октября, 2016 Интересно даже стало. мне опишись, помогу. отправил запрос в скайпе! Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Evolution 243 Опубликовано 21 октября, 2016 Ищу кто может помочь с удалением скилов исходники на руках! в скайпе договоримся что да как! Пиши помогу Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Rotical 8 Опубликовано 21 октября, 2016 Пиши помогу можите добавить в скайп? Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
masone 298 Опубликовано 21 октября, 2016 { // Удаление скилла. if (args.length > 1) { int skillId; try { skillId = rutils.parseInt(args[1]); } catch (Exception e) { return "error_read.htm"; // Выводим страничку о том что не смогли корректно прочитать параметры. } // Скилл на удаление. L2Skill skillToRemove = talker.getKnownSkill(skillId); // Удаляем скилл игрока. talker.removeSkill(skillToRemove, true, true); // Учим удаляемый скилл если пресонаж должен его иметь. //TODO: Костыль конечно, но пока не знаю как сделать по другому. int maxLevel = 0; for (L2SkillLearn learn : SkillTreeTable.getInstance().getAllowedSkills(talker.getClassId())) { if (learn.getId() == skillToRemove.getId()) maxLevel++; } if (maxLevel > 0) { L2Skill skillToLearn = SkillTable.getInstance().getInfo(skillId, maxLevel); if (skillToLearn != null) talker.addSkill(skillToLearn, true); } // Обновляем список скиллов. talker.sendSkillList(); // Добавляем деньги за скилл. talker.addItem("ServiceSkillsSell", AUCTION_PRICE_ITEM_ID, SKILLS_SERVICE_SELL_COUNT, npc, true, true); Log.skills(talker.getName() +"_" +talker.getObjectId(), "Продажа умения: " +skillToRemove.getName() + " INFO: " +talker.getFingerPrints()); // Log.donate(talker.getName(), "Sell skill: " + s.g); return getMainPage(talker); } StringBuilder content = new StringBuilder("<html><head><title>Продажа умений</title></head><body>"); //content.append("<br><center>"); content.append("Персонаж: <font color=LEVEL>").append(talker.getName()).append("</font> Уровень: <font color=LEVEL>").append(talker.getLevel()).append("</font><br>"); content.append("Профессия: <font color=LEVEL>").append(rutils.getClassName(talker.getClassId().getId())).append("</font><br>"); content.append("Выберете скилл для удаления:<br>"); List<L2Skill> skills = getSellableSkills(talker); if (skills.isEmpty()) { content.append("<font color=LEVEL>У вас нету скиллов для продажи.</font></center></body></html>"); return content.toString(); } for (L2Skill s : skills) { content.append("<br1><font color=\"LEVEL\"><a action=\"bypass -h Quest SkillsManager skills_remove _ ").append(s.getId()).append("\">").append(s.getName()).append("</a></font>"); } content.append("</body></html>"); return content.toString(); } [/spoiler=на держи,думаю сам разберешься] 1 Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Rotical 8 Опубликовано 21 октября, 2016 (изменено) [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1260: error: cannot find symbol [javac] if(args.length() > 1) [javac] ^ [javac] symbol: variable args [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1265: error: cannot find symbol [javac] skillId = rutils.parseInt(args[1]); [javac] ^ [javac] symbol: variable args [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1265: error: cannot find symbol [javac] skillId = rutils.parseInt(args[1]); [javac] ^ [javac] symbol: variable rutils [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1269: error: incompatible types: unexpected return value [javac] return "error_read.htm"; // Выводим страничку о том что не смогли корректно прочитать параметры. [javac] ^ [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1273: error: cannot find symbol [javac] L2Skill skillToRemove = talker.getKnownSkill(skillId); [javac] ^ [javac] symbol: class L2Skill [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1273: error: cannot find symbol [javac] L2Skill skillToRemove = talker.getKnownSkill(skillId); [javac] ^ [javac] symbol: variable talker [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1276: error: cannot find symbol [javac] talker.removeSkill(skillToRemove, true, true); [javac] ^ [javac] symbol: variable talker [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1283: error: cannot find symbol [javac] for (L2SkillLearn learn : SkillTreeTable.getInstance().getAllowedSkills(talker.getClassId())) [javac] ^ [javac] symbol: variable talker [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1283: error: cannot find symbol [javac] for (L2SkillLearn learn : SkillTreeTable.getInstance().getAllowedSkills(talker.getClassId())) [javac] ^ [javac] symbol: variable SkillTreeTable [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1283: error: cannot find symbol [javac] for (L2SkillLearn learn : SkillTreeTable.getInstance().getAllowedSkills(talker.getClassId())) [javac] ^ [javac] symbol: class L2SkillLearn [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1291: error: cannot find symbol [javac] L2Skill skillToLearn = SkillTable.getInstance().getInfo(skillId, maxLevel); [javac] ^ [javac] symbol: class L2Skill [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1293: error: cannot find symbol [javac] talker.addSkill(skillToLearn, true); [javac] ^ [javac] symbol: variable talker [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1297: error: cannot find symbol [javac] talker.sendSkillList(); [javac] ^ [javac] symbol: variable talker [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1300: error: cannot find symbol [javac] talker.addItem("ServiceSkillsSell", AUCTION_PRICE_ITEM_ID, SKILLS_SERVICE_SELL_COUNT, npc, true, true); [javac] ^ [javac] symbol: variable AUCTION_PRICE_ITEM_ID [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1300: error: cannot find symbol [javac] talker.addItem("ServiceSkillsSell", AUCTION_PRICE_ITEM_ID, SKILLS_SERVICE_SELL_COUNT, npc, true, true); [javac] ^ [javac] symbol: variable SKILLS_SERVICE_SELL_COUNT [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1300: error: cannot find symbol [javac] talker.addItem("ServiceSkillsSell", AUCTION_PRICE_ITEM_ID, SKILLS_SERVICE_SELL_COUNT, npc, true, true); [javac] ^ [javac] symbol: variable npc [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1300: error: cannot find symbol [javac] talker.addItem("ServiceSkillsSell", AUCTION_PRICE_ITEM_ID, SKILLS_SERVICE_SELL_COUNT, npc, true, true); [javac] ^ [javac] symbol: variable talker [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1301: error: cannot find symbol [javac] Log.skills(talker.getName() +"_" +talker.getObjectId(), "Продажа умения: " +skillToRemove.getName() + " INFO: " +talker.getFingerPrints()); [javac] ^ [javac] symbol: variable talker [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1301: error: cannot find symbol [javac] Log.skills(talker.getName() +"_" +talker.getObjectId(), "Продажа умения: " +skillToRemove.getName() + " INFO: " +talker.getFingerPrints()); [javac] ^ [javac] symbol: variable talker [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1301: error: cannot find symbol [javac] Log.skills(talker.getName() +"_" +talker.getObjectId(), "Продажа умения: " +skillToRemove.getName() + " INFO: " +talker.getFingerPrints()); [javac] ^ [javac] symbol: variable talker [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1303: error: incompatible types: unexpected return value [javac] return getMainPage(talker); [javac] ^ [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1303: error: cannot find symbol [javac] return getMainPage(talker); [javac] ^ [javac] symbol: variable talker [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1309: error: cannot find symbol [javac] content.append("Персонаж: ").append(talker.getName()).append(" Уровень: ").append(talker.getLevel()).append(" "); [javac] ^ [javac] symbol: variable talker [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1309: error: cannot find symbol [javac] content.append("Персонаж: ").append(talker.getName()).append(" Уровень: ").append(talker.getLevel()).append(" "); [javac] ^ [javac] symbol: variable talker [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1310: error: cannot find symbol [javac] content.append("Профессия: ").append(rutils.getClassName(talker.getClassId().getId())).append(" "); [javac] ^ [javac] symbol: variable talker [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1310: error: cannot find symbol [javac] content.append("Профессия: ").append(rutils.getClassName(talker.getClassId().getId())).append(" "); [javac] ^ [javac] symbol: variable rutils [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1313: error: cannot find symbol [javac] List skills = getSellableSkills(talker); [javac] ^ [javac] symbol: class L2Skill [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1313: error: cannot find symbol [javac] List skills = getSellableSkills(talker); [javac] ^ [javac] symbol: variable talker [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1318: error: incompatible types: unexpected return value [javac] return content.toString(); [javac] ^ [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1321: error: cannot find symbol [javac] for (L2Skill s : skills) [javac] ^ [javac] symbol: class L2Skill [javac] location: class NpcInstance [javac] C:\1121\Mmo-Core1\Mmo-Core\java\l2p\gameserver\model\instances\NpcInstance.java:1326: error: incompatible types: unexpected return value [javac] return content.toString(); [javac] ^ [javac] 31 errors Изменено 21 октября, 2016 пользователем Rotical Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты