Hey, I have problem with script.
Script should work like that: if player STAND on special tile and items are on another tile then it should create itemID 2342.
I have this script
This script works but at first I must put items and at second I must STEP on special tile.
just look 3:20
YouTube - Ashmunrah
script should work like: i am on special tile, i put items and item is created when i STAND on tile..
how can I do that?
Script should work like that: if player STAND on special tile and items are on another tile then it should create itemID 2342.
I have this script
Lua:
local pos = {x=33198, y=32876, z=11}
function onStepIn(cid, item, position)
if isPlayer(cid) == TRUE then
for i = 2335, 2341 do
if getTileItemById(pos, i).uid < 1 then return end
end
for i = 2335, 2341 do
doRemoveItem(getTileItemById(pos, i).uid)
end
doCreateItem(2342, 1, pos)
doSendMagicEffect(pos, CONST_ME_FIREAREA)
setPlayerStorageValue(cid,65498,1)
end
end
This script works but at first I must put items and at second I must STEP on special tile.
just look 3:20
YouTube - Ashmunrah
script should work like: i am on special tile, i put items and item is created when i STAND on tile..
how can I do that?