Zakhran
Pace
Hey all, i have a problem with a action.
and another located in creaturescripts.
The script works, but only the player that "fragged" the monster can pass through the lever, and the other ppl no..
Anyone knows how to do to everybody can pass when x monster killed?thanks,rep++
PHP:
local storage = 4588
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getCreatureStorage(cid, storage) > 0) then
doTeleportThing(cid, {x = 1155, y = 980, z = 13}, false)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
else
return doPlayerSendCancel(cid, "Sorry, not possible.")
end
return doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
end
and another located in creaturescripts.
The script works, but only the player that "fragged" the monster can pass through the lever, and the other ppl no..
Anyone knows how to do to everybody can pass when x monster killed?thanks,rep++