Results 1 to 3 of 3

Thread: Modifying script? To get simpler

  1. #1
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5

    Modifying script? To get simpler

    Did someone modify it please the part where have to put the name of the potion to move to backpack, I want to work recognizing the potion I chose the actions, which is not going to have the edit label.

    SETUP:

    PHP Code:
    MPname "Mana Potion"
    MPprice 50
    MPtobuy 
    50
    MPtoback 
    10

    HPname 
    "Health Potion"
    HPprice 45
    HPtobuy 
    30
    HPtoback 
    10 
    Label:

    PHP Code:
    closewindows()
    wait(5001000)
    openitem(MainBP'back')
    wait(5002000)
    resizewindows() 
    wait(5001500)
    openitem(PotionsBPMainBPtrue)
    wait(5002000)
    minimizewindows("equip")
    wait(5001000)
    resizewindows() 

    local SUPPLIES = {"mana potion""health potion"}
     
    for 
    i,j in pairs(SUPPLIES) do
        while (
    itemcount(SUPPLIES[i], MainBP) > 0) do
            
    moveitems(SUPPLIES[i], MainBPPotionsBP100)
            
    wait(400,800)
            
    updateworld()
        
    end
    end 
    And let the one below it simpler, it was just to open the depot, open the depot foo backpack and pull X amount of food for main backpack

    For this I use it opens several times, and then just doing correct action

    PHP Code:
    local item "Egg" -- item name to withdraw
        local location 
    MainBP  -- MainBP or "backpack name"
        
    local DepoLocation FoodDPBP -- Backpack where you located food
        local WantedAmount 
    100 -- ammount of wanted item
     
     
        local Amount 
    WantedAmount - (itemcount(itemlocation))
        
    closewindows()
        
    wait(1000)
        while 
    windowcount() < do
            
    openitem(MainBP'back')
            
    wait(5001000)
            
    resizewindows() 
        
    end
        reachgrounditem
    ("depot")
            while (
    windowcount("Locker") ==0) do 
                   
    openitem("depot")
                   
    wait(700,900)
            
    end
     
            
    while (windowcount("Depot Chest") == 0) do
                
    openitem(3502"locker")
                
    wait(800,1000)
            
    end
     
            
    while (windowcount(FoodDPBP) == 0) do
                
    openitem(FoodDPBP"Depot Chest"false)
                
    wait(1800,2000)
            
    end
     
     
        
    while Amount do
            if 
    itemcount(itemDepoLocation) == 0 then
                openitem
    (DepoLocationDepoLocationfalse)
                
    wait(1000)
            
    end
            
    if Amount <= 0 then
                
    return
            else
                while 
    Amount and (itemcount(itemDepoLocation) > 0)  do
                    
    moveitems(itemlocationAmount)
                    
    wait(300)
                    
    Amount WantedAmount - (itemcount(itemlocation))
                
    end
                
    if itemcount(DepoLocationDepoLocation) == and itemcount(itemDepoLocation) == 0 then
                    
    return
                
    end
            end
        end 

    Who does not understand English, patience, I explain again
    Thanks in advance

  2. #2
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    local SUPPLIES = {"mana potion", "health potion"}

    Add what ever potion you want to move to your PotionsBP

  3. #3
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5
    Yes, the more I wanted to know if I for example MPname HPname and, in a way that does not require going to stay there in the label pack, but already the action

    Example:

    PHP Code:
    closewindows() 
    wait(5001000
    openitem(MainBP'back'
    wait(5002000
    resizewindows()  
    wait(5001500
    openitem(PotionsBPMainBPtrue
    wait(5002000
    minimizewindows("equip"
    wait(5001000
    resizewindows()  

    local SUPPLIES = {"MPname""MPname"
      
    for 
    i,j in pairs(SUPPLIES) do 
        while (
    itemcount(SUPPLIES[i], MainBP) > 0) do 
            
    moveitems(SUPPLIES[i], MainBPPotionsBP100
            
    wait(400,800
            
    updateworld() 
        
    end 
    end 

Posting Permissions

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