I have a problem! I have added your ressurection system and I wanted to change GB count to 100...
I have changed this line:
activeChar.getInventory().destroyItemByItemId("RessSystem", 3470, 1, activeChar, activeChar.getTarget());
To this:
activeChar.getInventory().destroyItemByItemId("RessSystem", 3470, 100, activeChar, activeChar.getTarget());
And it takes 100 GB, but if you have 99 GB it ressurects you anyway and don't take GB!
As I think, I need to edit this line and add here count:
if(activeChar.getInventory().getItemByItemId(3470) == null)
But how can I add it? I have tried
getItemByItemId(3470, 100)
, but this don't work and give an error...
Help me please asap... Thank you in advice.