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

[Lua] docreaturesay in position x+3

Macros

New Member
Joined
Oct 21, 2009
Messages
8
Reaction score
0
Hiho, why this script dont show text in position x+3 and y+1 ?

local pos = getCreaturePosition(cid)
doCreatureSay(cid, "Trryyk", TALKTYPE_ORANGE_1, {x = (pos.x+3), y = (pos.y+1), z = pos.z})

or

doCreatureSay(cid, "Trryyk", TALKTYPE_ORANGE_1, {x = pos.x+3, y = pos.y+1, z = pos.z})
/\-dont work too

Ok, fix it:
doCreatureSay(cid, "Trryyk", TALKTYPE_ORANGE_1, false, 0, {x = (pos.x+3), y = (pos.y+1), z = pos.z})
 
Last edited:
LUA:
local posit = {
x = pos.x+3, 
y = pos.y+1,
z = pos.z
}
doCreatureSay(cid, "Trryyk " ...posit.x...", "...posit.y...", "...posit.z...".", TALKTYPE_ORANGE_1)

-edit- fixed.
Please use LUA tags from now on.
 
Back
Top