Ezzam
New Member
- Joined
- Jan 16, 2008
- Messages
- 213
- Reaction score
- 2
Add this in your script after (example
Add this to the bottom of your script.
Add rep++ to Azi to thank him for helping me create this script.
PHP:
if item.itemid == 1945 then
addEvent(CleanArea, 0)
end
Add this to the bottom of your script.
Code:
function CleanArea(startPos, endPos)
local startPos={x=32707, y=32345, z=7, stackpos=253}
local endPos={x=32725, y=32357, z=7, stackpos=253}
local creatures = {monsters = 0, monsterNames = {}}
for posX=startPos.x, endPos.x do
for posY=startPos.y, endPos.y do
for posZ=startPos.z, endPos.z do
local check = getThingfromPos({x=posX, y=posY, z=posZ, stackpos=253})
if isMonster(check.uid) == TRUE then
creatures.monsters = creatures.monsters+1
table.insert(creatures.monsterNames, getCreatureName(check.uid))
doRemoveCreature(check.uid)
end
end
end
end
return creatures
end
Add rep++ to Azi to thank him for helping me create this script.
Last edited: