Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Skrypt na mlvl- POMOCY


ovneed

Rekomendowane odpowiedzi

Opublikowano

Witam,
potrzebuje skryptu na trenowanie magic levelu otoz, potrzebuje aby bot: - sprzedawal puste vialki, kupowal manasy oraz uzywal nie przerwanie utane vid,
mam 2 skrypty ale nie wiem jak je polaczyc

 

 

local ratio = 2.7     -- 100 mana potions = 270.00oz (2.7) || 100 strong mana potions = 290.00oz (2.9) || 100 great mana potions = 310.00oz (3.1)
local PotionID = Item.GetID("strong mana potion")              --- Choose the mana potion you want HERE!
local PotionPrice = 80            --- 50gp for normal mana potion. 80gp for strong mana potion. 120gp for great mana potion.
local PotionName = "strong mana potion"           ------- Change to suit the mana's you use
local spellToUse = "utana vid"             ---------- Spell to waste mana with
local spelltoUseMana = 440               ---------- How much mana does your spell cost? DO NOT CHANGE THE STUFF BELOW!

while(true) do

    if (Self.ItemCount(PotionName) > 0) then --using all of the mana potions
        while (Self.ItemCount(PotionName) > 0) do    
            local mana = spelltoUseMana + math.random(50,150)            
            if (not Self.Cast(spellToUse, mana)) then
                Self.UseItemWithMe(237)
                sleep(math.random(600,1400))
            end    
    end


    sleep(math.random(600,1400))
end
end
 
 
oraz
 
local MinMana = 40                    -- Amount to buy new potions
local MaxMana = 150                -- Amount to buy up to
local MinCash = 100                -- Stops is below x gps
local ManaName = "strong mana potion"         -- Name of your mana potion



function Self.ManaPercent()
    local x = math.ceil(math.abs(Self.Mana() / (Self.MaxMana() * 0.01)))
    return x
end

function BuyItems(item, count)
    wait(900, 1200)
    if (Self.ItemCount(item) < count) then
        Self.ShopBuyItem(item, (count-Self.ItemCount(item)))
        wait(200, 500)
    end
end

Module.New('ManaTrain', function(module)
    if (Self.ItemCount(Item.GetID(ManaName)) <= MinMana) and (Self.Money() >= MinCash) then
        Self.SayToNpc({"hi", "vials", "yes", "yes", "yes", "yes", "yes", "yes", "trade"}, 65)
        BuyItems(Item.GetID(ManaName), MaxMana)
            wait(500)
        Self.SayToNpc("bye")
    end
    module:Delay(1500)
end)

 

Opublikowano


local ratio = 2.7 -- 100 mana potions = 270.00oz (2.7) || 100 strong mana potions = 290.00oz (2.9) || 100 great mana potions = 310.00oz (3.1)

local PotionID = Item.GetID("strong mana potion") --- Choose the mana potion you want HERE!

local PotionPrice = 80 --- 50gp for normal mana potion. 80gp for strong mana potion. 120gp for great mana potion.

local PotionName = "strong mana potion" ------- Change to suit the mana's you use

local spellToUse = "utana vid" ---------- Spell to waste mana with

local spelltoUseMana = 440 ---------- How much mana does your spell cost? DO NOT CHANGE THE STUFF BELOW!

 

local MinMana = 40 -- Amount to buy new potions

local MaxMana = 150 -- Amount to buy up to

local MinCash = 100 -- Stops is below x gps

local ManaName = "strong mana potion" -- Name of your mana potion

 

function Self.ManaPercent()

local x = math.ceil(math.abs(Self.Mana() / (Self.MaxMana() * 0.01)))

return x

end

 

function BuyItems(item, count)

wait(900, 1200)

if (Self.ItemCount(item) < count) then

Self.ShopBuyItem(item, (count-Self.ItemCount(item)))

wait(200, 500)

end

end

 

Module.New('ManaTrain', function(module)

if (Self.ItemCount(Item.GetID(ManaName)) <= MinMana) and (Self.Money() >= MinCash) then

Self.SayToNpc({"hi", "vials", "yes", "yes", "yes", "yes", "yes", "yes", "trade"}, 65)

BuyItems(Item.GetID(ManaName), MaxMana)

wait(500)

Self.SayToNpc("bye")

end

module:Delay(1500)

end)

 

Module.New('Potion', function(module)

if (Self.ItemCount(PotionName) > 0) then --using all of the mana potions

while (Self.ItemCount(PotionName) > 0) do

local mana = spelltoUseMana + math.random(50,150)

if (not Self.Cast(spellToUse, mana)) then

Self.UseItemWithMe(237)

sleep(math.random(600,1400))

end

end

 

 

sleep(math.random(600,1400))

    end

end)

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...