Hello.
I need an function to this script:
If an creature is in summon position than player cant use lever.
Anyone ?
I need an function to this script:
LUA:
local left = {x=3068, y=3074, z=7, stackpos=2}
local right = {x=3070, y=3074, z=7, stackpos=2}
local summon = {x=3067, y=3072, z=7}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1945 then
local a = getThingfromPos(left)
if a.itemid == 11754 and a.type >= 2 then
local b = getThingfromPos(right)
if b.itemid == 11754 and b.type >= 2 then
doRemoveItem(a.uid, 2)
doRemoveItem(b.uid, 2)
doCreateMonster('Wolf', summon)
doSendMagicEffect(summon, 121)
doCreatureSay(cid, 'You lost two wolfs skin and an Wolf appear.', 0x13)
return doTransformItem(item.uid, 1946)
end
end
return doPlayerSendCancel(cid,"Put the right items in the right spots!")
end
return doTransformItem(item.uid, 1945)
end
If an creature is in summon position than player cant use lever.
Anyone ?
Last edited: