Jump to content
  • 0

Question

14 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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

  • 0
Posted

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.

  • 0
Posted

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

  • 0
Posted

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.


×
×
  • Create New...