PlaneShift

Development => Development Deliberation => Topic started by: owen_a on November 15, 2010, 04:18:14 pm

Title: Positioning
Post by: owen_a on November 15, 2010, 04:18:14 pm
Hi all.

I need assistance for something. I know the command to get your position, but all I want is the X, Y, Z for the positioning of my NPC I created. Can anyone tell me how I can read / get these co-ordinates? Thanks!

Note, I got into position where I want my NPC and my output after I typed in the command /pos was:

152.80.0.20 -99.40 0 angle: 260 (4.540583)


Thats the important bit.

Full output:

Your current position is region: hydlaa_jayose 152.80.0.20 -99.40 0 angle: 260 (4.540583). sector : hydlaa_jose, PID:2
Title: Re: Positioning
Post by: Aiwendil on November 15, 2010, 04:30:55 pm
If you already added the NPC to the database a "/teleport NPC <name> here" should place it at your current position. An "/updaterespawn target" while having the NPC selected should fix the spawn position to the current position. In general have a look at "planeshift/data/help.xml" for available GM commands.
Title: Re: Positioning
Post by: owen_a on November 15, 2010, 04:40:20 pm
I've already created an NPC called: Makarov. And When I try the command :    /teleport NPC Makarov

It gives me the following error: Cannot teleport target
Title: Re: Positioning
Post by: Aiwendil on November 15, 2010, 09:11:00 pm
You added the NPC to the CharactersTable (http://planeshift.ezpcusa.com/pswiki/index.php?title=CharactersTable) already? And gave it the correct "character_type" 1 for a NPC? But sorry...gave a wrong command I think. The "NPC" is not needed. So only "/teleport Makarov here" should do. If the firstname is unique that should work. Otherwise you might need "/teleport "<firstname> <lastname>" here".