Skip to content

dissable orfen

Featured Replies

hello,why when i kill orfen rb and left half hp the orfen was dissable?

its retail, orfen respawns at 50% hp I think

  • Author

how dissable it,because need that orfen can kill

  • 2 weeks later...
  • Author

where i can change location?

where i can change location?

 

in orfens script...but are you sure you are using an offmod pack?i moved a topic of yours alredy to l2j help section

  • Author

the is no any scripts. Only is boss config its all:)

the is no any scripts. Only is boss config its all:)

 

theres no "theres no script" you need to have a script for it so the boss can have its own AI...

  • Author

but where i get this script

but where i get this script

 

your pack is?

  • Author

l2frozen

than in why in the blue hell you start a topic on off section jesus...

 

http://subversion.assembla.com/svn/L2jFrozenInterlude/trunk/gameserver/head-src/com/l2jfrozen/gameserver/ai/special/Orfen.java there you go 10sec google

 

MOVED.

and just in case you dont know there are your coors to change orfens spawn on half HP or to delete hes spawn on half hp

 

	@Override
public String onAttack(L2NpcInstance npc, L2PcInstance attacker, int damage, boolean isPet)
{
	int npcId = npc.getNpcId();
	if (npcId == ORFEN)
	{
		if (FirstAttacked)
		{
			if ((npc.getCurrentHp() - damage) < (npc.getMaxHp() / 2) && !Teleported)
			{
				GrandBossManager.getInstance().getStatsSet(ORFEN).set("currentHP", npc.getCurrentHp());
				npc.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
				Teleported = true;
				npc.getSpawn().setLocx(43577);
				npc.getSpawn().setLocy(15985);
				npc.getSpawn().setLocz(-4396);
				npc.teleToLocation(43577, 15985, -4396, false);
				startQuestTimer("ORFEN_REFRESH", 10000, npc, null);
			}
			else if (npc.isInsideRadius(attacker, 1000, false, false) && !npc.isInsideRadius(attacker, 300, false, false) && Rnd.get(10) == 0)
			{
				attacker.teleToLocation(npc.getX(), npc.getY(), npc.getZ());
				npc.setTarget(attacker);
				npc.doCast(SkillTable.getInstance().getInfo(4064, 1));
			}
		}
		else
		{
			FirstAttacked = true;
		}
	}

	return super.onAttack(npc, attacker, damage, isPet);		
}

  • Author

where add now this show me path

where add now this show me path

 

god...

 

npc.getSpawn().setLocx(43577);

npc.getSpawn().setLocy(15985);

npc.getSpawn().setLocz(-4396);

npc.teleToLocation(43577, 15985, -4396, false);

 

that code teleports orfen to hes cave or whatever it is :D

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.