Results 1 to 3 of 3

Thread: [Action] Get royal spear from the ground when with less than "x" spear in hand

  1. #1
    Normal User
    Join Date
    Mar 2013
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    [Action] Get royal spear from the ground when with less than "x" spear in hand

    Guys, I don't know if there is a script like this, but wanted to know. Wanted, for example, when you have less than 10 royal spear equipped he took one off the ground when found.

  2. #2
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    Lua Code:
    if cap >= 25 and weaponamount < 10 then
        for i = -1, 1 do
            for j = -1, 1 do
                if toptileitem(posx+i, posy+j, posz) == itemid("royal spear") then
                    pausewalking(1000)
                    moveitems("royal spear", ground(posx+i, posy+j, posz), "weapon", 1)
                    wait(200, 250)
                    pausewalking(0)
                    return
                end
            end
        end
    end
    Last edited by walukasz; 02-21-2014 at 06:29 AM.

  3. #3
    Normal User
    Join Date
    Mar 2013
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by walukasz View Post
    Lua Code:
    if cap >= 25 and weaponamount < 10 then
        for i = -1, 1 do
            for j = -1, 1 do
                if toptileitem(posx+i, posy+j, posz) == itemid("royal spear") then
                    pausewalking(1000)
                    moveitems("royal spear", ground(posx+i, posy+j, posz), "weapon", 1)
                    wait(200, 250)
                    pausewalking(0)
                    return
                end
            end
        end
    end
    Thank you

Posting Permissions

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