BBot - The best bot of the world
Help: throwing magic walls on specific sqms - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Scripts & Macros (https://forums.bmega.net/forum-4.html)
+--- Forum: Requests (https://forums.bmega.net/forum-17.html)
+--- Thread: Help: throwing magic walls on specific sqms (/thread-20961.html)



Help: throwing magic walls on specific sqms - Sarden - 11-17-2018

I'm trying to find a way to throw magic walls or wild growths on specific sqms, since I'm hunting on a spot where I need to keep the mobs away from my secondary and tertiary characters.

Is there any way to do it?


RE: Help: throwing magic walls on specific sqms - Catar - 11-20-2018

Yes there is

change mX and mY and ID of magic wall on ground if different
[macro]200 {Macro Sample} mX:=12345 mY:=12345 MWRuneID:=3180 MagicWallID:=2129 UseonID:=Map.ItemOnTop.ID(!mX, !mY, :Z) !UseonID<>!MagicWallID Map.UseOn(!MWRuneID, !UseonID, !mX, !mY, :Z, 6)[/macro]

[spoiler]
Code:
mX:=12345
mY:=12345
MWRuneID:=3180
MagicWallID:=2129
UseonID:=Map.ItemOnTop.ID(!dX, !dY, :Z)
!UseonID<>!MagicWallID
Map.UseOn(!MWRuneID, !UseonID, !mX, !mY, :Z, 6)
[/spoiler]


RE: Help: throwing magic walls on specific sqms - Sarden - 11-24-2018

(11-20-2018, 02:19 AM)Catar Wrote: Yes there is

change mX and mY and ID of magic wall on ground if different
[macro]200 {Macro Sample} mX:=12345 mY:=12345 MWRuneID:=3180 MagicWallID:=2129 UseonID:=Map.ItemOnTop.ID(!dX, !dY, :Z) !UseonID<>!MagicWallID Map.UseOn(!MWRuneID, !UseonID, !mX, !mY, :Z, 6)[/macro]

[spoiler]
Code:
mX:=12345
mY:=12345
MWRuneID:=3180
MagicWallID:=2129
UseonID:=Map.ItemOnTop.ID(!dX, !dY, :Z)
!UseonID<>!MagicWallID
Map.UseOn(!MWRuneID, !UseonID, !mX, !mY, :Z, 6)
[/spoiler]

Hey bud! First of all thank you for your support!

But I can't get it working for me. I'm trying to shoot a wild growth (ID 3156, ground ID 2130) on the coordinates (33230 29581 8). Doesn't seem to work...


RE: Help: throwing magic walls on specific sqms - Catar - 11-24-2018

try gain, with this, for some reason i named variable diferently (d instead of m)

200 {Macro Sample} mX:=33230 mY:=29581 MWRuneID:=3156 MagicWallID:=2130 UseonID:=Map.ItemOnTop.ID(!mX, !mY, :Z) !UseonID<>!MagicWallID Map.UseOn(!MWRuneID, !UseonID, !mX, !mY, :Z, 6)