• 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!

Lua How to add a focus by NPC?

MorganaSacani

Active Member
Joined
Sep 20, 2022
Messages
87
Solutions
1
Reaction score
32
In this algorithm, I check if the NPC is focusing on myself:
Lua:
if not npcHandler:isFocused(cid) then

    return false
end
My doubt is:
How to add a focus to my character? Which function to use?

@EDIT:
I searched within my server's NPC system and found the answer, so in case anyone has the same question. Here is the answer:
Lua:
npcHandler:addFocus(cid)
 
Last edited:
Back
Top