removed_001 Posted August 31, 2010 Posted August 31, 2010 Example : /** * @author eKo * */ public class ViP implements IItemHandler { private static final int[] ITEM_IDS = { itemID }; public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if (!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance)playable; int itemId = item.getItemId(); if (itemId == itemID) { activeChar.setAccessLevel(10); String htmFile = "data/html/mods/vipinfo.htm"; String htmContent = HtmCache.getInstance().getHtm(htmFile); NpcHtmlMessage infoHtml = new NpcHtmlMessage(1); infoHtml.setHtml(htmContent); activeChar.sendPacket(infoHtml); } } public int[] getItemIds() { return ITEM_IDS; } } i sets char on 10 access lvl and shows a vip html where i put these lines? Quote
Nosti21 Posted August 31, 2010 Posted August 31, 2010 a good share. thanks mate for the share and keep sharing. Quote
eKo Posted August 31, 2010 Author Posted August 31, 2010 where i put these lines? create a new item at itemhandel and register it at gameserver. Quote
Xanadu Posted August 31, 2010 Posted August 31, 2010 Good idea.. but its crazy.. xx pvp and everyone can get gm access lv 10 o.O Thanks for guide! Quote
removed_001 Posted September 1, 2010 Posted September 1, 2010 firstly dont spam the facking topic!! EKO did a great job so do not forget this! Quote
l2redkiller Posted October 12, 2010 Posted October 12, 2010 dudes i have every time the same problem on enterworld.java here if (activeChar.getAccessLevel() == 10) Announcements.getInstance().announceToAll((new StringBuilder()).append("Char Vip ").append(activeChar.getName()).append(" Is Currently Online.").toString()); Quote
roy.rm Posted October 29, 2010 Posted October 29, 2010 Very intersting, i'll try to use it. thx alot eKo. Quote
Progress Posted December 13, 2010 Posted December 13, 2010 this will come from pearls next to the buffer rihana vip. :D Quote
lowrider88 Posted August 10, 2012 Posted August 10, 2012 HI, could this please be put together in a alrdy made file so i can easily just copy them to my l2j high five server, i have no idea how to put these in manualy. Looks great and would really love to have thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.