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?
Nosti21 Posted August 31, 2010 Posted August 31, 2010 a good share. thanks mate for the share and keep sharing.
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.
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!
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!
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());
roy.rm Posted October 29, 2010 Posted October 29, 2010 Very intersting, i'll try to use it. thx alot eKo.
Progress Posted December 13, 2010 Posted December 13, 2010 this will come from pearls next to the buffer rihana vip. :D
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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now