• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

NPC looking directions..

zxzxzx

New Member
Joined
Mar 12, 2011
Messages
334
Reaction score
3
Hello!

I want to create npc who it stands on the site and looks to the east like this (like old tibia dir)
image.png


I use tfs 1.1+

rep for help ++
 
You can also just add it in their lua script.
Code:
function onCreatureAppear(cid) selfTurn(EAST) npcHandler:onCreatureAppear(cid) end

This way you don't need to add all their coordinates.
And it can be used for multiple npcs withe the same lua script as once.

Disadvantage if you want 2 npcs to use the same lua script but different look directions you'll need to use 2 lua scripts so if that happens the option above might be easyer.
 
Back
Top