-
Posts
66 -
Credits
0 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Acacia
-
L2JEternity is a nice project.
-
i used to have this issue on l2j on a script i made, not sure in acis 409 if it could be same or .? but that fixed it for me : spawnDat.setAmount(1); // <------- spawnDat.setX(x); spawnDat.setY(y); spawnDat.setZ(z); spawnDat.setHeading(heading); spawnDat.setRespawnDelay(respawn); spawnDat.startRespawn(); spawnDat.doSpawn();
-
-
you could do something like this : PlayerTemplate.java public final double getBaseHpMax(int level) { double HP; if (level >= 80) { HP = _hpTable[79] + 35 * (level - 80); } else { HP = _hpTable[level -1]; } return HP; } same should do for CP/MP , and u won't have to edit any classes table and dont forget karma tables :)
-
LF Reshare 26_20 Magmeld, Ancient City of Arcan
Acacia replied to cryptonakos4444's topic in [Request] Client Dev Help
@deMEVOnly this legend may help you then -
LF Reshare 26_20 Magmeld, Ancient City of Arcan
Acacia replied to cryptonakos4444's topic in [Request] Client Dev Help
his link still working here , or are they different ? -
Code Delete Item From Inventory aCis 374
Acacia replied to Acacia's topic in Server Shares & Files [L2J]
well i didnt used to had that issue u reffering , u can always lower the page value that would show on each page . keep in mind it was taken from h5 that it can handle more html length than interlude . package handlers.admincommandhandlers; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; import org.l2jmobius.gameserver.model.actor.Player; import org.l2jmobius.gameserver.model.item.instance.Item; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage; import org.l2jmobius.gameserver.util.Util; public class AdminInventory implements IAdminCommandHandler { private static final String[] ADMIN_COMMANDS = { "admin_showinv", "admin_delete_item" }; @Override public boolean useAdminCommand(String command, Player activeChar) { WorldObject target = activeChar.getTarget(); if (target == null || !target.isPlayer()) { activeChar.sendPacket(SystemMessageId.INVALID_TARGET); return false; } if (command.startsWith(ADMIN_COMMANDS[0])) { if (command.length() > ADMIN_COMMANDS[0].length()) { String com = command.substring(ADMIN_COMMANDS[0].length() + 1); if (Util.isDigit(com)) { showItemsPage(activeChar, Integer.parseInt(com)); } } else { showItemsPage(activeChar, 0); } } int count = 1; if (command.contains(ADMIN_COMMANDS[1])) { String[] parts = command.split(" "); if (parts.length == 3) { try { count = Integer.parseInt(parts[2]); } catch (NumberFormatException e) { activeChar.sendMessage("Invalid quantity format."); return false; } } if (count == 0) { activeChar.sendMessage("Quantity must be 1 or above, or left blank for default."); showItemsPage(activeChar, 0); return false; } String val = parts[1]; target.getActingPlayer().destroyItem("GM Destroy", Integer.parseInt(val), count, null, true); showItemsPage(activeChar, 0); } return true; } private void showItemsPage(Player activeChar, int page) { final WorldObject target = activeChar.getTarget(); final Player player = target.getActingPlayer(); final Item[] items = player.getInventory().getItems().toArray(new Item[0]); int maxItemsPerPage = 13; int maxPages = items.length / maxItemsPerPage; if (items.length > (maxItemsPerPage * maxPages)) { maxPages++; } if (page > maxPages) { page = maxPages; } int itemsStart = maxItemsPerPage * page; int itemsEnd = items.length; if ((itemsEnd - itemsStart) > maxItemsPerPage) { itemsEnd = itemsStart + maxItemsPerPage; } final NpcHtmlMessage adminReply = new NpcHtmlMessage(0); adminReply.setFile(activeChar, "data/html/admin/inventory.htm"); adminReply.replace("%PLAYER_NAME%", activeChar.getName()); StringBuilder sbPages = new StringBuilder(); for (int x = 0; x < maxPages; x++) { int pagenr = x + 1; sbPages.append("<td><button value=\"" + pagenr + "\" action=\"bypass -h admin_showinv " + x + "\" width=20 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>"); } adminReply.replace("%PAGES%", sbPages.toString()); StringBuilder sbItems = getStringBuilder(itemsStart, itemsEnd, items); adminReply.replace("%ITEMS%", sbItems.toString()); activeChar.sendPacket(adminReply); } private static StringBuilder getStringBuilder(int itemsStart, int itemsEnd, Item[] items) { StringBuilder sbItems = new StringBuilder(); sbItems.append("<table width=270>"); sbItems.append("<tr>"); sbItems.append("<td width=24><b> </b></td>"); sbItems.append("<td width=120><b> </b></td>"); sbItems.append("<td width=90><b>Count</b></td>"); sbItems.append("<td width=65><b>Quantity</b></td>"); sbItems.append("</tr>"); for (int i = itemsStart; i < itemsEnd; i++) { Item item = items[i]; sbItems.append("<tr>"); sbItems.append("<td><img src=").append(item.getTemplate().getIcon()).append(" width=24 height=24></td>"); sbItems.append("<td>").append(item.getName()).append("</td>"); sbItems.append("<td>").append(item.getCount()).append("</td>"); sbItems.append("<td>"); sbItems.append("<edit var=\"itemCount_").append(i).append("\" width=40>"); sbItems.append("</td>"); sbItems.append("<td><button action=\"bypass -h admin_delete_item ").append(item.getObjectId()).append(" $itemCount_").append(i).append("\" width=16 height=16 back=\"L2UI_ct1.Button_DF_Delete\" fore=\"L2UI_ct1.Button_DF_Delete\"></button></td>"); sbItems.append("</tr>"); } sbItems.append("</table>"); return sbItems; } @Override public String[] getAdminCommandList() { return ADMIN_COMMANDS; } } Since i did jumped to mobius here the mobius one with quantity field aswell . feel free to adapt it back to acis or wherever <html><body><title>Inventory : %PLAYER_NAME%</title> <center> <table width=270> <tr> %PAGES% </tr> </table> </center> <br> %ITEMS% </body> </html> -
https://l2jmobius.org/forum/index.php?board=69.0
-
https://discord.gg/trinitygaming
-
Request L2Pride V2.0
Acacia replied to Grain Kain's question in Request Server Development Help [L2J]
https://www.4shared.com/archive/BcDzIir7ba/L2Pride_Patch.html this should be ok -
Help trinity database
Acacia replied to panousos95's question in Request Server Development Help [Greek]
@Brado :') -
WTS Essence project 388-439 & (447 like pride)
Acacia replied to alibabank's topic in Marketplace [L2Packs & Files]
**that have been running for over 2 years** there is no information at all looks fishy af. provide all information you have what was the server name ? -
Request Hunting zones level
Acacia replied to xristoeli1994's question in Request Server Development Help [L2J]
i think he meant info for zones like elven forest 10-15 elven fortress 15-20 etc etc , to add info on his html on gk unfortunately i don't know , incase you know any website to help him drop it -
Help Mod anúncio PvP
Acacia replied to FA1XAPRET4's question in Request Server Development Help [L2J]
there are countless Spree Systems shared bro . -
Share Lineage 2 Ultimate Client Collection
Acacia replied to Finn's topic in Client Development Discussion
ty didn't noticed that one -
LF Hi5 Skin system
Acacia replied to FossilGamer's question in Request Server Development Help [L2J]
it changes the current equiped Item's visual ( saves in db under item id in inventory table ). if u equip another equipment it wont have the other visual . u'll have to reuse -
Share Lineage 2 Ultimate Client Collection
Acacia replied to Finn's topic in Client Development Discussion
152 Protocol System Link is Dead -
Share Interface.u, NWindow.u source code Fafurion ( 196 Protocol )
Acacia replied to Rolo's topic in Client Development Discussion
anyone got the system with the ucc in for it ? -
LF Hi5 Skin system
Acacia replied to FossilGamer's question in Request Server Development Help [L2J]
DressMe for L2JSunrise Got this now from a random forum , Its Tested i adapted it before on both acis and l2j worked as a charm HF -
Help PvP/PK Count on title
Acacia replied to DEVILMSTAR1's question in Request Server Development Help [L2J]
Its possible though it should located in client's interface -
Help PvP/PK Count on title
Acacia replied to DEVILMSTAR1's question in Request Server Development Help [L2J]
-
Its an old adapted code i made many years ago , just adapted it for latest Acis rev feel free to correct any unnecessary lines or issues ( it works as intended and good to go though ) its easy to extend *Missing Mods ( Teleporter & Symbol Maker , didn't had time to adapt from my old rev ) DIFF ( CODE ) HTML FILES Locate : data/xml/items/5500-5599.xml ( Tutorial Guide ) Locate Item Id : 5588 change : <set name="handler" val="Book" /> to : ----> <set name="handler" val="Cubic" />
- 1 reply
-
- 2
-
-
Hello , i coded this one a lil while ago for someone that requested it , i'll just drop it here aswell PVP PK TITLE RANK <--- DIFF Format for Latest Acis Rev Code: @Kishin Apply it using the diff or navigate and do it manually It does Updates when a new PvP / PK or when changing your Title max title letters changed to 9 ( more than that it hides the pvp/count letters ) Have fun
-
- 1
-
-
Help PvP/PK Count on title
Acacia replied to DEVILMSTAR1's question in Request Server Development Help [L2J]
PVP PK RANK UPDATE <-- Code: @Kishin Here you go ready to use . coded on latest sources of acis on diff format , or you can apply it or navigate and paste it manually . it does updates when new pvp / pk or changing title max title letters changed to 9 ( more than that it hides the pvp/count letters )