Results 1 to 2 of 2

Thread: wrong depo and npc, script by Orimorfus

  1. #1
    iBot User
    Join Date
    Sep 2012
    Location
    bydgoszcz
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    wrong depo and npc, script by Orimorfus

    hey i use script ORC FORTRESS by Orimorfus and deposit and npc doesnt work ;/
    http://www.tibiaibot.com/forum/showt...l=1#post121180

    POTIONS !!!! he dont start say hi ;<

    PHP Code:
    local MP_TO_BUY MP_COUNT-itemcount('mana potion')
    local GHP_TO_BUY GHP_COUNT-itemcount('great health potion')
    if 
    not islocation(2then
         gotolabel
    (wpt.id-1)
    else
         if 
    Client.isChannelOpened('NPCs'then
              npcsay
    ('hi')
         else
              
    say('hi')
              
    wait(1200,2300)
         
    end
         
    if not Client.isChannelOpened('NPCs'then
              gotolabel
    (wpt.id-1) else
              
    npcsay('trade')
              
    wait(1000,1700)
              
    updateworld()
              if 
    not Client.isTradeOpened() or not islocation(2then
                   gotolabel
    (wpt.id-1)
              
    end
         end
         
    while Client.isTradeOpened() and itemcount('mana potion') < MP_COUNT do
              
    updateworld()
              if 
    itemcount('mana potion') <= MP_COUNT-100 then
                   buyitems
    ('mana potion',100)
                   
    updateworld()
                   
    moveitems('mana potion',BP_MAIN,BP_SUPPLIES,100)
              
    end
              updateworld
    ()
              if 
    itemcount('mana potion') <= MP_COUNT then
                   local MP_TO_BUY 
    MP_COUNT-itemcount('mana potion')
                   
    buyitems('mana potion',MP_TO_BUY )
                   
    updateworld()
                   
    moveitems('mana potion',BP_MAIN,BP_SUPPLIES,100)
              
    end
         end
         
    while Client.isTradeOpened() and itemcount('great health potion') < GHP_COUNT do
              
    updateworld()
              if 
    itemcount('great health potion') <= GHP_COUNT-100 then
                   buyitems
    ('great health potion',100)
                   
    updateworld()
                   
    moveitems('great health potion',BP_MAIN,BP_SUPPLIES,100)
              
    end
              updateworld
    ()
              if 
    itemcount('great health potion') <= GHP_COUNT then
              local GHP_TO_BUY 
    GHP_COUNT-itemcount('great health potion')
                   
    buyitems('great health potion',GHP_TO_BUY )
                   
    updateworld()
                   
    moveitems('great health potion',BP_MAIN,BP_SUPPLIES,100)
              
    end
         end
         moveitems
    ('mana potion',BP_MAIN,BP_SUPPLIES,100)
         
    moveitems('great health potion',BP_MAIN,BP_SUPPLIES,100)
         if 
    itemcount('mana potion') < MP_COUNT or itemcount('great health potion') < GHP_COUNT then
              gotolabel
    (wpt.id-3)
         else
              
    setsettings("Settings\\CaveBot\\Settings\\OpenNextBp",'if cavebot enabled')
         
    end
    end 
    deposit

    PHP Code:
    if windowcount(BP_LOOT) == 1 then
         
    while windowcount('depot chest') == and windowcount(BP_LOOT) == do
              
    reachgrounditem('depot')
              
    wait(1500,2000)
              
    openitem('depot')
              
    wait(1500,2000)
              
    updateworld()
              
    openitem(3502,'locker',false)
              
    wait(1500,2000)
              
    updateworld()
         
    end
         
    while windowcount('depot chest') == and windowcount(DP_BP_MAIN) == do
              
    openitem(DP_BP_MAIN,'depot chest',false)
              
    wait(1500,2000)
              
    updateworld()
              
    resizewindow(DP_BP_MAIN,5)
         
    end
    else
         
    gotolabel(wpt.id-2)
    end 
    PHP Code:
    if windowcount(BP_LOOT) == and windowcount(DP_BP_MAIN) == 1 then
         
    while itemcount(BP_LOOT) ~= do
         
    depotdeposit(DP_BP_STACKABLE,'Orc Tooth','Skull Belt','Orc Leather','Broken Shamanic Staff','Shamanic Hood','Broken Helmet','Orcish Gear')
         
    depotdeposit(DP_BP_RARE,'Old and Used Backpack','Crusader Helmet','Warrior Helmet','Sword Ring','Wand of Decay','Broadsword')
         
    updateworld()
         
    openitem(BP_LOOT,BP_LOOT,false)
         
    wait(1500,2000)
         
    depotdeposit(DP_BP_STACKABLE,'Orc Tooth','Skull Belt','Orc Leather','Broken Shamanic Staff','Shamanic Hood','Broken Helmet','Orcish Gear')
         
    depotdeposit(DP_BP_RARE,'Old and Used Backpack','Crusader Helmet','Warrior Helmet','Sword Ring','Wand of Decay','Broadsword')
         
    updateworld()
         
    end
         setsettings
    ("Settings\\CaveBot\\Settings\\OpenNextBp",'yes')
         
    setsettings("Settings\\Actions\\List\\Supplies Alarm\\Enabled",'yes')
         
    closewindows()
    else
         
    gotolabel(wpt.id-2)
    end 
    PHP Code:
    if windowcount() == 0 then
         
    while windowcount(BP_MAIN) ~= do
              
    openitem(BP_MAIN,'back',false)
              
    wait(1500,2000)
              
    updateworld()
              
    minimizewindows('equip')
              
    resizewindow(BP_MAIN,5)
         
    end
         
    while windowcount(BP_MAIN) == and windowcount(BP_LOOT) ~= 1   do
              
    openitem(BP_LOOT,BP_MAIN,false)
              
    wait(1500,2000)
              
    updateworld()
         
    end
    else
         
    gotolabel(wpt.id-1)
    end 

  2. #2
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    You should post on his thread instead! Maybe he can help you


    Thread closed

Posting Permissions

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