llamar Posted June 29, 2010 Share Posted June 29, 2010 Thanks good share!!! Quote Link to comment Share on other sites More sharing options...
archonus Posted July 13, 2010 Share Posted July 13, 2010 thanks for this guide Quote Link to comment Share on other sites More sharing options...
removed_001 Posted July 13, 2010 Share Posted July 13, 2010 it works but lets sa that i want an item, that when a player click on it he will automatically be V.I.P what code to use for that? Quote Link to comment Share on other sites More sharing options...
l2redkiller Posted July 13, 2010 Share Posted July 13, 2010 Really cool and simple code i will put it injto my server thanks for guide so i learn some edits on L2server :D Quote Link to comment Share on other sites More sharing options...
eKo Posted July 13, 2010 Author Share Posted July 13, 2010 it works but lets sa that i want an item, that when a player click on it he will automatically be V.I.P what code to use for that? 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 Quote Link to comment Share on other sites More sharing options...
removed_001 Posted July 13, 2010 Share Posted July 13, 2010 and where it says itemId == itemID) i put my own? Quote Link to comment Share on other sites More sharing options...
HouLiGaN Posted July 13, 2010 Share Posted July 13, 2010 Nice share Quote Link to comment Share on other sites More sharing options...
Intrepid Posted July 13, 2010 Share Posted July 13, 2010 god...please someone hear me and use patch files...a diff file is much much much more better than a mess of quotes... Quote Link to comment Share on other sites More sharing options...
FDB Posted July 13, 2010 Share Posted July 13, 2010 god...please someone hear me and use patch files...a diff file is much much much more better than a mess of quotes... + you confisu ppl with quotes and btw sotos there that says (ItemId) Deside one and put example (ItemID= 6723) Quote Link to comment Share on other sites More sharing options...
rafole Posted July 13, 2010 Share Posted July 13, 2010 Great !! U have rly nice imagination dude :) Quote Link to comment Share on other sites More sharing options...
Spidey* Posted July 13, 2010 Share Posted July 13, 2010 nc share... thank you Quote Link to comment Share on other sites More sharing options...
HackMeUpReturns Posted July 13, 2010 Share Posted July 13, 2010 Thanks,eko! One more time your job is much appreciated by me :D Good JOB! Quote Link to comment Share on other sites More sharing options...
FDB Posted July 13, 2010 Share Posted July 13, 2010 Thanks,eko! One more time your job is much appreciated by me :D Good JOB! You Dont know how to apply a patch .. -.-' how y apreciate it i saw you on skullcoders leeching everything from here to there LOL Imo Quote Link to comment Share on other sites More sharing options...
l2redkiller Posted August 3, 2010 Share Posted August 3, 2010 dude i have problems i cant use AnnounceVip code like this : if (Config.ANNOUNCE_VIP_LOGIN) { if [color=red](activeChar.getAccessLevel()== 10)[/color] Announcements.getInstance().announceToAll((new StringBuilder()).append("Char Vip ").append(activeChar.getName()).append(" Is Currently Online.").toString()); } thanks for help or its just becurse the l2pcinstance i dont put that atm becurse wanna overide it maybe for much onlinetime to get vip.sorry for my english Quote Link to comment Share on other sites More sharing options...
MasterDisaster Posted August 3, 2010 Share Posted August 3, 2010 eKo really great work and simple guide, thnx for it ;) 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.