Jump to content

Search the Community

Showing results for tags 'custom'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Categories

  • Lineage II Server Packs [Java]
  • Lineage II Server Packs [PTS]
  • Lineage II Server Scripts
  • Lineage II Client Scripts
  • Lineage II Items & Chars
  • Website Templates
  • DenArt Designs's Demo Updater

Forums

  • General Zone
    • Announcements and News
    • Newbies Introduce Urself
    • Maxcheaters Competitions & Events
    • Votes/Polls Area
    • Report Section
    • Downloads Section
  • Lineage II General Section
    • General Discussion [English]
    • Request Support [English]
  • Lineage II Hacks,Cheats and Bots
    • Hacks & Cheats [English]
    • Request Hacks & Cheats [English]
    • Botting [English]
    • Request Botting [English]
  • Lineage II Private Servers
    • LineZeus.GR is back with an x5 Interlude with Ertheia Interface server on 28th/Dec.
    • Private Servers
    • L2Cosmos.com [High Five] x15 with unique game files, comes back on December 29th.
    • [Previews] L2 Private Servers
    • Clans and Alliances
  • Lineage II Marketplace
    • Marketplace [Items & Chars]
    • Marketplace [L2Packs & Files]
    • Marketplace [Powerlvl & Support]
  • Lineage II OFF Server Development
    • Server Development Discussion [L2OFF]
    • Request Server Development Help [L2OFF]
    • Server Shares & Files [L2OFF]
  • Lineage II Java Server Development
    • Server Development Discussion [L2J]
    • Request Server Development Help [L2J]
    • Server Shares & Files [L2J]
    • Private Projects [L2J]
  • Lineage II Client Development
    • Client Development Discussion
  • MMO Games
    • League of Legends
    • World Of Warcraft Area
    • Other Multiplayer Games
  • General Section
    • General Marketplace
    • Consoles/Mobiles/PDA Gaming Zone
    • Webmasters Zone
    • Hacking/Coding Zone
  • Graphics/GFX Zone
    • Graphics/GFX General Discussion
    • Graphics/GFX Showcase
    • Graphics/GFX Resources/Tools
  • VIP/SVIP/Donators Zone
    • VIPs/Donators Discussion
    • VIPs Lineage II
    • VIPs [GFX] Zone
    • VIPs Download Area
  • MaxCheaters Corner
    • Tech/World News
    • Off-Topics
    • Spam Topics
  • TEST's Topics
  • L2Classic Club's Just trying this thing out
  • Lineage 2 Revolution Club's Discussions
  • Lineage 2 Revolution Club's Tutorials
  • Lineage 2 Revolution Club's Request Help
  • DenArt Designs's Hello and welcome to my club!
  • DenArt Designs's News

Product Groups

  • Advertisements
  • Special Groups

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 5 results

  1. another custom manager, that shows status (alive or respawn estimating time) of any raidboss in da game. originally status is 'divided' onto two individual lists: private static final int[] RBOSSES = {25418,25434,25126}; private static int MBOSS = 25126;MBOSS main boss (one and only).RBOSSES list of additional bosses (as many as you want). preview: http://s1.postimg.org/dqli7zcf2/rbstatus_preview.jpg ps. credits to daffynash who spared some of you the tedious work by creating the patch. ### Eclipse Workspace Patch 1.0 #P aCis_datapack Index: data/xml/npcs/50000-50999.xml =================================================================== --- data/xml/npcs/50000-50999.xml (revision 6) +++ data/xml/npcs/50000-50999.xml (working copy) @@ -1,5 +1,38 @@ <?xml version="1.0" encoding="utf-8"?> <list> + <npc id="50001" idTemplate="25449" name="BOSS STATUS" title="L2EUPHORIA.COM"> + <set name="level" val="80"/> + <set name="radius" val="15"/> + <set name="height" val="28"/> + <set name="rHand" val="0"/> + <set name="lHand" val="0"/> + <set name="type" val="L2RaidBossStatus"/> + <set name="exp" val="0"/> + <set name="sp" val="0"/> + <set name="hp" val="5000"/> + <set name="mp" val="2500"/> + <set name="hpRegen" val="8"/> + <set name="mpRegen" val="8"/> + <set name="pAtk" val="100"/> + <set name="pDef" val="100"/> + <set name="mAtk" val="100"/> + <set name="mDef" val="100"/> + <set name="crit" val="4"/> + <set name="atkSpd" val="253"/> + <set name="str" val="40"/> + <set name="int" val="21"/> + <set name="dex" val="30"/> + <set name="wit" val="20"/> + <set name="con" val="43"/> + <set name="men" val="20"/> + <set name="corpseTime" val="7"/> + <set name="walkSpd" val="50"/> + <set name="runSpd" val="120"/> + <set name="dropHerbGroup" val="0"/> + <set name="attackRange" val="40"/> + <ai type="default" ssCount="0" ssRate="0" spsCount="0" spsRate="0" aggro="0" canMove="false" seedable="false"/> + </npc> + <npc id="50006" idTemplate="31228" name="Roy the Cat" title="Class Manager"> <set name="level" val="70"/> <set name="radius" val="9"/> Index: data/html/mods/RaidBossStatus/50001.htm =================================================================== --- data/html/mods/RaidBossStatus/50001.htm (revision 0) +++ data/html/mods/RaidBossStatus/50001.htm (working copy) @@ -0,0 +1,21 @@ +<html><title>BOSS STATUS</title><body> +<br><table width=300><tr><td align=center> +<img src="L2UI_CH3.herotower_deco" width=256 height=32> + +<br><br><br><br> +<font color=a2a0a2>ancient scrolls reveals truth of their return +<br1>defeat was merely delay ...</font> +</td></tr></table> + +<br> +<img src=L2UI.SquareGray width=300 height=1> +<table width=300 height=27 bgcolor="000000"> + <tr> + <td align=center width=300>%mboss%</td> + </tr> +</table> +<img src=L2UI.SquareGray width=300 height=1> + +<br> +<center>%bosslist%</center> +</body></html> \ No newline at end of file #P aCis_gameserver Index: java/net/sf/l2j/gameserver/instancemanager/RaidBossSpawnManager.java =================================================================== --- java/net/sf/l2j/gameserver/instancemanager/RaidBossSpawnManager.java (revision 9) +++ java/net/sf/l2j/gameserver/instancemanager/RaidBossSpawnManager.java (working copy) @@ -45,6 +45,7 @@ protected final static Map<Integer, L2RaidBossInstance> _bosses = new HashMap<>(); protected final static Map<Integer, L2Spawn> _spawns = new HashMap<>(); + protected final static Map<Integer, Long> _respawns = new HashMap<>(); protected final static Map<Integer, StatsSet> _storedInfo = new HashMap<>(); protected final static Map<Integer, ScheduledFuture<?>> _schedules = new HashMap<>(); @@ -142,6 +143,7 @@ _log.info("RaidBoss: " + raidboss.getName() + " has spawned."); _bosses.put(bossId, raidboss); + _respawns.put(bossId,0L); } _schedules.remove(bossId); @@ -148,6 +150,14 @@ } } + public long getRespawntime(int id) + { + if(_respawns.containsKey(id)) + return _respawns.get(id); + + return -1; + } + public void updateStatus(L2RaidBossInstance boss, boolean isBossDead) { if (!_storedInfo.containsKey(boss.getNpcId())) @@ -171,6 +181,7 @@ { _log.info("RaidBoss: " + boss.getName() + " - " + StringUtil.DATE_MM.format(respawnTime) + " (" + respawnDelay + "h)."); + _respawns.put(boss.getNpcId(), Calendar.getInstance().getTimeInMillis() + (respawnDelay * 3600000L)); _schedules.put(boss.getNpcId(), ThreadPoolManager.getInstance().scheduleGeneral(new spawnSchedule(boss.getNpcId()), respawnDelay * 3600000)); updateDb(); } @@ -179,6 +190,8 @@ { boss.setRaidStatus(StatusEnum.ALIVE); + _respawns.put(boss.getNpcId(), 0L); + info.set("currentHP", boss.getCurrentHp()); info.set("currentMP", boss.getCurrentMp()); info.set("respawnTime", 0L); @@ -226,11 +239,13 @@ info.set("respawnTime", 0L); _storedInfo.put(bossId, info); + _respawns.put(bossId, 0L); } } else { long spawnTime = respawnTime - Calendar.getInstance().getTimeInMillis(); + _respawns.put(bossId,respawnTime); _schedules.put(bossId, ThreadPoolManager.getInstance().scheduleGeneral(new spawnSchedule(bossId), spawnTime)); } @@ -272,6 +287,9 @@ SpawnTable.getInstance().deleteSpawn(spawnDat, false); _spawns.remove(bossId); + if (_respawns.containsKey(bossId)) + _respawns.remove(bossId); + if (_bosses.containsKey(bossId)) _bosses.remove(bossId); @@ -412,6 +430,7 @@ _schedules.clear(); } + _respawns.clear(); _storedInfo.clear(); _spawns.clear(); } Index: java/net/sf/l2j/gameserver/model/actor/instance/L2RaidBossStatusInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2RaidBossStatusInstance.java (revision 0) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2RaidBossStatusInstance.java (working copy) @@ -0,0 +1,126 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + * + * http://www.gnu.org/copyleft/gpl.html + */ +package net.sf.l2j.gameserver.model.actor.instance; + +import java.util.Calendar; +import net.sf.l2j.gameserver.cache.HtmCache; +import net.sf.l2j.gameserver.datatables.NpcTable; +import net.sf.l2j.gameserver.instancemanager.RaidBossSpawnManager; +import net.sf.l2j.gameserver.model.actor.template.NpcTemplate; +import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage; + +public class L2RaidBossStatusInstance extends L2NpcInstance +{ + private static final int[] RBOSSES = {25418,25434,25126}; + private static int MBOSS = 25126; + + public L2RaidBossStatusInstance(int objectId, NpcTemplate template) + { + super(objectId, template); + } + + @Override + public void showChatWindow(L2PcInstance player) + { + generateFirstWindow(player); + } + + private void generateFirstWindow(L2PcInstance activeChar) + { + final StringBuilder sb = new StringBuilder(); + + for(int rboss : RBOSSES) + { + + long delay = RaidBossSpawnManager.getInstance().getRespawntime(rboss); + String name = NpcTable.getInstance().getTemplate(rboss).getName().toUpperCase(); + + if (delay==0) + { + sb.append("<font color=\"b09979\">"+name +" IS ALIVE!</font><br1>"); + } + else if (delay<0) + { + sb.append("<font color=\"FF0000\"> "+name +" IS DEAD.</font><br1>"); + } + else + { + delay = RaidBossSpawnManager.getInstance().getRespawntime(rboss) - Calendar.getInstance().getTimeInMillis(); + sb.append("<font color=\"b09979\">"+name+"</font> "+ConverTime(delay)+" <font color=\"b09979\">TO RESPAWN.</font><br1>"); + } + } + + long m_delay = RaidBossSpawnManager.getInstance().getRespawntime(MBOSS); + String m_name = NpcTable.getInstance().getTemplate(MBOSS).getName().toUpperCase(); + + String mainBossInfo =""; + + if (m_delay==0) + { + mainBossInfo = "WE SHOULD HAVE ACTED<br1><font color=\"b09979\">"+m_name+" IS ALIVE!</font><br1>"; + } + else if (m_delay<0) + { + mainBossInfo = "IT'S ALL OVER<br1><font color=\"FF0000\"> "+m_name+" IS DEAD.</font><br1>"; + } + else + { + m_delay = m_delay - Calendar.getInstance().getTimeInMillis(); + mainBossInfo = "<font color=\"b09979\">"+ConverTime(m_delay)+"</font><br1>UNTIL OBLIVION OPEN!"; + } + + NpcHtmlMessage html = new NpcHtmlMessage(1); + html.setFile(getHtmlPath(getNpcId(), 0)); + html.replace("%objectId%", getObjectId()); + html.replace("%bosslist%", sb.toString()); + html.replace("%mboss%", mainBossInfo); + activeChar.sendPacket(html); + } + + private static String ConverTime(long mseconds) + { + long remainder = mseconds; + + long hours = (long)Math.ceil((mseconds/(60*60*1000))); + remainder = mseconds - (hours*60*60*1000); + + long minutes = (long)Math.ceil((remainder / (60*1000))); + remainder = remainder -(minutes *(60*1000)); + + long seconds = (long)Math.ceil((remainder / 1000)); + + return hours+":"+minutes+":"+seconds; + } + + @Override + public String getHtmlPath(int npcId, int val) + { + String filename; + + if (val == 0) + filename = "data/html/mods/RaidBossStatus/" + npcId + ".htm"; + else + filename = "data/html/mods/RaidBossStatus/" + npcId + "-" + val + ".htm"; + + if (HtmCache.getInstance().isLoadable(filename)) + return filename; + + return "data/html/mods/RaidBossStatus/" + npcId + ".htm"; + } +} \ No newline at end of file
  2. The new Professional Game-Launcher Few words about this new updater I give you is that you will not wait for the design... you just get it INSTANTLY! Free Register No deadlines Instant use No Wait You Buy it and it works You select a skin from my Web Gallery Change Skin ANYTIME with 1 click Virus Friendly (See virustotal link below) New Skins to select almost every week New Game Options on demand Statistics for your players Settings change on updater from Web Panel Connect your server and check from your phone statistics Online Players, PvP, PK, and more.. Links: Plans https://updater.denart-designs.com/plans Total Players use our updater https://updater.denart-designs.com/stats Information https://updater.denart-designs.com/info FAQ https://updater.denart-designs.com/faq Prices https://updater.denart-designs.com/plans VirusTotal https://www.virustotal.com/#/file/c3e3acc9e7c7f897b17649a2fd38a72c3e373f51a6bb8a034cbe86ca940614e8/detection Contact Links Join My Club in MaxCheaters Visit My New Webpage Like me On Facebook Follow Me in Twitter Pin My work In Pinterest Wach Random Events Of DenArts In Instagram Click to send me E-mail: info@denart-designs.com Click to add me on Skype: Demo SKINS RETIRED WORKS BELOW (READ/VIEW ONLY)
  3. Hello everyone, we want to present you serveroffer hosting services. Dedicated servers Custom dedicated servers for wide variety of purposes. Optional ddos protection Optional Graphics processor - GPU Windows and Linux operating systems (SSH / Remote desktop access) For custom dedicated server configuration - ask support Prices from 20 Eur/monthly XEN VPS VPS servers for game servers, browsing, backup services, mssql databases, .net websites, automation software and more VPS Processor clock speed - 3.0 -3.4 GHz Windows and Linux operating systems Optional ddos protection Linux Xen VPS prices from 8.49 Eur/monthly Windows Xen VPS prices from 9.99 Eur/monthly OpenVZ Linux VPS Linux VPS servers for game servers, backups, testing, browsing and many more OpenvZ Linux VPS from 1.59 Eur/monthly Own Data center in Northern Europe VAT invoices are available for all our services Payments: Bank wire transfer, Paypal/credit card, Bitcoins Support Live support on serveroffer page skype: serveroffer Maxchearters limited dedicated server offer (ask support): dedicated server Maxcheater1 32 GB RAM CPU 8x3.4 GHz CPU (intel i7/ Xeon E3) 250 GB SSD/ 1TB HDD ddos protection 1 ipv4 address Only 55 Eur/month dedicated server Maxcheater2 16 GB RAM CPU 4x3.4 GHz CPU (intel i3/i5) 250 GB SSD/ 1TB HDD ddos protection 1 ipv4 address Only 45 Eur/month
  4. L2J aCis Custom Pack Hello to everyone, The main goal of this project is to provide the most important, useful and necessary custom features in L2J aCis project that every pvp server rely on, I've chosen L2J aCis because it’s a very clean and maintainable pack and of course I am going to keep it in that way. Every second week I release 15 new custom features from GitHub and of course you are welcome to join in our team. I want to mention here that I am using only the latest free revision of aCis which the current is 360. The members who gives reputation on the first post will get full access for every release, and they don't need to wait for every 15 updates, I will make a private repository for them as well, I will give them my full support for any adoption, if for example they have acisVersion>acisFreeVersion exclusively, there is no problem at all ! GitHub Link => https://github.com/kkafkas/L2J_aCis_custom NPCs Scheme Buffer =============================================================================================== Gatekeeper =============================================================================================== Warehouse Augmenter =============================================================================================== Skill Enchanter Ranking =============================================================================================== Class Manager PasswordManager designed and developed by me =============================================================================================== Custom Properties CustomStartingLvl = True CharLvl = 80 CharTitle = True CharAddTitle = MyServer.com EnablePvPColorSystem = True PvpAmount1 = 500 ColorForAmount1 = 293546 PvpAmount2 = 1000 ColorForAmount2 = 00ff00 PvpAmount3 = 1500 ColorForAmount3 = 0000ff PvpAmount4 = 2500 ColorForAmount4 = ffff00 PvpAmount5 = 5000 ColorForAmount5 = ff0000 CustomSpawn = True SpawnX = 149999 SpawnY = 46728 SpawnZ = -3414 OnlineOnLogin = True WelcomeHtm = True PMWelcomeShow = True PMServerName = L2-Sample PMText1 = Have Fun and Nice Stay on PMText2 = Vote for us every 24h NewPlayerEffect = True EnableNobleCustomItem = True AnnouncePkKill = True AnnouncePvPKill = True EnableHeroCustomItem = True HeroCustomHours = 1 EnableCustomSubClass= True =============================================================================================== Balance Balance System Added + (Anarchy balance system http://www.maxcheate...ancer-for-acis/) =============================================================================================== Events TVT Event Added =============================================================================================== User Commands .tvt_join (joins the user in tvt) .tvt_leave (leave the user from tvt) .tvtstatus =============================================================================================== Admin Commands //balance //reload balance //tvt_start (not waiting for the TVT_EVENT_INTERVAL and immediately starting the event, if and only if the state == EventState.INACTIVE) //tvt_cancel (immediately cancel the event, if and only if the state == EventState.PARTICIPATING) //tvt_add (adding a simple user in the tvt) //tvt_remove (removing a simple user from the tvt)
  5. simplest custom buffer - easy in use, intuitive window. magical support has been divided onto five independent groups where users can buffup themselves manually or automatically via two pre-definied sets (mage, fighter). also there's an additional option to bestow heroic valor effect in exchange for any item (in this case: gold bar). i recommend to combine this feature with vote reward system :) preview: http://s9.postimg.org/czbrb670v/buffer.gif create new instance: java/gameserver/model/actor/instance/L2BufferInstance.java /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * http://www.gnu.org/copyleft/gpl.html */ package net.sf.l2j.gameserver.model.actor.instance; import java.util.StringTokenizer; import net.sf.l2j.commons.random.Rnd; import net.sf.l2j.gameserver.ai.CtrlIntention; import net.sf.l2j.gameserver.datatables.SkillTable; import net.sf.l2j.gameserver.network.serverpackets.ActionFailed; import net.sf.l2j.gameserver.network.serverpackets.MyTargetSelected; import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage; import net.sf.l2j.gameserver.network.serverpackets.SocialAction; import net.sf.l2j.gameserver.network.serverpackets.ValidateLocation; import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse; import net.sf.l2j.gameserver.model.actor.template.NpcTemplate; /** * * @author Caparso */ public final class L2BufferInstance extends L2NpcInstance { int fighterbuffs [] = {1397,1087,1044,1243,1304,1259,1204,1068,1388,1040,1036,1035,1048,1045,1077,1242,1086,1043,1240,1268,1032,1033,1191,1189,1182,1354,1353,1352,1392,1393,4699,4700,1416,1363,277,307,309,311,310,272,271,275,274,264,269,265,270,267,268,266,364,349,308,306,304}; int magebuffs [] = {1397,1087,1044,1243,1304,1259,1204,1040,1389,1036,1035,1048,1045,1085,1078,1303,1059,1032,1033,1191,1189,1182,1353,1354,1352,1392,1393,4703,1416,1363,273,276,365,307,309,311,264,265,270,267,268,266,363,349,308,306,304}; int voterewards [] = {1374}; public L2BufferInstance(int objectId, NpcTemplate template) { super(objectId, template); } @Override public void onBypassFeedback(L2PcInstance player, String command) { StringTokenizer st = new StringTokenizer(command, " "); String actualCommand = st.nextToken(); int buffid = 0; int bufflevel = 1; String nextWindow = null; if (st.countTokens() == 3) { buffid = Integer.valueOf(st.nextToken()); bufflevel = Integer.valueOf(st.nextToken()); nextWindow = st.nextToken(); } else if (st.countTokens() == 1) { buffid = Integer.valueOf(st.nextToken()); } if (actualCommand.equalsIgnoreCase("getbuff")) { if (buffid != 0) { MagicSkillUse mgc = new MagicSkillUse(this, player, buffid, bufflevel, -1, 0); SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, player); showMessageWindow(player); player.broadcastPacket(mgc); showChatWindow(player, nextWindow); } } else if (actualCommand.equalsIgnoreCase("fighterset")) { for (int id: fighterbuffs) { SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id)).getEffects(this, player); } showChatWindow(player); } else if (actualCommand.equalsIgnoreCase("mageset")) { for (int id: magebuffs) { SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id)).getEffects(this, player); } showChatWindow(player); } else if (actualCommand.equalsIgnoreCase("rewards")) { if (player.destroyItemByItemId("voterewards",10600,1, player.getCurrentFolkNPC(), true)) { for (int id: voterewards) { SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id)).getEffects(this, player); } } else { player.sendMessage("You don't have heroic's certifications to exchange."); } showChatWindow(player); } else if (actualCommand.equalsIgnoreCase("restore")) { player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp()); player.setCurrentCp(player.getMaxCp()); showMessageWindow(player); } else if (actualCommand.equalsIgnoreCase("cancel")) { player.stopAllEffects(); showMessageWindow(player); } else super.onBypassFeedback(player, command); } @Override public void onAction(L2PcInstance player) { if (this != player.getTarget()) { player.setTarget(this); player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel())); player.sendPacket(new ValidateLocation(this)); } else if (isInsideRadius(player, INTERACTION_DISTANCE, false, false)) { SocialAction sa = new SocialAction(this, Rnd.get(8)); broadcastPacket(sa); player.setCurrentFolkNPC(this); showMessageWindow(player); player.sendPacket(ActionFailed.STATIC_PACKET); } else { player.getAI().setIntention(CtrlIntention.INTERACT, this); player.sendPacket(ActionFailed.STATIC_PACKET); } } private void showMessageWindow(L2PcInstance player) { String filename = "data/html/buffer/" + getNpcId() + ".htm"; filename = getHtmlPath(getNpcId(), 0); NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); html.setFile(filename); html.replace("%objectId%", String.valueOf(getObjectId())); html.replace("%npcname%", getName()); player.sendPacket(html); } @Override public String getHtmlPath(int npcId, int val) { String pom = ""; if (val == 0) pom = "" + npcId; else pom = npcId + "-" + val; return "data/html/buffer/" + pom + ".htm"; } }create new npc: <npc id="9001" idTemplate="31081" name="BUFFER" title="L2EUPHORIA.COM"> <set name="level" val="70"/> <set name="radius" val="8"/> <set name="height" val="30.5"/> <set name="rHand" val="0"/> <set name="lHand" val="5802"/> <set name="type" val="L2Buffer"/> <set name="exp" val="0"/> <set name="sp" val="0"/> <set name="hp" val="2444.46819"/> <set name="mp" val="1345.8"/> <set name="hpRegen" val="7.5"/> <set name="mpRegen" val="2.7"/> <set name="pAtk" val="688.86373"/> <set name="pDef" val="295.91597"/> <set name="mAtk" val="470.40463"/> <set name="mDef" val="216.53847"/> <set name="crit" val="4"/> <set name="atkSpd" val="253"/> <set name="str" val="40"/> <set name="int" val="21"/> <set name="dex" val="30"/> <set name="wit" val="20"/> <set name="con" val="43"/> <set name="men" val="20"/> <set name="corpseTime" val="7"/> <set name="walkSpd" val="50"/> <set name="runSpd" val="120"/> <set name="dropHerbGroup" val="0"/> <set name="attackRange" val="40"/> <ai type="default" ssCount="0" ssRate="0" spsCount="0" spsRate="0" aggro="0" canMove="true" seedable="false"/> <skills> <skill id="4045" level="1"/> <skill id="4416" level="14"/> </skills> </npc> don't forget to paste this folder within htmls in the right section (gameserver/data/html), then spawn 9001.
×