Results 1 to 3 of 3

Thread: Move Assassin Stars from dp to bp

  1. #1
    Normal User
    Join Date
    May 2012
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5

    Move Assassin Stars from dp to bp

    Hello i wana make an script for my pally and i want to get the Stars from my depo.
    My problem is that the bot take the Stars that are in my AssDPBP till i have no cap. I wanted only to take 400 Stars.
    Could someone check my Actions.

    In Setup:

    AssBP = "Fur Backpack" --Assassin Star Bp

    -- Distance Settings --
    AssType = "assassin star"
    AssMax = 400
    AssMin = 80
    AssPrice = 100

    And at my dp action it look like :

    local AssDPBP = "Dragon Backpack"
    local AssToMove = (AssMax - (weaponamount + itemcount(AssType)))

    reachgrounditem("depot") wait(400, 800)
    openitem("depot") wait(1000)
    openitem("depot chest", "locker") wait(1000)
    openitem(AssDPBP, "depot chest") wait(1000)

    while (weaponamount - itemcount(AssType, AssBP)) < AssMax do
    moveitems(AssType, AssDPBP, AssBP, AssToMove) wait(1000)
    end

  2. #2
    Normal User Danzudo's Avatar
    Join Date
    Mar 2012
    Posts
    1,001
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    54
    Rep Power
    7
    Quote Originally Posted by maksim789 View Post
    Hello i wana make an script for my pally and i want to get the Stars from my depo.
    My problem is that the bot take the Stars that are in my AssDPBP till i have no cap. I wanted only to take 400 Stars.
    Could someone check my Actions.

    In Setup:

    AssBP = "Fur Backpack" --Assassin Star Bp

    -- Distance Settings --
    AssType = "assassin star"
    AssMax = 400
    AssMin = 80
    AssPrice = 100

    And at my dp action it look like :

    local AssDPBP = "Dragon Backpack"
    local AssToMove = (AssMax - (weaponamount + itemcount(AssType)))

    reachgrounditem("depot") wait(400, 800)
    openitem("depot") wait(1000)
    openitem("depot chest", "locker") wait(1000)
    openitem(AssDPBP, "depot chest") wait(1000)

    while (weaponamount - itemcount(AssType, AssBP)) < AssMax do
    moveitems(AssType, AssDPBP, AssBP, AssToMove) wait(1000)
    end
    Sorry man, my mistake, I made the change and now, work perfect.
    I made the change on Tutorial too, and comming soon, will translate to english and post on Tutorials and Examples.

    Correct:
    PHP Code:
    local AssDPBP "Yellow Backpack"
    local AssToMove = (AssMax - (weaponamount itemcount(AssType)))

    reachgrounditem("depot"wait(400800)
    openitem("depot"wait(1000)
    openitem("depot chest""locker"wait(1000)
    openitem(AssDPBP"depot chest"wait(1000)

    while (
    weaponamount itemcount(AssTypeMainBP)) < AssMax do
    moveitems(AssTypeAssDPBPMainBPAssToMovewait(1000)
    end 

  3. #3
    Normal User
    Join Date
    May 2012
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5
    thank you very much

Posting Permissions

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