Jump to content
  • 0

dissable orfen


Fnatic
 Share

Question

14 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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...

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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);		
}

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 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 Disbaled AdBlock