Thread: [Share] Looter
View Single Post
Old 19.03.2006, 22:02   #21
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

This is how I am using it. Basically all my mobs now pickup drops not owned. You can also have the mob delete the item too simply by using the DeleteItem functions.

Code:
   EventHandler SEE_ITEM(item)
   {  
      myself.i_ai5 = item;
      
      AddTimerEx(100002, 60000);
   }

   EventHandler TIMER_FIRED_EX(timer_id)
   {   
      if (timer_id == 100001)
      {
         if (myself.i_ai4 > 0)
         {
            AddMoveToWayPointDesire(varWayPoints, varWayPointDelays, myself.i_ai4, 10);
         }
         else
         {
            AddMoveToWayPointDesire(varWayPoints, varWayPointDelays, 1, 10);
         }
      }
      else if (timer_id == 100002)
      {
         AddGetItemDesire(myself.i_ai5, 10);
      }
   }
Firedaemon is offline