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

XenoBot skrypty na OTS


rafaeru

Rekomendowane odpowiedzi

Opublikowano

Łapcie parę skryptów na OTS do Xeno

 

Softy gdy mało many:

 

 

local ManaToEquip = 96 -- Mana Percent to equip soft boots.
local NormalBoots = 3079 -- Item ID of your normal boots.
Self.ManaPercent = function ()
    return math.abs(Self.Mana() / (Self.MaxMana() * 0.01))
end
Module.New('equip softs', function(module)
    if (Self.ManaPercent() <= ManaToEquip) and (Self.Feet().id ~= 3549) and (Self.ItemCount(6529) > 0) then
        Self.Equip(6529, "feet")
        module:Delay(1000)
    elseif (Self.ManaPercent() >= ManaToEquip) or (Self.Feet().id == 6530) and (Self.Feet().id ~= NormalBoots) then
        Self.Equip(NormalBoots, "feet")
        module:Delay(1000)
    end
end) 

 

 

 

Dokupowanie manasów przy npc do skillania mlvl:

 

 

local MinMana = 100					-- Amount to buy new potions
local MaxMana = 300 				-- Amount to buy up to
local MinCash = 5000				-- 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) 

 

 

 

Alarm gdy mało potionów:

 

 

local PotionID = 23373 --Change to ID of mana potion.
local PotionCount = 100 --Change to amount you want to start alarm at

while true do
if Self.ItemCount(PotionID) <= PotionCount then
alert()
end
sleep(500)
end

 

 

 

Leczenie dla postaci magicznych w skrypcie:

 

 

local healing = {
    ["high"] = {spell = "exura vita", hpperc = 60},
    ["medium"] = {spell = "exura gran", hpperc = 85},
    ["low"] = {spell = "exura", hpperc = 99}
}
 
luaChooseMethod = function ()
    local hpperc = (Self.Health() / Self.MaxHealth() * 100)
    if hpperc <= healing["high"].hpperc and Self.CanCastSpell(healing["high"].spell) then
        selfSay(healing["high"].spell)
    elseif hpperc <= healing["medium"].hpperc and hpperc > healing["high"].hpperc and Self.CanCastSpell(healing["medium"].spell) then
        selfSay(healing["medium"].spell)
    elseif hpperc <= healing["low"].hpperc and hpperc > healing["medium"].hpperc and Self.CanCastSpell(healing["low"].spell) then
        selfSay(healing["low"].spell)
    end
end
 
while true do
    luaChooseMethod()
end

 

 

 

gp na platynki i platynki na cc:

 

 

function useCoins(id) 
local cont = Container.GetFirst() 
 
while (cont:isOpen()) do 
for spot = 0, cont:ItemCount() do 
local item = cont:GetItemData(spot) 
if (item.id == id) then 
if (item.count == 100) then
cont:UseItem(spot, True)
sleep(0)
return true
end
end 
end 
 
cont = cont:GetNext() 
end 
 
return false 
end 
 
while (true) do 
useCoins(3031)--gold
sleep(0)
useCoins(3035)--platinum
sleep(0)
end  

 

 

 

e ring gdy więcej mobów:

 

 

local config = {
    monsterLimit = 2,
    monsterList = {"Grim Reaper", "Frost Dragon Hatchling"},
    EnergyRingID = 3051,
    SecondRingID = 3098,
    TrashRingID = 3004
}
function getMonsterCount()
    local count = 0
    for i = CREATURES_LOW, CREATURES_HIGH do
        local creature = Creature.GetFromIndex(i)
        if (creature:isValid()) and creature:ID() ~= Self.ID() then
            if (creature:isOnScreen() and creature:isVisible() and creature:isAlive()) then
                local name = creature:Name()
                if(table.find(config.monsterList, name, true))then
                    count = count + 1
                end
            end
        end
    end
    return count
end
 
while(true)do
    local curRing = Self.Ring().id
    local eneRing = getActiveRingID(config.EnergyRingID)
    local secRing = getActiveRingID(config.SecondRingID)
    if (getMonsterCount() >= config.monsterLimit and curRing ~= eneRing) then
        Self.Equip(config.EnergyRingID, "ring")
    elseif (getMonsterCount() < config.monsterLimit) then
        if (getMonsterCount() < config.monsterLimit and getMonsterCount() ~= 0) then
            Self.Equip(config.SecondRingID, "ring")
        elseif (getMonsterCount() == 0) then
            Self.Equip(config.TrashRingID, "ring")
        end
    end
    sleep(100)
end 

 

 

 

anty psuh:

 

 

function dropItem(id, count)
local cont = Container.GetFirst()
while (cont:isOpen()) do for spot = 0, cont:ItemCount() do local item = cont:GetItemData(spot)
if (item.id == id) then cont:MoveItemToGround(spot, Self.Position().x, Self.Position().y, Self.Position().z, count)
return true
end
end
cont = cont:GetNext()
end
return false
end
local last = 1
local trash = {3031, 3492}
while (true) do local thisone
while (thisone == last) do thisone = math.random(1, #trash)
end
if (dropItem(trash[thisone], math.random(1, 2))) then wait(700, 1500)
else wait(20)
end
last = thisone
end 

 

 

 

anty rs:

 

 

local players = {}
local hited = {}
 
function _getPlayers(range)
    for _, c in Creature.iPlayers(range) do
        name = c:Name()
        return true
    end
    return false
end
 
function _insertPlayers()
    for _, c in Creature.iPlayers(range) do
        if not _tableContains(players, c:Name()) then
            players[#players + 1] = c:Name()
            print('Added to list '..c:Name())
        end
    end
end
 
function _tableContains(table, nick)
    for i = 1, #table do
        if table[i] == nick then
            setName = table[i]
            return true
        end
    end
    return false
end
 
function _checkLifeStatus(hpperc)
    if _tableContains(hited, setName) then
        local player = Creature.New(setName)
        local self = Creature.GetByID(Self.ID())
        if player:isOnScreen() and player:HealthPercent() <= hpperc then
            if self:Skull() == 3 then
                print('I killed him omg, exiting..')
                wait(2000)
                os.exit()
            end
        end
    end
end
 
BattleMessageProxy.OnReceive('server', function(proxy, text)
    if _getPlayers(7) then
        if _tableContains(players, name) then
            dmg = text:match('%d')
            if text:find(setName) and text:find('your attack.') then
                if not _tableContains(hited, setName) then
                    hited[#hited + 1] = setName
                    print('You hit '.. setName ..' for '.. dmg ..'.')
                else
                    if setName ~= nil then
                        print('You hit '.. setName ..' for '.. dmg ..'.')
                    end
                end
            end
        end
    end
end)
 
Module.New('Anti-Rs', function()
    _insertPlayers()
    _checkLifeStatus(0)
end) 

 

 

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...