Hello
Can anybody help me write a LUA script so that when somebody pulls a lever, it will summon monster on specific X, Y, Z location?
I use Avesta 0.6.3
Can anybody help me write a LUA script so that when somebody pulls a lever, it will summon monster on specific X, Y, Z location?
LUA:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 4242 and item.itemid == 1945 then
// ADD cid so that player cannot pull it again
// summon demon at x=100, y=100, z=7
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
return 1
end
I use Avesta 0.6.3