Results 1 to 4 of 4

Thread: Problem with if not islocation & moveitems

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

    Question Problem with if not islocation & moveitems

    Hey

    I want my bot to drop certain items on the ground, altough not anywhere.. at the moment the bot drops anywhere and not anywhere close the wp

    PHP Code:
    if not islocation(3)
    then
        gotolabel
    ("START")
    end
    wait
    (1000)
    dropitems(114575877592034163061743030283071285284283)
    wait(1000
    Also im wondering, i want my bot to go into my house - open a container and then refill characters spear to a maximum amount given.
    How to?
    I've been trying different methods and searching for hours but nothing works good.
    This is where i gave up:

    PHP Code:
    wait(1000)
    useitem(Spearname32108321947) -- must change ID and Position.
    wait(500)
    while 
    itemcount(Spearnameweapon) < do 
    wait(500,900)
    moveitems(Spearname'Large trunk''weapon'25)
    wait(500,900)
    end 
    (If amount on character is 3 i want it to withdraw 22 so that the character will have total 25 spears, now it just withdraws 25 every time)

    Thank you for any help!
    Last edited by Eli; 01-22-2014 at 03:02 PM.

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    PHP Code:
    moveitems(Spearname"Large Trunk""weapon"25-weaponamount) -- You should put and use a bp inside the trunk imo 

    PHP Code:
    local itemArray = {114575877592034163061743030283071285284283}
    local dropX 23423
    local dropY 
    234234


    for 0,#itemArray do
        
    while itemcount(itemArray[i]) > do
            
    moveitems(itemArray[i], lootBpground(dropXdropYposz))
            
    wait(800)
        
    end
    end 

  3. #3
    Normal User
    Join Date
    Dec 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    Quote Originally Posted by pink_panther View Post
    PHP Code:
    moveitems(Spearname"Large Trunk""weapon"25-weaponamount) -- You should put and use a bp inside the trunk imo 

    PHP Code:
    local itemArray = {114575877592034163061743030283071285284283}
    local dropX 23423
    local dropY 
    234234


    for 0,#itemArray do
        
    while itemcount(itemArray[i]) > do
            
    moveitems(itemArray[i], lootBpground(dropXdropYposz))
            
    wait(800)
        
    end
    end 
    Thanks for your help!
    Altough i couldnt get the dropitem to work, i changed the local dropX+dropY, and corrected the name "lootBp" to my bp.
    Im getting the error ".NET exception occured...." - any ideas?

    The moveitem for spears works great and big thank you for the help, that one really maked me go insane

  4. #4
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    PHP Code:
    local itemArray = {114575877592034163061743030283071285284283}
    local dropX 23423
    local dropY 
    234234
    local lootBp 
    "Blue Backpack"

    for 0,#itemArray do
        
    while itemcount(itemArray[i]) > do
            
    moveitems(itemArray[i], lootBpground(dropXdropYposz), 100)
            
    wait(800)
        
    end
    end 
    Last edited by pink_panther; 01-22-2014 at 09:34 PM.

Posting Permissions

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