Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 05.12.2006, 09:15   #14
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Decompiled code... with SauDecompiler...
Code:
class event_tree : default_npc
{
handler:
  EventHandler CREATED()
  {
    myself->AddTimerEx(5001,( ( 1000 * 60 ) * 20 ));
  }

  EventHandler TIMER_FIRED_EX(timer_id)
  {
    if( timer_id == 5001 ) Despawn();
    super;
  }

}

class event_tree_use_skill : default_npc
{
handler:
  EventHandler CREATED()
  {
    myself->AddTimerEx(5001,( ( 1000 * 60 ) * 20 ));
    myself->AddTimerEx(5002,( 1000 * 10 ));
  }
  
  EventHandler TIMER_FIRED_EX(timer_id)
  {
    if (timer_id == 5001) Despawn();
    else if (timer_id == 5002)
    {
      if( myself->Skill_GetConsumeMP(547585) < myself.sm.c_ai3 && myself->Skill_GetConsumeHP(547585) < myself.sm.c_ai2 && myself->Skill_InReuseDelay(547585) == 0 )
      {
        myself->AddUseSkillDesire(myself.sm,547585,1,1,1000000);
      }
      myself->AddTimerEx(5002,10000);
    }
    super;
  }

}
Both Trees despawn after 20 mins.

Special Tree use each 10 seconds a skill... this skill you can see in skilldata... increase recovery speed of HP/MP and it have a duration of 10 seconds... and range of 200.. so.. if you are near the tree you have recovery bonus all the time. Nothing more. No presents...
FidoW is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:30.