View Single Post
Old 27.09.2006, 16:39   #14
Xachump
Архивный участник
 
Join Date: Sep 2006
Posts: 27
Default

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

Is not this line ai= [to default_maker] ai_parameters= {[maker_name1]
help please.

thanks
Xachump is offline