Greetings, i need a script so if a player step in on a certain tile then it checks if on the position is a stone, if theres a stone then notthing happends, but if theres no stone then it creates the stone and sends the player a message.
I got something like this
I got something like this
Code:
function onStepIn(cid, item, pos)
stone = 1304
local stone_pos = {x=32225, y=32282, z=9}
ret = getThingfromPos(stone_pos)
if item.actionid == 43119 and isPlayer(cid) == TRUE and item.stone == ret then
doPlayerSendTextMessage(cid,22, "You hear a rumbling from far away.")
else
doPlayerSendTextMessage (cid,22, "Theres already a stone.")
end
end