Hi OtLanders!
I am sure of that this script exist somewhere, BUT I am not able to find it.
What the script is suppose to do:
When you use the lever, the script shall check if there is any monster from.xyz to.xyz
If there are any monsters there then don't do anything.
If there aren't any monsters there, then summon a creature.
I tried to make the script myself (But as someone already told me, I really sux at scripting <_<)
Thanks in Advance
Tosse12
I am sure of that this script exist somewhere, BUT I am not able to find it.
What the script is suppose to do:
When you use the lever, the script shall check if there is any monster from.xyz to.xyz
If there are any monsters there then don't do anything.
If there aren't any monsters there, then summon a creature.
I tried to make the script myself (But as someone already told me, I really sux at scripting <_<)
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = { x=10001, y=10644, z=7},
local from = { x=9996, y=10636, z=7 },
local to = { x=10005, y=10651, z=7},
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
if isMonster(v) then
doPlayerSendTextMessage(cid, 19,"The mini boss is already summoned!")
else
doSummonCreature("Mad Technomancer", pos)
end
end
end
end
end
return true
end
Thanks in Advance
Tosse12