Jump to content

[Share]Get Class Items With Commands.


'Baggos'

Recommended Posts

(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

Link to comment
Share on other sites

(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 by 'Baggos'
Link to comment
Share on other sites

+ 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

Link to comment
Share on other sites

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 by 'Baggos'
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...