Jump to content

iAlreadyExist

Members
  • Posts

    350
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by iAlreadyExist

  1. it gives me the same effect doesnt want to work
  2. hey can you help me i have problem with my system when its called with other name it doesnt allow you to enter the server i dont know what is causing this.. when its called system its okey but when i rename it to other name it doesnt allow me to join the server
  3. i made it and it works but i want when you press on ls you select weapon like scroll for enchant and then it augments it and if you dont like the augment you repeat
  4. its not what im looking for this one gives directly the augmented skill i want when they press on lifestone to open augment selection where you put the items for augment
  5. hey can someone share life stone when you press on lifestone you select weapon like scroll for enchant and then it augments it and if you dont like the augment you repeat
  6. hey guys im trying to display icons im using this but i get this error https://prnt.sc/19hai1c
  7. thank you guys all was wrong in the zone coords someone lock
  8. i dont have empty reward it was working but i want to give the reward when im inside the pvp zone maybe this is the problem ? Player is inside zone false
  9. it doesnt work even if im out of the zone...
  10. Player is inside zone false, Config: true this is what i have inside my zone /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package net.sf.l2j.gameserver.model.zone.type; import net.sf.l2j.commons.random.Rnd; import net.sf.l2j.gameserver.ThreadPoolManager; import net.sf.l2j.gameserver.datatables.SkillTable; import net.sf.l2j.gameserver.model.L2Skill; import net.sf.l2j.gameserver.model.actor.L2Character; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.zone.L2SpawnZone; import net.sf.l2j.gameserver.model.zone.ZoneId; /** * An Custom PvP Zone * * @author NeverMore */ public class L2CustomPvPZone extends L2SpawnZone { //Ramdom Locations configs static int[] _x = {182240, 180199, 182296, 180185, 183254}; static int[] _y = {22295, 22307, 18294, 18289, 20343}; static int[] _z = {-3174, -3174, -3173, -3173, -3169}; L2Skill noblesse = SkillTable.getInstance().getInfo(1323, 1); public L2CustomPvPZone(int id) { super(id); } @Override protected void onEnter(L2Character character) { character.setInsideZone(ZoneId.CustomPvPZone, true); character.setInsideZone(ZoneId.NO_SUMMON_FRIEND, true); } @Override protected void onExit(L2Character character) { character.setInsideZone(ZoneId.CustomPvPZone, false); character.setInsideZone(ZoneId.NO_SUMMON_FRIEND, false); } static class BackToPvp implements Runnable { private L2Character _activeChar; BackToPvp(L2Character character) { _activeChar = character; } @Override public void run() { int r = Rnd.get(5); _activeChar.teleToLocation(_x[r] , _y[r], _z[r], r); } } @Override public void onDieInside(L2Character character) { if (character instanceof L2PcInstance) { } } @Override public void onReviveInside(L2Character character) { ThreadPoolManager.getInstance().scheduleGeneral(new BackToPvp(character), 500); ((L2PcInstance) character).isNoblesseBlessed(); noblesse.getEffects(character, character); } }
  11. the pvpreward call is in pcInstance where is setting +1 pvp private void pvpReward() { for (PvpReward pvpFeatures : PvpFeaturesTable.getInstance().getPvpRewardsTable()) { if (Rnd.nextDouble() < pvpFeatures.getChance()) addItem("Pvp Reward", pvpFeatures.getItemId(), pvpFeatures.getItemCount(), this, true); } }
  12. why do i need ip protection its just the code not working
  13. not working i want when they are inside the pvp zone only then to get reward im using acis
  14. i have zone and it working it is respawning me gives me nobless etc i think the problem is that its not checking who is in that zone which player
  15. hey guys can you tell me what is wrong with this it gives basicly everywhere reward if(isInsideZone(ZoneId.CUSTOMPVP)) { sendMessage("is it working?"); return; } else if (Config.ENABLE_PVP_FEATURES) { pvpReward(); }
  16. i made it but when the player opens the menu for selling or buying it gets directly the effect i want when they exit the game then public void setPrivateStoreType(PrivateStoreType type) { if (type == PrivateStoreType.NONE) { stopAbnormalEffect(AbnormalEffect.SLEEP); } else { startAbnormalEffect(AbnormalEffect.SLEEP); } _privateStoreType = type; if (Config.OFFLINE_DISCONNECT_FINISHED && (type == PrivateStoreType.NONE) && ((getClient() == null) || getClient().isDetached())) deleteMe(); }
  17. i have found this if (Config.OFFLINE_DISCONNECT_FINISHED && (type == PrivateStoreType.NONE) && ((getClient() == null) || getClient().isDetached())) deleteMe(); and i have make it like this public void setPrivateStoreType(PrivateStoreType type) { _privateStoreType = type; if (type == PrivateStoreType.NONE) { stopAbnormalEffect(AbnormalEffect.SLEEP); }else{ startAbnormalEffect(AbnormalEffect.SLEEP); } if (Config.OFFLINE_DISCONNECT_FINISHED && (type == PrivateStoreType.NONE) && ((getClient() == null) || getClient().isDetached())) deleteMe(); } but im getting this error https://prnt.sc/17eynfh
  18. can someone send me code skill sleep for offline traders i think i have asked for it before but i search in my topics and someone has deleted it
  19. i have made it but its making only the killer flag
  20. its a request and the codes you give me doesnt work
  21. i got error again https://prnt.sc/17000rw
  22. im using acis but the codes you give me i dont know where to place them
  23. error https://prnt.sc/16yrt67
×
×
  • Create New...