morka Posted November 7, 2009 Posted November 7, 2009 Who can help with Balloni code http://www.maxcheaters.com/forum/index.php?topic=47545.0 When I try click on item I get this error. http://img145.imageshack.us/img145/9567/notwork.jpg Watch codes sets in right places. http://img145.imageshack.us/i/balloni.jpg/ Balloni.htm I changet in this photo. http://img691.imageshack.us/i/50694730.jpg/ Please help me.If have working code please share or write comment how to repair this error.
0 morka Posted November 7, 2009 Author Posted November 7, 2009 Sorry for double post,l2jserver don't work this to.Who have this working code and tested?
0 Intrepid Posted November 7, 2009 Posted November 7, 2009 dont open 2 topic for the same thing the rules allow you to bump your own topic in every 12hour. it shows an NPE for the htmlmessage add a check for the html file
0 morka Posted November 7, 2009 Author Posted November 7, 2009 I do everything from guide,and don't work,can explain which htmlmessage add?
0 Intrepid Posted November 7, 2009 Posted November 7, 2009 package com.l2jfree.gameserver.handler.itemhandlers; import com.l2jfree.Config; import com.l2jfree.gameserver.handler.IItemHandler; import com.l2jfree.gameserver.GameServer; import com.l2jfree.gameserver.cache.HtmCache; import com.l2jfree.gameserver.model.actor.instance.L2PcInstance; import com.l2jfree.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jfree.gameserver.handler.IItemHandler; import com.l2jfree.gameserver.model.L2ItemInstance; import com.l2jfree.gameserver.model.actor.instance.L2PcInstance; import com.l2jfree.gameserver.model.actor.instance.L2PlayableInstance; /** * @author Cobra * */ public class Balloni implements IItemHandler { private static final int[] ITEM_IDS = { 10639 }; public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if (!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance)playable; int itemId = item.getItemId(); if (itemId == 10639) { String htmFile = "data/html/Teleport/Balloni.htm"; String htmContent = HtmCache.getInstance().getHtm(htmFile); if (htmContent != null) { NpcHtmlMessage infoHtml = new NpcHtmlMessage(1); infoHtml.setHtml(htmContent); activeChar.sendPacket(infoHtml); } else activeChar.sendMessage("omg lame error! where is " + htmFile + " ! blame the Server Admin"); } } public int[] getItemIds() { return ITEM_IDS; } } it was easy thats why i like these forks it brings more and more 0 knowledge ppl great
0 morka Posted November 8, 2009 Author Posted November 8, 2009 I set this Balloni.java.Who can help? what I do wrong?
0 Intrepid Posted November 8, 2009 Posted November 8, 2009 I set this Balloni.java.Who can help? what I do wrong? and now whats the problem
0 morka Posted November 8, 2009 Author Posted November 8, 2009 That is a problem http://img145.imageshack.us/img145/9567/notwork.jpg I do everything good.No errors in source but when click on item I get error.
0 Intrepid Posted November 8, 2009 Posted November 8, 2009 wtf is this pack pfff for me the code i pasted above working fine
0 morka Posted November 9, 2009 Author Posted November 9, 2009 What pack you use? I use Interlude pack,and need Interlude.
0 Intrepid Posted November 9, 2009 Posted November 9, 2009 What pack you use? I use Interlude pack,and need Interlude. well than w8 until someone who knows interlude post here i dont work on shit
0 Intrepid Posted November 9, 2009 Posted November 9, 2009 You use gracia final? i use everything that not shitlude
0 morka Posted November 9, 2009 Author Posted November 9, 2009 I can contact with you? Have skype or something?
Question
morka
Who can help with Balloni code http://www.maxcheaters.com/forum/index.php?topic=47545.0 When I try click on item I get this error.
http://img145.imageshack.us/img145/9567/notwork.jpg
Watch codes sets in right places.
http://img145.imageshack.us/i/balloni.jpg/ Balloni.htm I changet in this photo.
http://img691.imageshack.us/i/50694730.jpg/
Please help me.If have working code please share or write comment how to repair this error.
25 answers to this question
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