function onUse(cid, item, fromPosition, itemEx, toPosition)
local from = {x = 1234, y = 1234, z = 7}
local to = {x = 1234, y = 1234, z = 7}
for x = from.x, to.x do
for y = from.y, to.y do
for z = from.z, to.z do
pos = {x = x, y = y, z = z, stackpos = 253}
doRemoveCreature(getThingfromPos(pos.uid))
doTransformItem(item.uid, item.itemid+1)
end
end
end
return true
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local from = {x = 1234, y = 1234, z = 7}
local to = {x = 1234, y = 1234, z = 7}
for x = from.x, to.x do
for y = from.y, to.y do
for z = from.z, to.z do
pos = {x = x, y = y, z = z, stackpos = 253}
v = getThingfromPos(pos).uid
if isMonster(v) then
doRemoveCreature(v)
end
end
end
end
return true
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local from = {x = 1234, y = 1234, z = 7}
local to = {x = 1234, y = 1234, z = 7}
local monster = "Demon"
for x = from.x, to.x do
for y = from.y, to.y do
for z = from.z, to.z do
pos = {x = x, y = y, z = z, stackpos = 253}
v = getThingfromPos(pos).uid
if isMonster(v) and getCreatureName(v) == monster then
doRemoveCreature(v)
end
end
end
end
return true
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local from = {x = 779, y = 805, z = 5}
local to = {x = 788, y = 814, z = 5}
local monster = "bosse"
if item.itemid == 1945 then
for x = from.x, to.x do
for y = from.y, to.y do
for z = from.z, to.z do
pos = {x = x, y = y, z = z, stackpos = 253}
v = getThingfromPos(pos).uid
if isMonster(v) and getCreatureName(v) == monster then
doRemoveCreature(v)
doTransformItem(item.uid, 1946)
end
end
end
end
end
return true
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local from = {x = 1234, y = 1234, z = 7}
local to = {x = 1234, y = 1234, z = 7}
local monster = "Demon"
for x = from.x, to.x do
for y = from.y, to.y do
for z = from.z, to.z do
pos = {x = x, y = y, z = z, stackpos = 253}
v = getThingfromPos(pos).uid
if isMonster(v) and getCreatureName(v):lower() == monster:lower() then
doRemoveCreature(v)
end
end
end
end
return true
end