Loren Posted March 7, 2010 Posted March 7, 2010 very good job coyote, gratz. +1 Coyote working perfectly!i test is before!except the bug its ok :) Bte nc work! Quote
Sponz Posted March 9, 2010 Posted March 9, 2010 i have this error how i can fix this? http://pastebin.com/q0yExaZn <---gameserver.java Quote
Coyote™ Posted March 9, 2010 Author Posted March 9, 2010 Probably Gracia User. Register the command @ the MasterHandler file, instead of the GS. EDIT: Just saw that you're using equal. Go to VoicedCommandHandler.java, located in equal/gameserver/handler. Open it, and go to registerVoicedCommandHandler(new version()); Under this, add: if (Config.ENABLE_AIO_VC) registerVoicedCommandHandler(new VoicedAIOCmd()); Don't forget to add the import. And you're done! Quote
Sponz Posted March 9, 2010 Posted March 9, 2010 Probably Gracia User. Register the command @ the MasterHandler file, instead of the GS. EDIT: Just saw that you're using equal. Go to VoicedCommandHandler.java, located in equal/gameserver/handler. Open it, and go to registerVoicedCommandHandler(new version()); Under this, add: if (Config.ENABLE_AIO_VC) registerVoicedCommandHandler(new VoicedAIOCmd()); Don't forget to add the import. And you're done! ty man work fine now...ty ty :P Quote
Coyote™ Posted March 9, 2010 Author Posted March 9, 2010 ty man work fine now...ty ty :P No Problem, have fun using it. Quote
Sponz Posted March 10, 2010 Posted March 10, 2010 some typos.... 121.-activeChar.getInventory().addItem("Item", 3470, 1, activeChar, null); +activeChar.getInventory().addItem("Item", Config.VCAIO_MINISHOP_ITEMID, Config.VCAIO_MINISHOP_ITEMAMMOUNT, activeChar, null); 127. - activeChar.sendMessage("You do not have enough adena to use this function!") + activeChar.sendMessage("You do not have enough adena to use this function!"); Quote
Coyote™ Posted March 10, 2010 Author Posted March 10, 2010 some typos.... 121.-activeChar.getInventory().addItem("Item", 3470, 1, activeChar, null); +activeChar.getInventory().addItem("Item", Config.VCAIO_MINISHOP_ITEMID, Config.VCAIO_MINISHOP_ITEMAMMOUNT, activeChar, null); 127. - activeChar.sendMessage("You do not have enough adena to use this function!") + activeChar.sendMessage("You do not have enough adena to use this function!"); Sorry, fixed. Occured because of this + else if (_command.startsWith("aio_minishop")) + { + if (Config.ENABLE_VCAIO_SHOP) + { + if (activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.VCAIO_MINISHOP_ADENAS) + { + InventoryUpdate iup = new InventoryUpdate(); + activeChar.getInventory().reduceAdena("Item", Config.VCAIO_MINISHOP_ADENAS, activeChar, null); + activeChar.getInventory().addItem("Item", 3470, 1, activeChar, null); + activeChar.getInventory().updateDatabase(); + activeChar.sendPacket(iup); + } + else + { + activeChar.sendMessage("You do not have enough adena to buy this") + } + } EDIT: Tested and working perfectly :) Quote
Matim Posted June 1, 2010 Posted June 1, 2010 works for interlude? Next time I will dekarma you, I swear. How long do I have to repeat that CHRONICLE DOESN'T MATTER? Its still the same java language - its so hard to understand? Ye, you will have to make some changes, but thats all. Quote
I-NiceSleep Posted July 4, 2011 Posted July 4, 2011 Interlude to fit? Just gave me in a personal code trying to put it is impossible. 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.