View Single Post
Old 11.10.2006, 04:51   #3
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default Npcpos Bug

Fix for "Maker[xxx] doesn't have ai handler. cannot set the ai parameter[xxx]"

Original post. Fix owner by MuNLoK

CopyPaste from.
-----------
Quote:
Originally Posted by MuNLoK View Post
Ok, to fix the problem:

Code:
08/18/2006 16:16:xx.xx1, Maker[t21_24_01801] doesn't have ai handler. cannot set the ai parameter[maker_name1]
08/18/2006 16:16:xx.xx1, Maker[t21_24_01801] doesn't have ai handler. cannot set the ai parameter[maker_name2]
08/18/2006 16:16:xx.xx1, Maker[t21_24_01801] doesn't have ai handler. cannot set the ai parameter[maker_cnt]
08/18/2006 16:16:xx.xx1, Maker[t21_24_01801] doesn't have ai handler. cannot set the ai parameter[respawn_time]
etc, etc
etc...

You need edit npcpos.txt

The problem is here, for example, for the first error Maker[t21_24_01801]:

Code:
npcmaker_ex_begin [giran08_2124_018] name=[t21_24_01801] ai=[default_maker] ai_parameters={[maker_name1]=.... etc
AI=default_maker

This AI is erroneous. In order to be able to use the "AI_Parameter" --> "maker_name1", "maker_name2"... etc you need to use the AI=maker_instant_spawn_random

Code:
class 2 maker_instant_spawn_random : default_maker
parameter_define_begin
	string maker_name1 ""
	string maker_name2 ""
	string maker_name3 ""
...etc

You only need to do one "search&remplace" for this:

Search:
ai=[default_maker] ai_parameters={[maker_name1]
Remplace for:
ai=[maker_instant_spawn_random] ai_parameters={[maker_name1]

(UltraEdit is good for it.) And the problem is fixed
---------
HF is offline