Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ^boom (.+)$
  2.  
  3. if cityList.Mhaldor[matches[2]:title()] then
  4.     if announce then
  5.         send(matches[2].. " remove shackle")
  6.     end
  7.     local name = matches[2]
  8.     for k,v in pairs(gmcp.Room.Info.exits) do
  9.         local boom_fn = function()
  10.             local cmd = string.format("cq all;clearalias x1;setalias x1 stand/wield shield boomerang/throw boomerang at %s %s;x1", name, k)
  11.             send(cmd)
  12.         end
  13.         tempTimer(1, boom_fn)
  14.     end
  15. else
  16.     send("wield boomerang")
  17.     send("throw boomerang at " ..matches[2].. " north")
  18.     send("throw boomerang at " ..matches[2].. " south")
  19.     send("throw boomerang at " ..matches[2].. " east")
  20.     send("throw boomerang at " ..matches[2].. " west")
  21.     send("throw boomerang at " ..matches[2].. " northwest")
  22.     send("throw boomerang at " ..matches[2].. " northeast")
  23.     send("throw boomerang at " ..matches[2].. " southwest")
  24.     send("throw boomerang at " ..matches[2].. " southeast")
  25.     send("throw boomerang at " ..matches[2].. " up")
  26.     send("throw boomerang at " ..matches[2].. " down")
  27.     send("throw boomerang at " ..matches[2].. " in")
  28.     send("throw boomerang at " ..matches[2].. " out")
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement