Denis Tacador De Runa
New Member
- Joined
- Sep 6, 2007
- Messages
- 362
- Reaction score
- 3
Everytime I load the server, it crashes, I think it's because of this script.
Does anyone know what's wrong?
It's supposed to remove 2 stones and give the player a storage ID when he walks in a specific portal.
Does anyone know what's wrong?
It's supposed to remove 2 stones and give the player a storage ID when he walks in a specific portal.
local stonepos1 = {x=233, y=283, z=6}
local stonepos2 = {x=234, y=283, z=6}
local stone1 = getThingfromPos(stonepos1)
local stone2 = getThingfromPos(stonepos2)
function onStepIn(cid, item, pos)
if stone1.itemid == 1304 and stone2.itemid == 1304 then
if isPlayer(cid) == TRUE then
if getPlayerStorageValue(cid, 87878) == TRUE then
setPlayerStorageValue(cid, 86868, 1)
doRemoveItem(stone1.uid,1)
doRemoveItem(stone2.uid,1)
doSendMagicEffect(stonepos1, CONST_ME_POFF)
doSendMagicEffect(stonepos2, CONST_ME_POFF)
end
end
end
end