Jump to content

ton3

Members
  • Posts

    168
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by ton3

  1. I think it will be easier to rework my flagzone then and make it like siege. protected void onEnter(L2Character character) { character.setInsideZone(ZoneId.PVP, true); character.setInsideZone(ZoneId.NO_SUMMON_FRIEND, true); ((L2PcInstance) character).sendMessage("You have entered a chaotic zone."); } My question now is, would PvP points count inside the zone? or I have to add it in l2pcinstance?
  2. My goal is to keep the player flagged when inside zone, even if u kill someone the PvPflag shouldnt disappear when inside zone.
  3. I have this code and still when my char kill another char inside zone the pvp flag is gone after 30sec. public void updatePvPStatus() { if (isInsideZone(ZoneId.PVP) || isInsideZone(ZoneId.FLAG_ZONE)) return; PvpFlagTaskManager.getInstance().add(this, Config.PVP_NORMAL_TIME); if (getPvpFlag() == 0) updatePvPFlag(1); } and public void updatePvPStatus(L2Character target) { final L2PcInstance player = target.getActingPlayer(); if (player == null) return; if (isInDuel() && player.getDuelId() == getDuelId()) return; if ((!isInsideZone(ZoneId.PVP) || !target.isInsideZone(ZoneId.PVP)) && player.getKarma() == 0) { PvpFlagTaskManager.getInstance().add(this, checkIfPvP(player) ? Config.PVP_PVP_TIME : Config.PVP_NORMAL_TIME); if (getPvpFlag() == 0) updatePvPFlag(1); } } can someone point me what is wrong? thanks.
  4. im wondering if anyone have stressweb 13 working? I tried a lot of them and none worked. thanks
  5. html folder > npcid.htm
  6. im looking for acis spawnlist with monsters that drop sealstones since acis doesnt have them. ty.
  7. ops, im using acis latest rev
  8. I know this but I dont know where to look for it. here is the code if anyone want to help me. http://pastebin.com/6kuJszaw
  9. hi guys, im having a problem when hitting frintezza, everytime im getting this error on console, he just die while 30% HP and doesnt dissapear. http://joxi.ru/xAeNLNQsnMqBry can anyone heelp me?
  10. the only problem using this way is, not all players will get the items. I did something like this when boss die he spawn a merchant and player buy the quest item from him but now im facing another problem, how to give subclass to a player from a npc who ask u for 4 items? I tried looking into mimirs elixir like you said but no luck until now.
  11. Hi guys, I want to make coffer of the dead, chest of hallate, chest of kernon and chest of golkonda to give me the items needed for subclass without the quest itself. When I talk to boxes it says: You are either not on a quest that involves this npc or you dont meet this NPC requirements here is the code: package custom.Subclass; import java.util.HashMap; import java.util.Map; import net.sf.l2j.gameserver.model.actor.L2Npc; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.quest.Quest; public class Subclass extends Quest { // Items private static final int REIRIA_SOUL_ORB = 4666; private static final int KERMON_INFERNIUM_SCEPTER = 4667; private static final int GOLKONDA_INFERNIUM_SCEPTER = 4668; private static final int HALLATE_INFERNIUM_SCEPTER = 4669; // Chest Spawn private static final Map<Integer, Integer> CHEST_SPAWN = new HashMap<>(); { CHEST_SPAWN.put(25035, 31027); CHEST_SPAWN.put(25054, 31028); CHEST_SPAWN.put(25126, 31029); CHEST_SPAWN.put(25220, 31030); } public Subclass() { super(-1, "Subclass", "custom"); addTalkId(31027, 31028, 31029, 31030); // The 4 bosses which spawn chests addKillId(25035, 25054, 25126, 25220); } @Override public String onTalk(L2Npc npc, L2PcInstance player) { String htmltext = ""; switch (npc.getNpcId()) { case 31027: if (player.getLevel() >= 75) { htmltext = "31027-01.htm"; player.addItem("AutoLoot", REIRIA_SOUL_ORB, 1, player, true); } else htmltext = "31027-02.htm"; break; case 31028: if (player.getLevel() >= 75) { htmltext = "31028-01.htm"; player.addItem("AutoLoot", KERMON_INFERNIUM_SCEPTER, 1, player, true); } else htmltext = "31028-02.htm"; break; case 31029: if (player.getLevel() >= 75) { htmltext = "31029-01.htm"; player.addItem("AutoLoot", GOLKONDA_INFERNIUM_SCEPTER, 1, player, true); } else htmltext = "31029-02.htm"; break; case 31030: if (player.getLevel() >= 75) { htmltext = "31030-01.htm"; player.addItem("AutoLoot", HALLATE_INFERNIUM_SCEPTER, 1, player, true); } else htmltext = "31030-02.htm"; break; } return htmltext; } @Override public String onKill(L2Npc npc, L2PcInstance player, boolean isPet) { addSpawn(CHEST_SPAWN.get(npc.getNpcId()), npc, true, 120000, false); return null; } public static void main(String args[]) { new Subclass(); } } can anyone point me what is wrong? thank you
  12. if (getNpcId() == _barakielId && player.getParty() != null) { for (final L2PcInstance member : player.getParty().getPartyMembers()) { if (member.isSubClassActive() && member.getLevel() >= 75 && !member.isNoble()) { member.setNoble(true); member.broadcastPacket(new SocialAction( player.getObjectId(), 15)); member.sendMessage("You have received nobless status by killing Raid Boss Barakiel!"); } else if (!member.isSubClassActive() && member.getLevel() <= 75) { player.sendMessage("You don't meet the required criteria. Your level is too low or you aren't on an active subclass."); } } this one still not sending message to level 1 player, I tried changing the code in many ways but same thing , I believe I will have to try make a script for it.
  13. but this will give only to one player right? what if they make party with 9 players and only 1 of them last hit barakiel?
  14. ur code gave nobless to level 1 char =(
  15. this one worked but didnt send any message to player who was lvl 1 =(
  16. Hi all, I added this code to my project and even if player is lvl 1 and without sub he is getting nobless status. Could anyone help me? I want to give nobless status only for players who have active subclass and is level 75+ and send a message to let them know if they are under lvl 75 and dont have sub. Any help is welcome. Edit: this code is inside l2raidbossinstance if (player.isInParty()) { if (getNpcId() == 25325) // barakielId = 25325; { for(L2PcInstance newNoble : player.getParty().getPartyMembers()) { if (!player.isSubClassActive() || player.getLevel() >= 75 || player.isNoble()) { newNoble.setNoble(true, true); newNoble.sendMessage("You Are Now a Noble, You Are Granted With Noblesse Status, And Noblesse Skills."); } } } else { if (!player.isSubClassActive() || player.getLevel() < 75); player.sendMessage("You don't have subclass level 75 or you are already nobless"); }
  17. http://www.l2afterlife.com Big Clans will be playing.
  18. http://www.l2afterlife.com Interlude L2OFF 300x No Custom Opening December 13th I will join , hope to see alot of people around.
  19. Hi guys , every recipe that I add to my recipe book disappear after restarting client. What could I do to save it? thx
  20. nice to see that somebody still cares for L2.
  21. you probably didnt register your newzone in ZoneData.
×
×
  • 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