0% found this document useful (0 votes)
44 views1 page

Automate Water Clearing in Modfly

Uploaded by

ahmadwahyuaw86
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views1 page

Automate Water Clearing in Modfly

Uploaded by

ahmadwahyuaw86
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

ChangeFeature("Modfly", true)

function place(id,x,y)
pkt = {}
pkt.type = 3
pkt.value = id
pkt.px = math.floor(GetLocal().pos.x / 32 +x)
pkt.py = math.floor(GetLocal().pos.y / 32 +y)
pkt.x = GetLocal().pos.x
pkt.y = GetLocal().pos.y
SendPacketRaw(false, pkt)
end

function ClearWater()
for x = 0, 199 do
for y = 0, 193 do
if GetTile(x,y).flags.water then
FindPath(x,y,100)
Sleep(400)
if GetTile(x,y).flags.water then
place(822,0,0)
Sleep(400)
end
end
end
end
end

while true do
ClearWater()
end

You might also like