Lua:
-- bronze necklace lever
function onUse(cid, item, frompos, item2, topos)
if item.uid == 8030 and item.itemid == 1945 then
player1pos = {x=596, y=1225, z=9, stackpos=253}
player1 = getThingfromPos(player1pos)
if player1.itemid > 0 then
queststatus1 = getPlayerStorageValue(player1.uid,8031)
queststatus1 = getPlayerStorageValue(player1.uid,8032)
if queststatus1 == -1 then
nplayer1pos = {x=596, y=1229, z=9}
doSendMagicEffect(player1pos,2)
doTeleportThing(player1.uid,nplayer1pos)
doSendMagicEffect(nplayer1pos,10)
doTransformItem(item.uid,item.itemid+1)
else
doPlayerSendCancel(cid,"You already did this quest.")
end
else
doPlayerSendCancel(cid,"You need one players four this quest.")
end
elseif item.uid ==8030 and item.itemid == 1946 then
if getPlayerAccess(cid,1) then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
else
return 0
end
return 1
end
Lua:
doSendMagicEffect(player1pos,2)
Not work, what?