English Tibia RPG NPC

4 replies
Goto Page
To the start Previous 1 Next To the start
28.03.11 08:37:53 pm
Up
Bobakrome
User
Offline Off
Hello,can someone help me?
I want to place an NPC on cooirdonates 74|94 but idk how.
The cooirdonates on them are very strange, I can't understand them.Can I Post here cooirdonates x|y and u give me the NPC coord? Please, Thanks!



us
28.03.11 11:54:18 pm
Up
KenVo
User
Offline Off
Stand on the tile that where you want the NPC to be on, type: !n to see the NPC position. Go in sys/lua/cs2dtibia/npcs.lua to make your npcs. Simple

BTW i think your NPC is 2384 - 3024

Hope this helped
29.03.11 06:39:43 am
Up
Robotic-Brain
User
Offline Off
do you mean tieles or pixels?

74|94 in tiles would be 2368|3008 (74*32|94*32) in pixels
29.03.11 07:04:09 am
Up
KenVo
User
Offline Off
Robotic-Brain has written:
do you mean tieles or pixels?

74|94 in tiles would be 2368|3008 (74*32|94*32) in pixels


he meant pixels
30.03.11 05:16:37 pm
Up
Bobakrome
User
Offline Off
Found!
example, i want place on 1|1 tile,cooirdonates are 32|32(1x32|1x32)but, you have to add 16, so its 48|48,its because of sprite....thanks guys!

Editiert: to add 16, so its 48|48

Code:
1
..player(id,'tilex')*32+16 ..', '..player(id,'tiley')*32+16 ..


Found in sys/lua/cs2dibia/admin.txt
edited 3×, last 31.03.11 02:33:56 pm
To the start Previous 1 Next To the start