Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
After 2 scripts
#1
Hi, I am after a script that buys mana fluids from npc, i tried to use the buy ammo one in the helpful cavebot scripts but it wouldnt work.

also after a simple if attacked by player gotolabel('Pk attack')

thank you very much
Reply

#2
Hello.

What exactly didn't works there? That script works based on visible items. So you have all your mana fluids visible, so it can count how many left and purchase more.
Depending on how you organize your bps, I think you would need more advanced script. How do you organize your mana fluids? One bp with 20 bps inside or One bp inside another?

You can use Alerts->Player Attack->Enable Cavebot.
Enable Cavebot: If cavebot IS DISABLED, this will enable and go to label "alert_(NAME)". In your case: "alert_playerattack". Example: If Player attack you, it will enable cavebot and go to label "alert_playerattack", if label not found, it will go to first waypoint.
Reply

#3
local Ammo = {
   Name = 'arrow',
   MaxAmount = 400,
   Price = 2,
   Weight = 0.7,
}

local DestinationBP = 'grey backpack'

if windowcount(DestinationBP) > 0 then
   local AmountToBuy = cap() / Ammo.Weight
   if AmountToBuy > Ammo.MaxAmount then
       AmountToBuy = Ammo.MaxAmount
   end

   AmountToBuy = (AmountToBuy - itemcount(Ammo.Name, true))

   if AmountToBuy > 0 then
       local currentMoney = gold()
       local moneyNeeded = math.ceil(Ammo.Price * AmountToBuy) --Platinums to withdraw.
       if currentMoney > moneyNeeded then
           say('hi')
           wait(800)
           say('buy ' .. AmountToBuy .. ' ' .. Ammo.Name)
           wait(800)
           say('yes')
           wait(800)
       end
   end
end
 I use this but it doesnt work and i am currently getting this error

|Only Registered members can see download links. | Click here to buy subscription or here to register.


Also is it possible for you to make a more advanced buyer? as the server i play on you can purchase runes etc and backpack inside backpack would be great rather than all open. I am more than happy to pay you for making the script

thanks for the other one didnt realise i could do that.
Reply

#4
Hello.

It's a bug on gold() function. Try this way.
local Ammo = {
    Name = 'arrow',
    MaxAmount = 400,
    Price = 2,
    Weight = 0.7,
}

local DestinationBP = 'grey backpack'

local GOLD_COIN_ID = 2148
local PLATINUM_COIN_ID = 2152
local CRYSTAL_COIN_ID = 2160


if windowcount(DestinationBP) > 0 then
    local AmountToBuy = cap() / Ammo.Weight
    if AmountToBuy > Ammo.MaxAmount then
        AmountToBuy = Ammo.MaxAmount
    end

    AmountToBuy = (AmountToBuy - itemcount(Ammo.Name, true))

    if AmountToBuy > 0 then
        local currentMoney = itemcount(GOLD_COIN_ID) + (itemcount(PLATINUM_COIN_ID) * 100) + (itemcount(CRYSTAL_COIN_ID) * 10000)
        local moneyNeeded = math.ceil(Ammo.Price * AmountToBuy) --Platinums to withdraw.
        if currentMoney > moneyNeeded then
            say('hi')
            wait(800)
            say('buy ' .. AmountToBuy .. ' ' .. Ammo.Name)
            wait(800)
            say('yes')
            wait(800)
        end
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016