PDA

View Full Version : Auto throw wild growth or magic wall?



w0w
04-18-2016, 08:25 PM
How do I make xenobot throw a magic wall or wild growth to a certain position and renew it when it disappears?

nooke
04-25-2016, 07:48 PM
i want to know too :X

Jetta
04-26-2016, 03:06 PM
Here you go, stand on the sqm and type "spot"

local spot = nil
local id = Item.GetID("wild growth rune")

function onSpeak(c, msg)
msg = msg:lower()
c:SendYellowMessage(Self.Name(), msg)
if msg == "spot" then
spot = Self.Position()
c:SendOrangeMessage("Xenobot", "Coordinates updated: ("..spot.x..", "..spot.y..", "..spot.z..")")
elseif msg == "reset" then
spot = nil
c:SendOrangeMessage("Xenobot", "Coordinates reset.")
end
end

function onClose(c)
end

local c = Channel.Open("Wild Growth", onSpeak, onClose)
c:SendOrangeMessage("Xenobot", "Welcome to Tools Channel! Type 'spot' while standing on the coordinates you want to place a magic wall. Type 'reset' to clear all values.")

Module.New("Module:RuneField", function(mod)
if (spot ~= nil) then
if (Map.IsTileWalkable(spot.x, spot.y, spot.z)) then
Self.UseItemWithGround(id, spot.x, spot.y, spot.z)
end
end
mod:Delay(200)
end)

eldera
04-26-2016, 04:35 PM
How do I make xenobot throw a magic wall or wild growth to a certain position and renew it when it disappears?

If you want really fast MW/WG renewer use this one if you got low ping. If you play on high ping lemme know and I will improve this script.

local position = {32333, 32219, 7};
local runeId = 3180;

--[[ DO NOT EDIT ANYTHING BELOW THIS LINE ]]--

while(true) do
if (Map.IsTileWalkable(unpack(position))) then
Self.UseItemWithGround(runeId, unpack(position));
end
end

w0w
05-07-2016, 04:18 PM
Thank you so much, I love you.