removed_001 Posted August 31, 2010 Share 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 Link to comment Share on other sites More sharing options...
Nosti21 Posted August 31, 2010 Share Posted August 31, 2010 a good share. thanks mate for the share and keep sharing. Quote Link to comment Share on other sites More sharing options...
eKo Posted August 31, 2010 Author Share Posted August 31, 2010 where i put these lines? create a new item at itemhandel and register it at gameserver. Quote Link to comment Share on other sites More sharing options...
Xanadu Posted August 31, 2010 Share 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 Link to comment Share on other sites More sharing options...
removed_001 Posted September 1, 2010 Share Posted September 1, 2010 firstly dont spam the facking topic!! EKO did a great job so do not forget this! Quote Link to comment Share on other sites More sharing options...
l2redkiller Posted October 12, 2010 Share 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 Link to comment Share on other sites More sharing options...
roy.rm Posted October 29, 2010 Share Posted October 29, 2010 Very intersting, i'll try to use it. thx alot eKo. Quote Link to comment Share on other sites More sharing options...
mitsak0 Posted December 12, 2010 Share Posted December 12, 2010 nice share man! ty Quote Link to comment Share on other sites More sharing options...
Progress Posted December 13, 2010 Share Posted December 13, 2010 this will come from pearls next to the buffer rihana vip. :D Quote Link to comment Share on other sites More sharing options...
Erica710 Posted January 9, 2011 Share Posted January 9, 2011 My server not work errors:S Quote Link to comment Share on other sites More sharing options...
lowrider88 Posted August 10, 2012 Share 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 Link to comment Share on other sites More sharing options...
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.