• 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 Proplem, with script

Seumion

★ Spell Maker & Mapper ★
Joined
Feb 24, 2015
Messages
172
Reaction score
2
where can i put that on my script
PHP:
function onSay(cid, words, param)
local player = getPlayerByNameWildcard(param)
if not isPlayer(player) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'blahblabhlah.')
doSendDistanceShoot(pos, getThingPos(cid),30)
return true
end
local b = not getCreatureNoMove(player)
doCreatureSetNoMove(player, b)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, b and 'blahblabhlah.' or 'blahblabhlah.')
doPlayerSendTextMessage(player, MESSAGE_STATUS_CONSOLE_BLUE, b and 'blahblabhlah.' or 'blahblabhlah.')
doSendAnimatedText(getThingPos(player), b and 'Frozen' or 'Can Move', b and 64 or 168)
doSendMagicEffect(getThingPos(player), b and CONST_ME_GIANTICE or CONST_ME_HOLYAREA)
return true
end

i need put that distance effect on it
PHP:
doSendDistanceShoot({x = position.x + math.random(-1 ,1), y = position.y + math.random(-1 ,1), z = position.z}, position, 4)
 
you can add it before return true at the bottom.
'position' doesn't exist, so add this:
Code:
local position = getThingPos(player)
doSendDistanceShoot({x = position.x + math.random(-1 ,1), y = position.y + math.random(-1 ,1), z = position.z}, position, 4)
 
Back
Top