Signup Now
Results 1 to 2 of 2

Thread: Taking Roots

  1. #1
    Free User
    Join Date
    Jan 2015
    Posts
    13
    Reputation
    10
    Rep Power
    0

    Arrow Taking Roots

    Hello, i edit this code to take roots in oramond

    ----roots
    init start
    root = {21104, 21105}
    mon = 3 -- min monster screen to use
    init end
    auto(200)
    for _,roots in ipairs(root) do
    for i = -5,7 do
    for j = -5,7 do
    rootstile = gettile($posx+i,$posy+j,$posz)
    for rtilecount = 1,rootstile.itemcount do
    if rootstile.item[rtilecount].id == roots and tilereachable($posx+i,$posy+j,$posz) and maround(7) <= mon then
    rootsX,rootsY = $posx+i,$posy+j
    setlooting('off')
    reachlocation(rootsX,rootsY,$posz,1)
    wait(100)
    useitem(0, ground(rootsX,rootsY,$posz))
    wait(200)
    setlooting('on')
    end end end end end
    ------------
    Last edited by choosed; 03-04-2015 at 04:54 PM.

  2. #2
    Helper StaR's Avatar
    Join Date
    Dec 2013
    Location
    Manchester
    Posts
    713
    Reputation
    50
    Rep Power
    22
    You should post it into [ LUA ] [ / LUA ] tags instead of code ones! But nevertheless well done



 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •