itemid = 5640 -- Magplant 5640
delay = 300
function place(x,y)
pkt = {}
pkt.x = x*32
pkt.y = y*32
pkt.px = x;
pkt.py = y;
pkt.type = 3
pkt.value = itemid;
SendPacketRaw(false, pkt)
end
function punch(x,y)
pkt = {}
pkt.x = x*32
pkt.y = y*32
pkt.px = x;
pkt.py = y;
pkt.type = 3;
pkt.value = 18
SendPacketRaw(false, pkt)
end
function pnb()
place(math.floor(GetLocal().posX / 32) +1, math.floor(GetLocal().posY / 32))
place(math.floor(GetLocal().posX / 32) +2, math.floor(GetLocal().posY / 32))
place(math.floor(GetLocal().posX / 32) +3, math.floor(GetLocal().posY / 32))
Sleep(delay)
punch(math.floor(GetLocal().posX / 32) +1, math.floor(GetLocal().posY / 32))
punch(math.floor(GetLocal().posX / 32) +2, math.floor(GetLocal().posY / 32))
punch(math.floor(GetLocal().posX / 32) +3, math.floor(GetLocal().posY / 32))
end
while true do
pnb()
end