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

Solved npc:setSpeechBubble() doesn't seem to work in TFS 1.2

whitevo

Feeling good, thats what I do.
Joined
Jan 2, 2015
Messages
3,454
Solutions
1
Reaction score
627
Location
Estonia
Code:
local npcCID = getNpcCid()
local npc = Npc(npcCID)
npc:setSpeechBubble(SPEECHBUBBLE_QUEST) -- tried numbers too

npc is userdata and it is correct one.

It doesn't do anything with bubbles
 
what do you mean if i run the same code?
what do you mean by parent?

the userdata is correct though, I can make the npc say, remove and do stuff with this userdata, expect making the speechbubbles work.

If you have the same function as TFS has, since you run 1.1(if you have not updated yet) you might not run the same code as 1.2 does.
In this case the parent would be creature = Npc(parent - our userdata value)

In that case do as I said, compile the Npc userdata value from the creature userdata value, then set the bubble to the new npc userdata value.
 
Well I still don't undersand why I have to get the id from old userdata value just to construct the npc again.

As I said before npc:remove() would remove the npc.
npc:say(YELLOW, "im working") will make npc say "im working".
but npc:setSpeechBubble(3) does nothing.

I run the TFS what you compiled me xD and I though its called tfs 1.2

And if i would to try get the id from userdata, how the heck I get it?
there is no: function find_me_a_npc_userdata()

// Npc([id or name or userdata])
I tried using the npc name too.
I get the userdata, but speechbubbles still does not work.
 
Back
Top