Jump to content

Tamira

Members
  • Posts

    26
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Tamira

  1. EX: <set name="affectLimit" val="5-12" /> What are the values 5 and 12 for? seem to have an effect on the number of targets the skill hits.. what I don't understand is why has 2 values? Is one for minimum and one for maximum? or does it serve to divide the damage caused??? someone help me!
  2. Can someone fix the problem with the CLASSMANAGER dialog? When i turn lvl 20 i dont get the "changeclass" quest stuff dialog.. without this system it work well.
  3. dont have it on my server. its a L2JWZ version
  4. Im using a L2JWZ custom server.. how can i change the skills shortcuts for a new characters? It starts with F1 = /attack F4 = /pickup F11 = /sit How can i change it to my custom shortcuts?
  5. package handlers.voicedcommandhandlers; import java.text.SimpleDateFormat; import java.util.Date; import java.util.logging.Logger; import com.l2jserver.gameserver.datatables.NpcTable; import com.l2jserver.gameserver.handler.IVoicedCommandHandler; import com.l2jserver.gameserver.instancemanager.GrandBossManager; import com.l2jserver.gameserver.model.StatsSet; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.instancemanager.RaidBossSpawnManager; public class RaidBoosStatus implements IVoicedCommandHandler { static final Logger _log = Logger.getLogger(RaidBoosStatus.class.getName()); private static final String[] _voicedCommands = { "grandboss", "raidboss" }; @Override public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params) { if (command.startsWith("grandboss")) { return Status(activeChar); } if (command.startsWith("raidboss")) { return Statusboss(activeChar); } else { return false; } } public boolean Status(L2PcInstance activeChar) { int[] BOSSES = { 29001, 29006, 29014, 29019, 29020, 29022, 29028, 29062, 29065, 29118, 29045, 29099, 29163, 29186, 29177 }; SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); activeChar.sendMessage("==========<Grand Bosses>=========="); for (int boss : BOSSES) { String name = NpcTable.getInstance().getTemplate(boss).getName(); StatsSet stats = GrandBossManager.getInstance().getStatsSet(boss); if (stats == null) { activeChar.sendMessage("Stats for GrandBoss " + boss + " not found!"); continue; } if (boss == 29019) { long dmax = 0; for (int i = 29066; i <= 29068; i++) { StatsSet s = GrandBossManager.getInstance().getStatsSet(i); if (s == null) continue; long d = s.getLong("respawn_time"); if (d >= dmax) { dmax = d; stats = s; } } } long delay = stats.getLong("respawn_time"); long currentTime = System.currentTimeMillis(); if (delay <= currentTime) { activeChar.sendMessage(name +" = Is Alive"); } else { activeChar.sendMessage(name +" = Is Death ( "+sdf.format(new Date(delay))+" )"); } } activeChar.sendMessage("=============================="); return true; } public boolean Statusboss(L2PcInstance activeChar) { int[] RBOSSES = { 18555, 25115 }; SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); activeChar.sendMessage("==========<Raid Bosses v2>=========="); for (int rboss : RBOSSES) { String namer = NpcTable.getInstance().getTemplate(rboss).getName(); if (namer == null) { activeChar.sendMessage("Npc template for ID: " + rboss + " isn't exists!"); continue; } StatsSet statsr = RaidBossSpawnManager.getInstance().getStoredInfo().get(rboss); if (statsr == null) { activeChar.sendMessage("Stats for RaidBoss " + rboss + " not found!"); continue; } long delayr = statsr.getLong("respawn_time"); long currentTime = System.currentTimeMillis(); if (delayr <= currentTime) { activeChar.sendMessage(namer +" = Is Alive"); } else { activeChar.sendMessage(namer +" = Is Death ( "+sdf.format(new Date(delayr))+" )"); } } activeChar.sendMessage("=============================="); return true; } @Override public String[] getVoicedCommandList() { return _voicedCommands; } } this is the one running right now on my server...
  6. I did update it. its running right now.. but the .raidboss dont want to work x.x only shows up the msg ==========<Raid Bosses>==========
  7. I did change it and nothing happened. i tryed other Raid Bosses ids just to check and still not showing nothing after this "activeChar.sendMessage("==========<Raid Bosses>==========");" My script is like this now.. i tryed and tryed all and it doenst work package handlers.voicedcommandhandlers; import java.text.SimpleDateFormat; import java.util.Date; import java.util.logging.Logger; import com.l2jserver.gameserver.datatables.NpcTable; import com.l2jserver.gameserver.handler.IVoicedCommandHandler; import com.l2jserver.gameserver.instancemanager.GrandBossManager; import com.l2jserver.gameserver.model.StatsSet; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.instancemanager.RaidBossSpawnManager; public class RaidBoosStatus implements IVoicedCommandHandler { static final Logger _log = Logger.getLogger(RaidBoosStatus.class.getName()); private static final String[] _voicedCommands = { "grandboss", "raidboss" }; @Override public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params) { if (command.startsWith("grandboss")) { return Status(activeChar); } if (command.startsWith("raidboss")) { return Statusboss(activeChar); } else { return false; } } public boolean Status(L2PcInstance activeChar) { int[] BOSSES = { 29001, 29006, 29014, 29019, 29020, 29022, 29028, 29062, 29065, 29118, 29045, 29099, 29163, 29186, 29177 }; SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); activeChar.sendMessage("==========<Grand Bosses>=========="); for (int boss : BOSSES) { String name = NpcTable.getInstance().getTemplate(boss).getName(); StatsSet stats = GrandBossManager.getInstance().getStatsSet(boss); if (stats == null) { activeChar.sendMessage("Stats for GrandBoss " + boss + " not found!"); continue; } if (boss == 29019) { long dmax = 0; for (int i = 29066; i <= 29068; i++) { StatsSet s = GrandBossManager.getInstance().getStatsSet(i); if (s == null) continue; long d = s.getLong("respawn_time"); if (d >= dmax) { dmax = d; stats = s; } } } long delay = stats.getLong("respawn_time"); long currentTime = System.currentTimeMillis(); if (delay <= currentTime) { activeChar.sendMessage(name +" = Is Alive"); } else { activeChar.sendMessage(name +" = Is Death ( "+sdf.format(new Date(delay))+" )"); } } activeChar.sendMessage("=============================="); return true; } public boolean Statusboss(L2PcInstance activeChar) { int[] RBOSSES = { 18555, 25115 }; SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); activeChar.sendMessage("==========<Raid Bosses>=========="); for (int rboss : RBOSSES) { String namer = NpcTable.getInstance().getTemplate(rboss).getName(); if (namer == null) { activeChar.sendMessage("Npc template for ID: " + rboss + " isn't exists!"); continue; } StatsSet statsr = RaidBossSpawnManager.getInstance().getStoredInfo().get(rboss); if (statsr == null) { activeChar.sendMessage("Stats for RaidBoss " + rboss + " not found!"); continue; } long delayr = statsr.getLong("respawn_time"); long currentTime = System.currentTimeMillis(); if (delayr <= currentTime) { activeChar.sendMessage(namer +" = Is Alive"); } else { activeChar.sendMessage(namer +" = Is Death ( "+sdf.format(new Date(delayr))+" )"); } } activeChar.sendMessage("=============================="); return true; } @Override public String[] getVoicedCommandList() { return _voicedCommands; } } please, help!!!!
  8. Thx for the help Its now compiling without errors But the CMD ".raidboss" its not showing the bosses.. just send this activeChar.sendMessage("==========<Raid Bosses>=========="); but nothing below it. what else shoud i do? I have the ".grandboss" working very well.. why cant this work.. im geting crazy about it!!! The worst part is that i cant see where the error is!!! "GAMING MODERATOR" stop flooding everywhere if u dont know or dont want to help.
  9. i just discovered that i dont have my server's Source.. im working on this thing for 3 years... full customized already... anyway.. i cant use Eclipse to find a way to fix this problem.. cant you help me?
  10. ??? i dont use eclipse i simple edit it on Notepad and drop to the l2 server I cant understand why i get some retard errors like this.. FUCKING JAVA
  11. package handlers.voicedcommandhandlers; import java.text.SimpleDateFormat; import java.util.Date; import java.util.logging.Logger; import com.l2jserver.gameserver.datatables.NpcTable; import com.l2jserver.gameserver.handler.IVoicedCommandHandler; import com.l2jserver.gameserver.instancemanager.GrandBossManager; import com.l2jserver.gameserver.model.StatsSet; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.instancemanager.RaidBossSpawnManager; public class RaidBoosStatus implements IVoicedCommandHandler { static final Logger _log = Logger.getLogger(RaidBoosStatus.class.getName()); private static final String[] _voicedCommands = { "grandboss", "raidboss" }; @Override public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params) { if (command.startsWith("grandboss")) { return Status(activeChar); } if (command.startsWith("raidboss")) { return Statusboss(activeChar); } else { return false; } } public boolean Status(L2PcInstance activeChar) { int[] BOSSES = { 29001, 29006, 29014, 29019, 29020, 29022, 29028, 29062, 29065, 29118, 29045, 29099, 29163, 29186, 29177 }; SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); activeChar.sendMessage("==========<Grand Bosses>=========="); for (int boss : BOSSES) { String name = NpcTable.getInstance().getTemplate(boss).getName(); StatsSet stats = GrandBossManager.getInstance().getStatsSet(boss); if (stats == null) { activeChar.sendMessage("Stats for GrandBoss " + boss + " not found!"); continue; } if (boss == 29019) { long dmax = 0; for (int i = 29066; i <= 29068; i++) { StatsSet s = GrandBossManager.getInstance().getStatsSet(i); if (s == null) continue; long d = s.getLong("respawn_time"); if (d >= dmax) { dmax = d; stats = s; } } } long delay = stats.getLong("respawn_time"); long currentTime = System.currentTimeMillis(); if (delay <= currentTime) { activeChar.sendMessage(name +" = Is Alive"); } else { activeChar.sendMessage(name +" = Is Death ( "+sdf.format(new Date(delay))+" )"); } } activeChar.sendMessage("=============================="); return true; } public boolean Statusboss(L2PcInstance activeChar) { int[] RBOSSES = { 10045, 10281 }; SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); activeChar.sendMessage("==========<Raid Bosses>=========="); for (int rboss : RBOSSES) { String name = NpcTable.getInstance().getTemplate(rboss).getName(); StatsSet statsr = RaidBossSpawnManager.getInstance().getStatsSet(rboss); if (statsr == null) { activeChar.sendMessage("Stats for RaidBoss " + rboss + " not found!"); continue; } long delay = statsr.getLong("respawn_time"); long currentTime = System.currentTimeMillis(); if (delay <= currentTime) { activeChar.sendMessage(name +" = Is Alive"); } else { activeChar.sendMessage(name +" = Is Death ( "+sdf.format(new Date(delay))+" )"); } } activeChar.sendMessage("=============================="); return true; } @Override public String[] getVoicedCommandList() { return _voicedCommands; } } Help PLEASE
  12. i tried all.. cant make it work................................ A Lot of theories but no one really helped
  13. Thx u very much But i cant find a way to make this works.. how can i make "MOB Pai" dies and something happens with "NPC Filho" ?? i tryed a lot of things and cant make it work Help please!
  14. @Override public String onKill(L2Npc npc, L2PcInstance player, boolean isPet) { switch (npc.getNpcId()) { case Pai: if (npc.getNpcId() == Filho) { npc.deleteMe(); } break; } return super.onKill(npc, player, isPet); } It should work like this... the "MOB Pai" dies and the "NPC Filho" is deleted. Why cant i make the "NPC Filho" be deleted? how the npc.deleteMe(); works? Any other function that i use for the "MOB Pai" works well. but looks like anything cant access "NPC Filho". Remember "MOB Pai" is a monster. "NPC Filho" is a Teleporter. Another thing. the "NPC Filho" only spawns when the "MOB Pai" have its own spawn. that i did make works by my self. my problem is this npc.deleteMe();
  15. What can i do? will I have to install another java on my VPS ??? Welcome to Java - Updated License Conditions The Conditions under which this version of the software is licensed have been changed. Updated License Agreement This version of Java Runtime is licensed for personal (non-commercial) desktop and laptop use only. Commercial use of this software requires a separate license from Oracle or its software vendor. Click Install to accept the license agreement and install Java now, or click Remove to uninstall it from your system. No personal information is requested during the installation process. Details about the information we collect. ------------------------------------------------------------------------------------ O que fazer??? vou ter que instalar outro java no meu VPS??? Bem-Vindo ao Java - Condições de Licença Atualizadas As Condições sob as quais esta versão do software é licenciada foram alteradas. Contrato de Licença Atualizado Esta versão do Java Runtime é licenciada somente para uso pessoal (não comercial) em desktop e laptop. O uso comercial deste software requer uma licença separada da Oracle ou de seu fornecedor de software. Clique em Instalar para aceitar o contrato de licença e instalar o Java agora ou clique em Remover para desinstalá-lo do seu sistema. Não são solicitadas informações pessoais durante o processo de instalação. Detalhes sobre as informações que coletamos.
  16. package mods.LevelUpReward; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.w3c.dom.Node; import com.l2jserver.gameserver.engines.DocumentParser; import com.l2jserver.gameserver.model.PlayerVariables; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.holders.ItemHolder; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jserver.gameserver.scripting.scriptengine.events.PlayerLevelChangeEvent; import com.l2jserver.gameserver.scripting.scriptengine.impl.L2Script; public final class LevelUpReward extends L2Script { // Misc private static final String HTML_PATH = "data/scripts/mods/LevelUpReward/"; protected static boolean rewardAll = false; protected static final Map<Integer, LevelData> REWARDS = new HashMap<>(); private LevelUpReward(String name, String descr) { super(name, descr); addPlayerLevelNotify(null); new LevelUpRewardData(); } @Override public void onPlayerLevelChange(PlayerLevelChangeEvent event) { final L2PcInstance player = event.getPlayer(); if (player == null) { return; } final int newLevel = event.getNewLevel(); for (int oldLevel = (rewardAll) ? 1 : (event.getOldLevel() + 1); oldLevel <= newLevel; oldLevel++) { if (!REWARDS.containsKey(oldLevel)) { continue; } final PlayerVariables vars = player.getVariables(); if (vars.getBool("LEVEL_UP_REWARD_" + oldLevel, false)) { continue; } final LevelData rewards = REWARDS.get(oldLevel); for (ItemHolder item : rewards.getItems()) { player.addItem("Quest", item, player, true); } vars.set("LEVEL_UP_REWARD_" + oldLevel, true); if (rewards.getMessage() != "") { player.sendMessage(rewards.getMessage()); } if (rewards.getHtmlFile() != "") { final NpcHtmlMessage html = new NpcHtmlMessage(player.getObjectId()); html.setFile(player.getHtmlPrefix(), HTML_PATH + rewards.getHtmlFile()); player.sendPacket(html); } } } protected final class LevelUpRewardData extends DocumentParser { public LevelUpRewardData() { load(); } @Override public void load() { parseDatapackFile("data/xml/LevelReward/LevelReward.xml"); } @Override protected void parseDocument() { for (Node n = getCurrentDocument().getFirstChild(); n != null; n = n.getNextSibling()) { if ("list".equals(n.getNodeName())) { for (Node d = n.getFirstChild(); d != null; d = d.getNextSibling()) { if ("rewards".equals(d.getNodeName())) { LevelData data = new LevelData(); for (Node e = d.getFirstChild(); e != null; e = e.getNextSibling()) { if ("item".equals(e.getNodeName())) { data.addItem(parseInteger(e.getAttributes(), "id"), parseLong(e.getAttributes(), "count")); } } data.setMessage(parseString(d.getAttributes(), "message")); data.setHtmlFile(parseString(d.getAttributes(), "htmlFile")); REWARDS.put(parseInteger(d.getAttributes(), "level"), data); } } rewardAll = parseBoolean(n.getAttributes(), "rewardAll"); } } } } protected final class LevelData { private String html; private final List<ItemHolder> items; private String message; public LevelData() { html = ""; items = new ArrayList<>(); message = ""; } public void addItem(int itemId, long itemCount) { items.add(new ItemHolder(itemId, itemCount)); } public void setHtmlFile(String htmlFile) { html = htmlFile; } public void setMessage(String message) { this.message = message; } public String getHtmlFile() { return html; } public List<ItemHolder> getItems() { return items; } public String getMessage() { return message; } } public static void main(String[] args) { new LevelUpReward(LevelUpReward.class.getSimpleName(), "mods"); } } This is the mod i got. I want it to work this way: Example: When i get lvl 20 i receive one item. Then if i get lvl 20 again i receive it again. i Want it to give me itens everytime i get lvl 20.. doent matter if i Delevel or something else It is only working if i relog. Can someone help me please? this forum is dead?
  17. On the first login the player automaticaly get the quest I saw in some server players auto getting the three Olly quests and the quests to level up Soul Crystals
  18. Wts Titan Lv 69 Full TOP Grade Itens B With Coins Server L2 ESSENCE EU RED Price 35 Euro Only Login and Password.. i use that Email for Work... i disliked that server and i have no intention of returning there My email for contact tamiramortein@gmail.com
  19. Can someone please help me with this one? I saw it on others server but cant find it anywhere.. Example: When player get lvl 20.. a chat apears to the player giving him an option to teleport to the next Leveling zone Im working on a High Five custom server dont know the Rev's name package ai.npc.Teleports.UpTeleport; import ai.npc.AbstractNpcAI; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; public class UpTeleport extends AbstractNpcAI { // NPC private static final int NPC = IdNpc;//TERIA QUE SER AUTOMATICO SEM USO DE NPC // Lvl para teleportar private static final int Up_1 = 20;// Teleporta pra Zona 1 private static final int Up_2 = 40;// Teleporta pra Zona 2 private static final int Up_3 = 60;// Teleporta pra Zona 3 private static final int Up_4 = 85;// Teleporta pra Cidade //Esquema public String onTalk(L2Npc npc, L2PcInstance player) { if (player.getLevel() == Up_1) { player.teleToLocation(-55154, 107224, -3731); return null; } else if (player.getLevel() == Up_2) { player.teleToLocation(-55154, 107224, -3731); return null; } else if (player.getLevel() == Up_3) { player.teleToLocation(-55154, 107224, -3731); return null; } else if (player.getLevel() == Up_4) { player.teleToLocation(-55154, 107224, -3731); return null; } } private UpTeleport(String name, String descr) { super(name, descr); addStartNpc(NPC); addTalkId(NPC); } public static void main(String[] args) { new UpTeleport(UpTeleport.class.getSimpleName(), "ai/npc/Teleports"); } } How can i make it work without player having to talk to a NPC...?
×
×
  • Create New...