-
Posts
223 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by raF
-
Guide L2 File Editor - Chat Colouring In Lineage2 Client
raF replied to SweeTs's topic in Client Development Discussion
If all the guides were like this, everybody would be a pro dev. Nice job SweeTs. -
How to make a cancellation of payments to this host company. I was registered few months ago and they keep charge my card with a big amounts of money. I read in few forums and I saw that they are nothing but a scamers. Any info ?
-
(getCastle().getOwnerId() how to finish this to get the clan leader?
-
Probably you hit GrandBosses outside their zones. Spawn grandbosses in their default location and try to hit them.
-
Share it ^^
-
How to change name color on enter zone ? I tried this, but it works only onExit zone. final L2PcInstance activeChar = (L2PcInstance) character; activeChar.getAppearance().setTitleColor(Config.CHAOTIC_ENTER_COLOR); EDIT: Please move it to "Server Dev Help" section. Sorry for the wrong place.
-
Help Custom Escape For Acis 310!
raF replied to Hl4p3x's question in Request Server Development Help [L2J]
I ve got "infinity" shots and I am wondering how to make scrolls too. With "infinity" i mean scrolls doesnt destroy after use. -
Help Custom Escape For Acis 310!
raF replied to Hl4p3x's question in Request Server Development Help [L2J]
How to make if "infinity" ? -
My opinion about the balance is that THERE IS BALANCED in Lineage II, but its not about skills and stats. You have find the best way to balanced the whole gameplay.
-
Hello cheaters, Today I am trying to make something and I need to check if rb is alive. I searched a bit and I found it for GrandBosses: final StatsSet info = GrandBossManager.getInstance().getStatsSet(Antharas); How should look this line but for RaidBosses? Regerads,
-
Man, I am not sure if this is right or not. I am really bad in java, but when I dont know somethign i try to find it in any others files. Go make a copy of Siege.java and try everything until it works.
-
public static final int BENOM= benom Id; final L2Npc Benom = addSpawn(BENOM, loc_x, loc_y, loc_z, heading, false, 0, false); GrandBossManager.getInstance().addBoss((L2GrandBossInstance) Benom); Benom.setCurrentHpMp(hp, mp); Benom.setRunning();
-
What means this error in GS console ScriptManager: Error loading "scripts.xml" file, java.lang.InstantiationExceptio n: net.sf.l2j.gameserver.scripting.scripts.custom.DeLevelManager
-
I am trying to adapt this NPC to aCis but I faced a problem. Here is the Script package custom.DeLevelManager; import com.l2jserver.gameserver.cache.HtmCache; import com.l2jserver.gameserver.datatables.ItemTable; import com.l2jserver.gameserver.model.L2Skill; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.network.serverpackets.ExBrExtraUserInfo; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jserver.gameserver.network.serverpackets.UserInfo; /** * @author `Heroin * Made For Maxcheaters.com */ public class DeLevelManager extends Quest { private static final int npcid = 36650; // npc id private static final int MinLevel = 10; // Minimum Level, (e.g if you set 10, players wont be able to be level 9). private static final int ItemConsumeId = 57; // Item Consume id private int levels ; // Item Consume id private static final int ItemConsumeNumEveryLevel = 100; // Item ItemConsumeNumEveryLevel private static String htm = "data/scripts/custom/DeLevelManager/1.htm"; //html location private static String ItemName = ItemTable.getInstance().createDummyItem(ItemConsumeId).getItemName(); public DeLevelManager(int questId, String name, String descr) { super(questId, name, descr); addFirstTalkId(npcid); addTalkId(npcid); addStartNpc(npcid); } @Override public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { if (event.startsWith("dlvl")) { Dlvl(event, npc, player, event); } return ""; } private void Dlvl(String event, L2Npc npc, L2PcInstance player, String command) { try { String val = command.substring(5); int pointer = Integer.parseInt(val); int k = player.getLevel(); levels = k - pointer; if (player.getInventory().getItemByItemId(ItemConsumeId) == null) { player.sendMessage("You don't have enough items!"); return; } if (val == null) { player.sendMessage("Something went wrong!"); return; } if (pointer < 10) { player.sendMessage("Incorrect Level Number!"); return; } if (pointer < MinLevel) { player.sendMessage("Incorrect Level Number!"); return; } if (player.getLevel() <= pointer) { player.sendMessage("Your level is already lower."); return; } if (player.getInventory().getItemByItemId(ItemConsumeId).getCount() < ItemConsumeNumEveryLevel*levels) { player.sendMessage("You don't have enough items!"); return; } if (player.getInventory().getItemByItemId(ItemConsumeId).getCount() >= ItemConsumeNumEveryLevel) { k = player.getLevel(); final byte lvl = Byte.parseByte(pointer + ""); player.getStat().setLevel(lvl); player.sendMessage("Congratulations! You are now "+pointer+" level."); for(L2Skill sk : player.getAllSkills()) { player.removeSkill(sk); } player.broadcastStatusUpdate(); player.broadcastUserInfo(); player.sendPacket(new UserInfo(player)); player.sendPacket(new ExBrExtraUserInfo(player)); player.giveAvailableAutoGetSkills(); player.giveAvailableSkills(true, true); player.sendSkillList(); levels = k - pointer; player.destroyItemByItemId("DlvlManager", ItemConsumeId, ItemConsumeNumEveryLevel*levels, player, true); } } catch (Exception e) { player.sendMessage("Something went wrong try again."); } } @Override public String onFirstTalk(L2Npc npc, L2PcInstance player) { final int npcId = npc.getNpcId(); if (player.getQuestState(getName()) == null) { newQuestState(player); } if (npcId == npcid) { String html = HtmCache.getInstance().getHtm(player.getHtmlPrefix(), htm); html = html.replaceAll("%player%", player.getName()); html = html.replaceAll("%itemname%", ItemName); html = html.replaceAll("%price%", ""+ItemConsumeNumEveryLevel+""); NpcHtmlMessage npcHtml = new NpcHtmlMessage(0); npcHtml.setHtml(html); player.sendPacket(npcHtml); } return ""; } public static void main(final String[] args) { new DeLevelManager(-1, DeLevelManager.class.getSimpleName(), "custom"); System.out.println("De Level Manager by `Heroin has been loaded successfully!"); } } This is the error: String html = HtmCache.getInstance().getHtm(player.getHtmlPrefix(), htm);
-
Im looking for this also
-
Ok man, thanks for help. Really good editor. P.S. can be locked
-
Ok. This one is working fine, but do you have idea why when I edit something on questname-e.dat it doesnt appear in the game. I am trying to make clinet part of my quest.
-
Request Cleanse - No Clean Debuff Hotspring
raF replied to netoluan's question in Request Server Development Help [L2J]
Why dont you wanna change it to buff? You can make it +1 buffs slot when Malaria is on and everything should be fine. -
Im using exactly the same editor.
-
What I get this error only on QuestItemnsname-e.dat ? Even if i dont make changes i get it.
-
Request Request Help Wich Acis Pack. I Pay!
raF replied to Crytek ™'s question in Request Server Development Help [L2J]
Country:United Kingdom Location:london -
I forgot the most important... SMF 2.0.10
-
Hello, maxcheaters. I want to customize my forum a bit and add one really cool and helpful feature. As the topic says I want all the topics, made from administrators to be painted in any color. Something like this: Christmas 2014 & New Year's Eve 2015 Event - Topic made by regular member. Forum Cleanup + Get Gold Membership [Event/contest] - Topic made by forum administrator.