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

'doCreatureSay' at a Pos? Like 'doSendAnimatedText'

Serp

/* No comment */
Joined
Mar 23, 2008
Messages
249
Reaction score
1
I know with animatedtext you can put a pos for it, but is there anyway i can send 'doCreatureSay' to a pos aswell? ^.-?
 
Think thats not possible, since it is doCreatureSay()

You could try maybe something like this:
Code:
pos = { x = x, y = y, z = z }
thing = getThingfromPos(pos)
    if (isPlayer(thing.uid) or thing.itemid > 0) then
        doCreatureSay(thing.uid, "bla", TALKTYPE_SAY)
    end
 
Tryied it got this messge
[06/08/2008 19:47:49] luaDoCreatureSay(). Creature not found

any other ideas x.x?
 
Hello Guys Skibadee here :p

come on znote 2 and made high chars bcs its boring here

i wanna big fat war on znote

your skiba
 
But umm... you can always use doSendAnimatedText(pos, text, color), the minus of it is that it can have max 8(?) letters.
 
That was why i needed doCreatureSay :p, because what i wanted to appear was 28 letters x.x, way to long. unless you know how to source edit the animated text lol?


p.s
Hello Guys Skibadee here :p

come on znote 2 and made high chars bcs its boring here

i wanna big fat war on znote

your skiba

Go post on something relevant Shaggy.
 
Last edited:
That was why i needed doCreatureSay :p, because what i wanted to appear was 28 letters x.x, way to long. unless you know how to source edit the animated text lol?


p.s


Go post on something relevant Shaggy.

So, yea it is impossible to make item say with it BUT ive made it in other way :)

global.lua OR functions.lua:
Code:
function doCreatureSayWithDistance(cid, position, text, type)
	oldPosX = setPlayerStorageValue(cid, 10000, getCreaturePosition(cid).x)
	oldPosY = setPlayerStorageValue(cid, 10001, getCreaturePosition(cid).y)
	oldPosZ = setPlayerStorageValue(cid, 10002, getCreaturePosition(cid).z)
	oldPos = { x = getPlayerStorageValue(cid, 10000), y = getPlayerStorageValue(cid, 10001), z = getPlayerStorageValue(cid, 10002) }
	doTeleportThing(cid, position, 0)
	doCreatureSay(cid, text, type)
	return doTeleportThing(cid, oldPos, 0)
end

This is the example Ive tested it with:
Code:
function onSay(cid, words, param)
	pos = {x=102,y=121,z=7}
	return doCreatureSayWithDistance(cid, pos, "WORKING !!!", TALKTYPE_ORANGE_1)
end

Hope it helps you in some way !

Oh, and btw:
Thanks for the request!!! Im having great fun with it =D=D
 
Hooraayy! for Marcinek Paladinek

It works perfectly :D nice one, ty
You should go release this im sure other people would find it awesome.

p.s
haha no probs about the request them all the time :p, always trying to find something that usually isnt easily do-able x.x.
You always seem to reply tho :p Rep++


[Edit]: awww i already rep'd you today for helping people alot in general, There should be an Uber rep option lol
 
Last edited:
Back
Top