View Single Post
Old 19.06.2006, 19:05   #34
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

perfect script, couldn't have done it better myself.. but i think you should add one more thing to npcpos:

[php:1:c0c8350926]
fputs($npcpos,"territory_begin [".$row["location"]."] {"
[/php:1:c0c8350926]
to
[php:1:c0c8350926]
fputs($npcpos,"territory_begin [".$row["location"]."".$row["id"]."] {"
[/php:1:c0c8350926]
and
[php:1:c0c8350926]
.$row["location"]."]\r\nnpc_begin ["
[/php:1:c0c8350926]
to
[php:1:c0c8350926]
.$row["location"]."".$row["id"]."]\r\nnpc_begin ["
[/php:1:c0c8350926]

(else errors will appear when you load l2npc.. because every territory has to be identical)
Phantom2005 is offline