Active intention for monsters on spawn.
Contributed by sinsegi001.
This commit is contained in:
parent
2b350687b5
commit
917f6a7b9b
@ -1451,6 +1451,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
@ -1397,6 +1397,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
@ -1397,6 +1397,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
@ -1397,6 +1397,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
@ -1386,6 +1386,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
@ -1386,6 +1386,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
@ -1386,6 +1386,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
@ -1394,6 +1394,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
@ -3064,12 +3064,19 @@ public class Attackable extends NpcInstance
|
||||
public void onSpawn()
|
||||
{
|
||||
super.onSpawn();
|
||||
|
||||
// Clear mob spoil,seed
|
||||
setSpoil(false);
|
||||
|
||||
// Clear all aggro char from list
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester Rewrard List
|
||||
_harvestItems = null;
|
||||
|
||||
// Clear mod Seeded stat
|
||||
setSeeded(false);
|
||||
|
||||
|
@ -1405,6 +1405,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro char from list
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
|
||||
|
@ -1387,6 +1387,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
@ -1387,6 +1387,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
@ -1387,6 +1387,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
@ -1409,6 +1409,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
@ -1409,6 +1409,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
@ -1409,6 +1409,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
@ -1387,6 +1387,9 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
|
Loading…
Reference in New Issue
Block a user