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

!careface

Barbyn

Founder of Granaria 09/10
Joined
Jun 13, 2007
Messages
167
Reaction score
1
I had an interesting idea;
When someone says !careface an animation shows up (/z 57) and could someone please help script it for me :D?
I will of course rep you :)

Is this a correct start :S?

Lua:
doPlayerSendTextMessage(cid, 22, "Careface")
         doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MIRRORHORIZONTAL)
return true
end

Then what? Or is this completely wrong?
Yepp, I am noob ;p!

Thanks and Regards!
 
This is the wrong section to ask support.
However here is your script.

Lua:
function onSay(cid, words, param)
local v = getCreaturePosition(cid)
	doSendMagicEffect(v, 57)
	doCreatureSay(cid, 'Careface')
	return true
end

+REP if helped
 
doesn't look right
Code:
function onSay(cid, words, param, channel)
	doSendMagicEffect(getThingPos(cid), CONST_ME_MIRRORHORIZONTAL)
	doCreatureSay(cid, 'Careface', TALKTYPE_ORANGE_1)
	return true
end
 
doesn't look right
Code:
function onSay(cid, words, param, channel)
	doSendMagicEffect(getThingPos(cid), CONST_ME_MIRRORHORIZONTAL)
	doCreatureSay(cid, 'Careface', TALKTYPE_ORANGE_1)
	return true
end

Oops forgot TALKTYPE_ORANGE_1 ;/.
and I'd rather use getCreaturePosition(cid), always works for me, getThingPos(cid) sometimes doesn't :ninja:
 
Oops forgot TALKTYPE_ORANGE_1 ;/.
and I'd rather use getCreaturePosition(cid), always works for me, getThingPos(cid) sometimes doesn't :ninja:
getThingPos(cid) is shorter :ninja::ninja:

But it's the same function, check your 100-compat.lua:
Code:
getCreaturePosition = getThingPosition
...
getThingPos = getThingPosition
 
getThingPos(cid) is shorter :ninja::ninja:

But it's the same function, check your 100-compat.lua:
Code:
getCreaturePosition = getThingPosition
...
getThingPos = getThingPosition

Thats why I find it rare that getThingPosition(cid) doesn't work for me sometimes :/

Lua:
getCreaturePosition = getThingPosition
exactly the same :ninja:
 
Back
Top