Jump to content

conheonit

Members
  • Posts

    244
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by conheonit

  1. I like your website =]]
  2. What is your server website?
  3. nice mid-rate server. I will try!
  4. Nice guide! Thanks you very much.
  5. Nice guide! Thanks very much
  6. Can you upload only your website themes? I need it but your patch very weight (600mb)!!! Thanks before!
  7. Thanks you very much!
  8. replace where: + public static void addFlagToPlayer(L2PcInstance _player) + { + //remove items from the player hands (right, left, both) + // This is NOT a BUG, I don't want them to see the icon they have 8D + L2ItemInstance wpn = _player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND); + if (wpn == null) + { + wpn = _player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND); + if (wpn != null) + _player.getInventory().unEquipItemInBodySlotAndRecord(Inventory.PAPERDOLL_RHAND); + } + else + { + _player.getInventory().unEquipItemInBodySlotAndRecord(Inventory.PAPERDOLL_RHAND); + wpn = _player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LHAND); + if (wpn != null) + _player.getInventory().unEquipItemInBodySlotAndRecord(Inventory.PAPERDOLL_LHAND); + } + //add the flag in his hands + _player.getInventory().equipItem(ItemTable.getInstance().createItem("", CTF._FLAG_IN_HAND_ITEM_ID, 1, _player, null)); + _player.broadcastPacket(new SocialAction(_player, 16)); //amazing glow + _player._haveFlagCTF = true; + _player.broadcastUserInfo(); + CreatureSay cs = new CreatureSay(_player.getObjectId(), 15, ":", "You got it! Run back! ::"); // 8D + _player.sendPacket(cs); + + // Start the flag holding timer + _flagsNotRemoved.set(_teams.indexOf(_player._teamNameCTF), true); + flagHoldTimer(_player, _flagHoldTime); + + // If player is invisible, make them visible + if (_player.getAppearance().getInvisible()) + { + @SuppressWarnings("unused") + L2Effect eInvisible = _player.getFirstEffect(L2EffectType.HIDE); + } + } into: Remember had imported: import com.l2jserver.gameserver.network.serverpackets.InventoryUpdate; import com.l2jserver.gameserver.model.itemcontainer.Inventory; import com.l2jserver.gameserver.model.L2ItemInstance; And: public static void addFlagToPlayer(L2PcInstance _player) { //remove items from the player hands (right, left, both) // This is NOT a BUG, I don't want them to see the icon they have 8D L2ItemInstance wpnR = _player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND); L2ItemInstance wpnL = _player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LHAND); if (wpnR == null) wpnR = _player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND); if (wpnL == null) wpnL = _player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LHAND); if (wpnR != null && wpnL != null) { L2ItemInstance[] unequipedR = _player.getInventory().unEquipItemInBodySlotAndRecord(wpnR.getItem().getBodyPart()); L2ItemInstance[] unequipedL = _player.getInventory().unEquipItemInBodySlotAndRecord(wpnL.getItem().getBodyPart()); InventoryUpdate iu = new InventoryUpdate(); for (L2ItemInstance itemR: unequipedR) iu.addModifiedItem(itemR); for (L2ItemInstance itemL: unequipedL) iu.addModifiedItem(itemL); _player.sendPacket(iu); } else if (wpnR == null && wpnL != null) { L2ItemInstance[] unequipedL = _player.getInventory().unEquipItemInBodySlotAndRecord(wpnL.getItem().getBodyPart()); InventoryUpdate iu = new InventoryUpdate(); for (L2ItemInstance itemL: unequipedL) iu.addModifiedItem(itemL); _player.sendPacket(iu); } else if (wpnR != null && wpnL == null) { L2ItemInstance[] unequipedR = _player.getInventory().unEquipItemInBodySlotAndRecord(wpnR.getItem().getBodyPart()); InventoryUpdate iu = new InventoryUpdate(); for (L2ItemInstance itemR: unequipedR) iu.addModifiedItem(itemR); _player.sendPacket(iu); } //add the flag in his hands _player.getInventory().equipItem(ItemTable.getInstance().createItem("", CTF._FLAG_IN_HAND_ITEM_ID, 1, _player, null)); _player.broadcastPacket(new SocialAction(_player, 16)); //amazing glow _player._haveFlagCTF = true; _player.broadcastUserInfo(); CreatureSay cs = new CreatureSay(_player.getObjectId(), 15, ":", "You got it! Run back! ::"); // 8D _player.sendPacket(cs); // Start the flag holding timer _flagsNotRemoved.set(_teams.indexOf(_player._teamNameCTF), true); flagHoldTimer(_player, _flagHoldTime); // If player is invisible, make them visible if (_player.getAppearance().getInvisible()) { @SuppressWarnings("unused") L2Effect eInvisible = _player.getFirstEffect(L2EffectType.HIDE); } } It is "_player" not "player"
  9. import this patch where? ctf.java?
  10. If you used my mod, alt+click will disable
  11. You should reading core and datapack patch. Then, you try copy and paste it exactly in your source!
  12. Fist, I must have a normal NPC in NPC Table or Customs NPC Table.
  13. It work 100%. I tested!
  14. Nice share! I will take it for my commands collection Thanks very much!
  15. It same : # Times TvT will occur (24h format). TvTEventInterval = 9:00,15:00,21:00,19:00 In l2jmods.properties and you can set time for event start!
  16. I try leech it for Hi5 and work 100% with somethings fixed!
  17. Sorry my English, I am from Viet Nam. I try make commands for Death Match Event, It consists two commands are ".joindm" and ".leavedm". I do it based on the Death Match Event. But because I leech it for High Five server so it should work L2JServer High Five ( should in Freya? test it! ). DOWNLOAD: http://www.mediafire.com/?6aoo6vepaogezn3 Tested and work 100%. Base: FFs ( I do it same CTF Event Commands of FFs ) Credits : by me ( http://vietcheaters.com ) Thanks for read.
  18. I leech and tested the Death Match Event work 100% for High Five, it maked by base code in here : http://maxcheaters.com/forum/index.php?topic=77795.0 Can you help me create commands for it ( ex: .joindm , .leavedm )? Thanks you. EDITED: Oh, It's great, I have to manually do it! Sorry my English!
  19. When do you finish it?
  20. Ok, It is perfect. I try fix somethings and work 100%. Thanks for share!
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock