Jump to content

N0K3

Members
  • Content Count

    35
  • Joined

  • Last visited

  • Feedback

    N/A

Community Reputation

0 Neutral

About N0K3

  • Rank
    Vassal

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. It worked, it was really just saving the .dds without the map, thank you very much for the help.
  2. Good night friends, I'm having a recent problem when trying to add UTX Logo to any NPC, the problem is every time I add the UTX in the npc gatekeeper for example from the // reload html and I see the UTX it's all blurry or blurry as you can see in the link the front -> https://imgur.com/a/BlWcn53 , I follow step by step do the PNG of the logo in photoshop, saved in .DDS I open the unreal engine import the dds and saved in utx and cryptograph it and put in the folder systexture and change the html from npc, and even then it stays the way you saw the link, can anyone help? Generate for Google Translate
  3. Hello friends, as always I come to doubt that I really could not find a solution and always someone here from the forum helps me, I would like to leave my gratitude here. Today I'm trying to cause elfocrash mod fakesplayers to start at a specified amount in a specified location by an .ini file, however, I've been having problems since I'm surrounding this code below and not how to make it work when I start server much less put amount to spawn, see below the code in which spawna the fakes. # AdminFakePlayers.java# if (command.startsWith("admin_fakepvp")) { FakePlayer fakePlayer = FakePlayerManager.spawnPlayer(activeChar.getX(), activeChar.getY(), activeChar.getZ()); fakePlayer.assignDefaultAI(); if (command.contains(" ")) { String arg = command.split(" ")[1]; if (arg.equalsIgnoreCase("htm")) showFakeDashboard(activeChar); } return true; } # FakePlayerManager.java # public static FakePlayer spawnPlayer(int x, int y, int z) { final L2GameClient client = new L2GameClient(null); client.setDetached(true); final FakePlayer activeChar = FakeHelpers.createRandomFakePlayer(); activeChar.setClient(client); client.setActiveChar(activeChar); activeChar.setOnlineStatus(true, false); client.setState(L2GameClient.GameClientState.IN_GAME); client.setAccountName(activeChar.getAccountName()); World.getInstance().addPlayer(activeChar); if (Config.PLAYER_SPAWN_PROTECTION > 0) { activeChar.setSpawnProtection(true); } activeChar.getAppearance().setNameColor(Integer.decode("0x" + getNameColor())); activeChar.getAppearance().setTitleColor(Integer.decode("0x" + getTitleColor())); if (Config.FAKE_TITLE_PHANTOM_ATK) { if (Rnd.get(100) < Config.FAKE_CHANCE_TITLE) { activeChar.setTitle(getTitle()); } else { activeChar.setTitle(""); } } activeChar.addSkill(SkillTable.getInstance().getInfo(9901, 1), true); activeChar.spawnMe(55269,85153,-3587); activeChar.onPlayerEnter(); if (!activeChar.isGM() && (!activeChar.isInSiege() || (activeChar.getSiegeState() < 2)) && activeChar.isInsideZone(ZoneId.SIEGE)) { activeChar.teleToLocation(MapRegionTable.TeleportType.TOWN); } activeChar.heal(); return activeChar; } I imagine I should create a public void spawnfake (); Somewhere make a code using some of these spawn codes, put some amount of it and use that spawnfake (); no gameserver.java to start, but I made a few attempts and failed, if anyone can help I'll be grateful. Translated by google translate
  4. Hello friends, I'm converting a code made in IXMLReader to XMLDocument because my entire source uses XMLDocument, I'm halfway through but I'm getting error with forEach and I would like to ask for help from you friends, I'll put the code without any changes of mine and with change Anyone who can help is grateful. No change: package net.sf.l2j.gameserver.data.xml; import java.nio.file.Path; import java.util.ArrayList; import java.util.List; import net.sf.l2j.commons.data.xml.IXmlReader; import net.sf.l2j.gameserver.model.event.BossEvent; import net.sf.l2j.gameserver.templates.StatsSet; import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; /** * @author StinkyMadness */ public class BossEventData implements IXmlReader { private static final List<StatsSet> data = new ArrayList<>(); protected BossEventData() { load(); } @Override public void load() { parseFile("./data/xml/BossEvent.xml"); } @Override public void parseDocument(Document doc, Path path) { forEach(doc, "list", listNode -> forEach(listNode, "Boss", bossNode -> { final StatsSet set = parseAttributes(bossNode); forEach(bossNode, "announce", messageNode -> set.set("announceOnSpawn", parseString(messageNode.getAttributes(), "onSpawn"))); forEach(bossNode, "spawnLoc", positionNode -> { final NamedNodeMap attrs = positionNode.getAttributes(); set.set("posX", parseInteger(attrs, "x")); set.set("posY", parseInteger(attrs, "y")); set.set("posZ", parseInteger(attrs, "z")); }); forEach(bossNode, "despawn", messageNode -> set.set("despawnTime", parseInteger(messageNode.getAttributes(), "after"))); forEach(bossNode, "scheduleSpawnTime", spawnTimeNode -> set.set("spawnDateData", parseString(spawnTimeNode.getAttributes(), "val"))); data.add(set); })); data.forEach(BossEvent::new); } public static BossEventData getInstance() { return SingletonHolder.INSTANCE; } private static class SingletonHolder { protected static final BossEventData INSTANCE = new BossEventData(); } } With change: package net.sf.l2j.gameserver.data.xml; import java.io.File; import java.nio.file.Path; import java.util.ArrayList; import java.util.List; import net.sf.l2j.commons.data.xml.XMLDocument; import net.sf.l2j.gameserver.events.BossEvent; import net.sf.l2j.gameserver.templates.StatsSet; import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; /** * @author StinkyMadness */ public class BossEventData extends XMLDocument { private static final List<StatsSet> data = new ArrayList<>(); protected BossEventData() { load(); } @Override public void load() { loadDocument("./data/xml/BossEvent.xml"); } public void parseDocument(Document doc, Path path) { forEach(doc, "list", listNode -> forEach(listNode, "Boss", bossNode -> { final StatsSet set = parseAttributes(bossNode); forEach(bossNode, "announce", messageNode -> set.set("announceOnSpawn", parseString(messageNode.getAttributes(), "onSpawn"))); forEach(bossNode, "spawnLoc", positionNode -> { final NamedNodeMap attrs = positionNode.getAttributes(); set.set("posX", parseInteger(attrs, "x")); set.set("posY", parseInteger(attrs, "y")); set.set("posZ", parseInteger(attrs, "z")); }); forEach(bossNode, "despawn", messageNode -> set.set("despawnTime", parseInteger(messageNode.getAttributes(), "after"))); forEach(bossNode, "scheduleSpawnTime", spawnTimeNode -> set.set("spawnDateData", parseString(spawnTimeNode.getAttributes(), "val"))); data.add(set); })); data.forEach(BossEvent::new); } public static BossEventData getInstance() { return SingletonHolder.INSTANCE; } private static class SingletonHolder { protected static final BossEventData INSTANCE = new BossEventData(); } /* (non-Javadoc) * @see net.sf.l2j.commons.data.xml.XMLDocument#parseDocument(org.w3c.dom.Document, java.io.File) */ @Override protected void parseDocument(Document doc, File f) { // TODO Auto-generated method stub } } Errors after change: [javac] Compiling 1858 source files to C:\workspace\L2jMega_gameserver2\build\classes [javac] C:\workspace\L2jMega_gameserver2\java\net\sf\l2j\gameserver\data\xml\BossEventData.java:37: error: cannot find symbol [javac] forEach(doc, "list", listNode -> forEach(listNode, "Boss", bossNode -> [javac] ^ [javac] symbol: method forEach(Document,String,(listNode)[...]); })) [javac] location: class BossEventData [javac] C:\workspace\L2jMega_gameserver2\java\net\sf\l2j\gameserver\data\xml\BossEventData.java:44: error: cannot find symbol [javac] set.set("posX", parseInteger(attrs, "x")); [javac] ^ [javac] symbol: method parseInteger(NamedNodeMap,String) [javac] location: class BossEventData [javac] C:\workspace\L2jMega_gameserver2\java\net\sf\l2j\gameserver\data\xml\BossEventData.java:45: error: cannot find symbol [javac] set.set("posY", parseInteger(attrs, "y")); [javac] ^ [javac] symbol: method parseInteger(NamedNodeMap,String) [javac] location: class BossEventData [javac] C:\workspace\L2jMega_gameserver2\java\net\sf\l2j\gameserver\data\xml\BossEventData.java:46: error: cannot find symbol [javac] set.set("posZ", parseInteger(attrs, "z")); [javac] ^ [javac] symbol: method parseInteger(NamedNodeMap,String) [javac] location: class BossEventData [javac] 4 errors
  5. Hello again stinky, I'm trying to get your mod from acis 377 to 375 and I'm trying to make it difficult to read in XML, since your mod was done with IXMLReader and my source used XMLDocument, because of that I can not compile, I was looking for forms of convert the code to XMLDocument and would like to know if there are options to help me. This document was not found. "The XMLDocument type can not be a superinterface of BossEventData; a superinterface must be an interface". Translated by google translate. [javac] C:\workspace\L2jMega_gameserver2\java\net\sf\l2j\gameserver\data\xml\BossEventData.java:18: error: cannot find symbol [javac] public class BossEventData implements IXmlReader [javac] ^ [javac] symbol: class IXmlReader [javac] C:\workspace\L2jMega_gameserver2\java\net\sf\l2j\gameserver\data\xml\BossEventData.java:27: error: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] C:\workspace\L2jMega_gameserver2\java\net\sf\l2j\gameserver\data\xml\BossEventData.java:30: error: cannot find symbol [javac] parseFile("./data/xml/BossEvent.xml"); [javac] ^ [javac] symbol: method parseFile(String) [javac] location: class BossEventData [javac] C:\workspace\L2jMega_gameserver2\java\net\sf\l2j\gameserver\data\xml\BossEventData.java:33: error: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] C:\workspace\L2jMega_gameserver2\java\net\sf\l2j\gameserver\data\xml\BossEventData.java:37: error: cannot find symbol [javac] forEach(doc, "list", listNode -> forEach(listNode, "Boss", bossNode -> [javac] ^ [javac] symbol: method forEach(Document,String,(listNode)[...]); })) [javac] location: class BossEventData [javac] C:\workspace\L2jMega_gameserver2\java\net\sf\l2j\gameserver\data\xml\BossEventData.java:44: error: cannot find symbol [javac] set.set("posX", parseInteger(attrs, "x")); [javac] ^ [javac] symbol: method parseInteger(NamedNodeMap,String) [javac] location: class BossEventData [javac] C:\workspace\L2jMega_gameserver2\java\net\sf\l2j\gameserver\data\xml\BossEventData.java:45: error: cannot find symbol [javac] set.set("posY", parseInteger(attrs, "y")); [javac] ^ [javac] symbol: method parseInteger(NamedNodeMap,String) [javac] location: class BossEventData [javac] C:\workspace\L2jMega_gameserver2\java\net\sf\l2j\gameserver\data\xml\BossEventData.java:46: error: cannot find symbol [javac] set.set("posZ", parseInteger(attrs, "z")); [javac] ^ [javac] symbol: method parseInteger(NamedNodeMap,String) [javac] location: class BossEventData [javac] 8 errors
  6. What's puzzling me is that things seem to be all right there. RandomZone.xml in the zone folder and inside it contains this, just like your example. <?xml version="1.0" encoding="UTF-8"?> <list> <zone shape="Cuboid" minZ="-3752" maxZ="-352"><!-- gludin_pvp --> <stat name="id" val="1" /> <stat name="name" val="Gludin Arena" /> <stat name="time" val="30" /><!-- time in seconds --> <stat name="locs" val="-88339,141802,-3649;-87894,142231,-3649" /> <node X="-88411" Y="141732" /> <node X="-87429" Y="142708" /> </zone> <zone shape="Cuboid" minZ="-3850" maxZ="-350"><!-- giran_pvp_battle --> <stat name="id" val="2" /> <stat name="name" val="Giran Arena" /> <stat name="time" val="30" /><!-- time in seconds --> <stat name="locs" val="73306,142440,-3775;72646,142403,-3775" /> <node X="72493" Y="142263" /> <node X="73493" Y="143261" /> </zone> </list>
  7. Hi stinky, I really liked this change, however, by adding I'm getting this nullpointer. Could you give me some help on? https://imgur.com/FSe7h5y
×