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
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
@ -1397,6 +1397,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro list and overhit
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
@ -1397,6 +1397,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro list and overhit
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
@ -1397,6 +1397,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro list and overhit
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
@ -1386,6 +1386,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro list and overhit
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
@ -1386,6 +1386,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro list and overhit
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
@ -1386,6 +1386,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro list and overhit
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
@ -1394,6 +1394,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro list and overhit
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
@ -3064,12 +3064,19 @@ public class Attackable extends NpcInstance
|
|||||||
public void onSpawn()
|
public void onSpawn()
|
||||||
{
|
{
|
||||||
super.onSpawn();
|
super.onSpawn();
|
||||||
|
|
||||||
// Clear mob spoil,seed
|
// Clear mob spoil,seed
|
||||||
setSpoil(false);
|
setSpoil(false);
|
||||||
|
|
||||||
// Clear all aggro char from list
|
// Clear all aggro char from list
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester Rewrard List
|
// Clear Harvester Rewrard List
|
||||||
_harvestItems = null;
|
_harvestItems = null;
|
||||||
|
|
||||||
// Clear mod Seeded stat
|
// Clear mod Seeded stat
|
||||||
setSeeded(false);
|
setSeeded(false);
|
||||||
|
|
||||||
|
@ -1405,6 +1405,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro char from list
|
// Clear all aggro char from list
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
|
|
||||||
|
@ -1387,6 +1387,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro list and overhit
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
@ -1387,6 +1387,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro list and overhit
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
@ -1387,6 +1387,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro list and overhit
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
@ -1409,6 +1409,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro list and overhit
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
@ -1409,6 +1409,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro list and overhit
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
@ -1409,6 +1409,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro list and overhit
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
@ -1387,6 +1387,9 @@ public class Attackable extends Npc
|
|||||||
// Clear all aggro list and overhit
|
// Clear all aggro list and overhit
|
||||||
clearAggroList();
|
clearAggroList();
|
||||||
|
|
||||||
|
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||||
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
|
|
||||||
// Clear Harvester reward
|
// Clear Harvester reward
|
||||||
_harvestItem.set(null);
|
_harvestItem.set(null);
|
||||||
_sweepItems.set(null);
|
_sweepItems.set(null);
|
||||||
|
Loading…
Reference in New Issue
Block a user