Forum

> > CS2D > Scripts > npc and spawn
Forums overviewCS2D overview Scripts overviewLog in to reply

English npc and spawn

3 replies
To the start Previous 1 Next To the start

old npc and spawn

deatclaws
User Off Offline

Quote
Hey guys,

it's me again x) ! my 3rd thread for my server tibia x) ( yesh i am a noobish scripter ! but we all need to start somewhere ) so uhmm this time i need help to knows how to knows the npc position .. because someone told me that is not the same that in the editor .. like in the editor

exemple: if i want an npc at 81x56 i need to wright 81x56 in the npc.lua or i need to wright like uhmm ( guessing ) 11354x865454 ??? and how to knows this kind of position ??

and the other part of my thread is for the spawn of player !

where the f**k i need to wright the spawn of the player ?? i founded like 3 place to wrote that but it's still spawn player in a wall !! and for the coordinate of spawn i need to wrote the same as in editor or an mathematical result ??


thx Deatclaws

i hope is the last thread x) ( i am impatient of geting my server on !! x) )

old Re: npc and spawn

Alistaire
User Off Offline

Quote
user deatclaws has written
Hey guys,

it's me again x) ! my 3rd thread for my server tibia x) ( yesh i am a noobish scripter ! but we all need to start somewhere ) so uhmm this time i need help to knows how to knows the npc position .. because someone told me that is not the same that in the editor .. like in the editor

exemple: if i want an npc at 81x56 i need to wright 81x56 in the npc.lua or i need to wright like uhmm ( guessing ) 11354x865454 ??? and how to knows this kind of position ??

and the other part of my thread is for the spawn of player !

where the f**k i need to wright the spawn of the player ?? i founded like 3 place to wrote that but it's still spawn player in a wall !! and for the coordinate of spawn i need to wrote the same as in editor or an mathematical result ??


thx Deatclaws

i hope is the last thread x) ( i am impatient of geting my server on !! x) )


Grammar, dude. Grammar.

----

Look, in the editor the whole map is made with TILES. 1 tile X = 32 pixel X. 1 tile Y = 32 pixel Y.

If you wanna spawn at 32X, 16Y in pixels (like in the script), you should;

32*32=1024
16*32=512

use X=1024 and Y=512 instead of X=32 and Y=16.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview