Admin@Abyssal Posted February 5, 2015 Posted February 5, 2015 (57, 0) < Config.FIGHTER_Items_PRICE ... it mean -500 return true; 500+ return false; Quote
Ayami- Posted February 5, 2015 Posted February 5, 2015 (57, 0) < Config.FIGHTER_Items_PRICE ... it mean -500 return true; 500+ return false; Hello. no offense but learn some java ( i dont know much but) please go back to your cave Quote
'Baggos' Posted February 5, 2015 Author Posted February 5, 2015 (edited) (57, 0) < Config.FIGHTER_Items_PRICE ... it mean -500 return true; 500+ return false; + if(activeChar.getInventory().getInventoryItemCount(57, 0) < Config.FIGHTER_ITEMS_PRICE) This mean: if char have adena less than config. { activeChar.sendMessage("You do not have enough Adena"); return false; } Just put this... I'll update the code later... now i'm on my job. Edited February 5, 2015 by 'Baggos' Quote
Admin@Abyssal Posted February 5, 2015 Posted February 5, 2015 Hello. no offense but learn some java ( i dont know much but) please go back to your cave youre wrong dude :) Quote
Ayami- Posted February 5, 2015 Posted February 5, 2015 + if(activeChar.getInventory().getInventoryItemCount(57, 0) < Config.FIGHTER_ITEMS_PRICE) This mean: if char have adena less than config. { activeChar.sendMessage("You do not have enough Adena"); return false; } Just put this... I'll update the code later... now i'm on my job. youre wrong dude :) already explained next time test before you say crap i know who you are stop posting crap, i remember when you spam me with your CAPITAL GREEKS about fullfix - classic greek lame word fullbalancer - classic greek lame word FULL PRIDE- classic yours lame word i wont spam more i told to baggos which was the problem he will update it as he said end of story Quote
Admin@Abyssal Posted February 5, 2015 Posted February 5, 2015 hahahaha kids.. :) an account isn't only for one ;) crap...crap is your face dude Quote
Ayami- Posted February 5, 2015 Posted February 5, 2015 hahahaha kids.. :) an account isn't only for one ;) crap...crap is your face dude You spek england mucho nice i neid to spek england by yiou Quote
'Baggos' Posted February 6, 2015 Author Posted February 6, 2015 (edited) pathetic.. Pa"r"thenic? :o :happyforever: Edited February 6, 2015 by 'Baggos' Quote
Ayami- Posted February 6, 2015 Posted February 6, 2015 Pa"r"thenic? :o :happyforever: :not bad: :troll: Quote
'Baggos' Posted February 6, 2015 Author Posted February 6, 2015 (edited) Updated! Fixes: - if(activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.FIGHTER_ITEMS_PRICE) + if (activeChar.getInventory().getInventoryItemCount(57, 0) < Config.COMMANDS_ITEMS_PRICE) - if(!Config.ALT_GAME_KARMA_PLAYER_CAN_USE_GK && activeChar.getKarma() > 0) + if (activeChar.getKarma() > 0) - activeChar.getInventory().reduceAdena("Adena", Config.FIGHTER_ITEMS_PRICE, activeChar, null); - activeChar.getInventory().destroyItemByItemId("Adena", 57, Config.MAGE_ITEMS_PRICE, activeChar, null); + activeChar.getInventory().destroyItemByItemId("Adena", 57, Config.COMMANDS_ITEMS_PRICE, activeChar, null); - /** - * @see com.l2jfrozen.gameserver.handler.IVoicedCommandHandler(java.lang.String, com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance, java.lang.String) - */ - @SuppressWarnings("javadoc") - Useless Check. Added: Soulshots Grade-S on fighters. B.Spirishots Grade-S on Mages. Shining Arrows On bowitems. Crusader Shield On tankitems. Duelist Items. Tyrant Items. Edited February 6, 2015 by 'Baggos' 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.