Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 21.06.2007, 08:33   #3
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default AI Class

Entire AI.obj file - this is the collection of classes.
Each class have structure:

Code:
class 1 default_npc : (null)
parameter_define_begin
parameter_define_end
property_define_begin
        telposlist_begin teleportname
        telposlist_end
        buyselllist_begin SellList0
        buyselllist_end
property_define_end
handler 0 0     //  NO_DESIRE
handler_end
class_end
Where:

class 1 default_npc : (null)
  • class - header
  • 1 - ?? unknown. Have 2 type: 1 and 2.
  • default_npc - class name
  • (null) - definition for main class. (null) define class without parent class. Example class 1 citizen : default_npc have parent class is 'default_npc' and use parent handlers (functions) (read in next threads).

class_end
Define end of class. Required always.

One class can have more parents classes. Example,

class 1 thermal_nepenthes : warrior_ag_casting_enchant_rangephysical_poison
class 1 warrior_ag_casting_enchant_rangephysical_poison : warrior_casting_enchant_rangephysical_poison
class 1 warrior_casting_enchant_rangephysical_poison : warrior_casting_enchant_physical_poison
class 1 warrior_casting_enchant_physical_poison : warrior
class 1 warrior : warrior_parameter
class 1 warrior_parameter : monster_parameter
class 1 monster_parameter : default_npc
class 1 default_npc : (null)
HF 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 19:19.