How do I add an event so you can remove 6 pillars in 2 minutes?
Code:
local pillars = {
{"3766", { x = 16495, y = 15661, z = 12, stackpos = 1 }},
{"3766", { x = 16496, y = 15661, z = 12, stackpos = 1 }},
{"3766", { x = 16497, y = 15661, z = 12, stackpos = 1 }},
{"3766", { x = 16498, y = 15661, z = 12, stackpos = 1 }},
{"3766", { x = 16499, y = 15661, z = 12, stackpos = 1 }},
{"3766", { x = 16500, y = 15661, z = 12, stackpos = 1 }}
}
function onStepIn(cid, item, position, fromPosition)
if(item.uid >= 36210 or item.uid <= 36215) and isPlayer(cid) == TRUE and getPlayerSlotItem(cid, 2).itemid == 8266 then
for _, v in ipairs(pillars) do
doCreateItem(unpack(v))
end
end
end
Last edited: