Thread: ≈ [HELP] AI coding
View Single Post
Old 24.06.2006, 18:46   #3
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

If you only need npc give 1 buff.... is very simple.

Code:
class citizen { }

class buffer_npc : citizen {

  parameter:
    int Buff1 = 308226;  // Wind Walk lvl 2

  handler:

  EventHandler TALKED(talker) 
  {
    AddUseSkillDesire(talker, Buff1, 0, 1, 1000000);  
  }

}

Change Buff1 value for other buff skill id (skill_pch.txt) that you wish npc give to u when u talk to him.
FidoW is offline