PDA

View Full Version : Script to use Ornate Canopic Jar



caoszito
06-22-2016, 02:22 AM
Hello guys, i need a script to use Ornate Canopic Jar (12511) every minute (otserv)

i am using this


if 12511 then
local pos = Self.Position()
for dx = -7, 7 do
for dy = -5, 5 do
if Map.GetTopUseItem(pos.x+dx, pos.y+dy, pos.z).id == 12511 then
Self.UseItemFromGround(pos.x+dx, pos.y+dy, pos.z)
wait(500, 1000)
Walker.Stop()
end
end
end
end

but its close after use the item, thank you

Trykon
06-22-2016, 09:03 AM
On the beginning use
'while true do'
And add one more 'end' at the end
This will.make script repeat.

caoszito
06-22-2016, 01:04 PM
On the beginning use
'while true do'
And add one more 'end' at the end
This will.make script repeat.

works perfect, thanks