Jump to content

xAddytzu

Members
  • Posts

    2,395
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Everything posted by xAddytzu

  1. Face palm..
  2. djxpaul@yahoo.com Skilled - Trusted - Awesome websites
  3. @Cobra, xa0xa0 faggot @Eko, Excuse me that I fought with your girlfriend
  4. Sure..Also I remember when you C/P from L2JServer oO
  5. Sure..Also I remember when you C/P from L2JServer oO
  6. Fail. And what I can make with this program? open config.cfg from kzh ? ( you can open it with notepad too ) :(
  7. Fail. And what I can make with this program? open config.cfg from kzh ? ( you can open it with notepad too ) :(
  8. ...and what is the contact between lineage and pipes,wires ? Damn..
  9. ...and what is the contact between lineage and pipes,wires ? Damn..
  10. Upload it on other link dude. We cant make account beacause forum is in russian, ( a tried with google translate ) but everyday i get error at password field :D !
  11. Someone share it. Can`t make account ...
  12. Fail server with a fail start. --------- No lifer? >.>
  13. FAIL :(
  14. Check your other files or change the ids from packs.
  15. Check here : - http://maxcheaters.com/forum/index.php?topic=203026.0 - http://maxcheaters.com/forum/index.php?topic=203028.0
  16. case 1: //first pack id 5134 instead of 1 case 2: //second pack id 5135 instead of 2
  17. Give me a pm :). Skilled webdesigner
  18. package net.iplay.gameserver.handler.itemhandlers; import net.iplay.gameserver.handler.IItemHandler; import net.iplay.gameserver.model.actor.instance.L2ItemInstance; import net.iplay.gameserver.model.actor.instance.L2PcInstance; import net.iplay.gameserver.model.actor.instance.L2PlayableInstance; import net.iplay.gameserver.network.SystemMessageId; import net.iplay.gameserver.network.serverpackets.ItemList; import net.iplay.gameserver.network.serverpackets.SystemMessage; import net.iplay.util.Rnd; public class YourCustomClass implements IItemHandler { private static final int[] ITEM_IDS = { 1,2 //packs ids }; private int[] Pack1 = {6847,6849,6851,6853,6855,6857,6859,6861,6863,6865,6867,6869,6871,6873,6875,6877,6879,6881,6883,6885,6887,6889,6891,6893,6895,6897,6899,7580}; private int[] Pack2 = { /**anothers ids*/}; public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if (!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance) playable; int itemId = item.getItemId(); int itemToCreateId = 0; int amount = 0; switch(itemId) { case 1: //first pack id { if(getChance(30)) { itemToCreateId = Pack1[Rnd.get(Pack1.length)]; amount = 1; } break; } case 2: //second pack id { if(getChance(Rnd.get(30, 70))) // random chance { itemToCreateId = Pack2[Rnd.get(Pack2.length)]; amount = Rnd.get(1, 5); } break; } } activeChar.getInventory().destroyItem("Extract", item, activeChar, null); activeChar.getInventory().addItem("Extract", itemToCreateId, amount, activeChar, item); SystemMessage sm = new SystemMessage(SystemMessageId.EARNED_S2_S1_S); sm.addItemName(itemToCreateId); sm.addNumber(amount); activeChar.sendPacket(sm); ItemList playerUI = new ItemList(activeChar, false); activeChar.sendPacket(playerUI); } private boolean getChance(int i) { return i > Rnd.get(100); } public int[] getItemIds() { return ITEM_IDS; } }
  19. b - bring u - up m - my p - post
  20. I'm home right now, Let me code it for ya .. public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if (!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance) playable; int itemId = item.getItemId(); int itemToCreateId = 0, amount = 0; if (itemId >= 5134 && itemId <= 5139) // SS { if (itemId == 5134 && getChance(20)) // No Grade { itemToCreateId = 7580; amount = Rnd.get(3, 5); } if (itemId == 5135 && getChance(30)) { itemToCreateId = 6847; amount = Rnd.get(3, 5); } } } private boolean getChance(int i) { return i > Rnd.get(100); }
  21. I am glad to see that you tried to do something and you didn't come without any efforts. The easiest method is to create a integer and define it with Rnd values. So We will have public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if (!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance) playable; int itemId = item.getItemId(); int itemToCreateId = 0; boolean chance20 = 20 > Rnd.get(100), chance30 = 30 > Rnd.get(100); int amount = 0; if (itemId >= 5134 && itemId <= 5139) // SS { if (itemId == 5134 && chance20) // No Grade { itemToCreateId = 7580; amount = Rnd.get(3, 5); } if (itemId == 5135 && chance30) { itemToCreateId = 6847; amount = Rnd.get(3, 5); } } } If you have more than 2-3 items make a private method to get the chance ... -Cheers
  22. He is trusted guy ! I made some deals with him :D
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..