• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Problem with NPC dicer by nekiro

vexler222

Active Member
Joined
Apr 22, 2012
Messages
714
Solutions
15
Reaction score
46
Hi, i have problem with this script: NPC - [TFS 1.x] Dicer/Gambler NPC (https://otland.net/threads/tfs-1-x-dicer-gambler-npc.257144/)

I was change playerposition like that:
Code:
from:
playerPosition = Position(32352, 32226, 7), -- player must stay on this position to talk with npc

Code:
to:
playerPosition = Position(npcPosition.x + 2, npcPosition.y, npcPosition.z),

because i want use npc in few places so its better cuz i have 1 npc file not X npc for X pos
But when i change it npc after start tfs talking only "If you want to play with me please come near me.", never mind where i stay, when i use reload npc command it work normaly, how to fix it?
 
I think someone already made a change similar to what you're trying to do:

Post in thread '[TFS 1.x] Dicer/Gambler NPC' NPC - [TFS 1.x] Dicer/Gambler NPC (https://otland.net/threads/tfs-1-x-dicer-gambler-npc.257144/post-2573691)

I do something like it, i have ready script and all working, but after start server, npc ignoring player position, when i relaod npc it work normaly, look on video
(I try from your link and its not working for me idk why)


I think problem is with positions, but i don't know how to fix it, here is my script (he is transleted to my language and i added some fixes but you can check how i make it) - casino - Pastebin.com (https://pastebin.com/41Pv8Nm5)
 
Last edited:
Back
Top