Active intention for monsters on spawn.

Contributed by sinsegi001.
This commit is contained in:
MobiusDevelopment 2019-10-16 09:38:49 +00:00
parent 2b350687b5
commit 917f6a7b9b
17 changed files with 55 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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