BBot - The best bot of the world

Full Version: Help: throwing magic walls on specific sqms
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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]
(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...
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)