Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Темы без сохранившегося раздела (https://postpacific.mmorpg-game.online/forumdisplay.php?f=10001)
-   -   Help understanding NPCPOS (https://postpacific.mmorpg-game.online/showthread.php?t=7698)

GMMorpheus 01.06.2007 15:05

Help understanding NPCPOS
 
Hi All again,

I need some help to undertand the npcpos.txt format

territory_begin [giran11_npc2222_29] {{83260;147820;-3524;-3324};{83460;147820;-3524;-3324};{83460;148020;-3524;-3324};{83260;148020;-3524;-3324}} territory_end
npcmaker_ex_begin [giran11_npc2222_29] name=[giran11_npc2222_2901] ai=[default_maker] maximum_npc=1
npc_ex_begin [clavier] pos={83396;147904;-3404;16384} total=1 respawn=1min npc_ex_end
npcmaker_ex_end

look, I understand that [giran11_npc2222_29] is a codename for the territory, the coordinates indicates the territory's area, but 4 numbers each coordinate? I mean, in {83260;147820;-3524;-3324}
83260, 147820 are like x and y positions, what are -3524 and -3324?

if I want to put a npc within the territory [giran11_npc2222_29] area, I should add my npc_ex_begin/end line inside npcmaker_ex_begin/end lines correct?

if I want to put more than 1 of the same npc in diferent cities, do I have to change the "total=1" parameter? or just add others lines (changind the coordinates of course) between npcmaker_begin/end on other citie's territory?

Guaresnay 01.06.2007 15:38

1.- x,y,zmin,zmax
2.- If you want to add a NPC in this area add it there, but its better if you make a new area for your npc's
3.- If you want to add the same NPC in another town, then you should do a new area for this town.

GMMorpheus 01.06.2007 21:18

The area I should create can have a size just enough to contain my npc?
and what the hell is zmax and zmin?

tpuNIsher 01.06.2007 23:34

radius of 10 is enough for 1 npc usually

z min is as it says.. minimum z to maximim z
u can also call to it low z & high z
or z1 and z2

1 is below ground another is above ground. or 1 is on the ground to above ground or 1 is on the ground to below ground.
u make ur choice.. if u just want a 4 sided territorry, use hf's scriptmaker, get a loc in game and use the npcposmaker in the tool.

Asteroid 01.06.2007 23:43

If your NPC does not move - yes, just some 50*50 units. If it does move (mob) - make it as large as you need.
Zmax, Zmin should include needed geodata cells at your region (same for all vertices defining your polygon). That is:
- let geo have Z values at some point: (-3000), (-2000), (-1000)
- and you want to define NPC at Z (-2000)
- so your Zmin,max could be (-2300, -1700) or anywhere near, so that they included (-2000).
Most important constraint: the polygon you define for a territory must be convex. Draw it on a piece of paper if you can't imagine. AFAIK, point order (clockwise or counter-clockwise) does not matter, but they must define a convex poly without self-intersections.


All times are GMT. The time now is 21:44.