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

Whats wrong?

delton

New Member
Joined
Jun 13, 2008
Messages
230
Reaction score
0
Location
Ijuí
Hello again :D

I have a talkaction script, but doesn't working :blink:

Code:
function onSay(cid, words, param)

queststatus = getPlayerStorageValue(cid,2102)
maxdist = 2
player = {x=839, y=545, z=6}
playerpos = getPlayerPosition(cid)

pos = { x=839, y=545, z=6, stackpos=1 }
pedra = getThingfromPos(pos)

if queststatus == 1 and math.max(math.abs(playerpos.x-pos.x), math.abs(playerpos.y-pos.y)) < maxdist then
doSendAnimatedText(playerpos, "HYDRA EGG", 198)
doSendMagicEffect(pos,13)
setPlayerStorageValue(cid,2104,1)
return 0
else
 doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end

Please whats wrong?
I Will REP++
 
Back
Top