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

Prosze o pomoc z skryptem Xenobota do skillowania


madaffaka

Rekomendowane odpowiedzi

Opublikowano


local SlimeTrainer = Module.New('Slime Trainer', function()

 

    if (Self.TargetID() == 0) then

 

        local creatures = Self.GetTargets(7)

        for i = 1, #creatures do

            if (creatures:Name() == 'Slime' and creatures:HealthPercent() >= 50) then

                if (creatures:Attack()) then break end

            end

        end

    end

end)

 

 

 

 

 

 

<><><>>>>>><><><><>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

 

 

 

 

--Notes--

--[[

Damage Slime Mother until its health is below 50%.

If you check the 'Advanced Info' (Adv Info) checkbox in Tools, XenoBot will automatically label the Slime Mother for you.

Set your training up where the Slime Mother is attacking you (adjacent to you).

If you're training with small stones, for example, their range is 4, so try to setup training in an area where the slime summons can't get out of range.

Any questions, problems, suggestions, etc., contact Jo3Bingham at XenoBot forums.

]]--

 

 

--Slime Trainer Settings--

local CreatureName = 'Slime' -- Name of creature you want to train on.

local CreatureRange = 4 -- Distance from self to get creatures.

local CreatureDistance = 2 -- Minimum distance target creature should be from self.

 

 

--Weapon Switcher Settings--

local TrainingWeaponID = 1781 -- ID of weapon you are training with. (Default: Small Stones)

local LowHealthWeaponID = 3277 -- ID of weapon you want to switch to when low on health. (Default: Spears)

local LowAmmoWeaponID = 3277 -- ID of weapon you want to switch to when low on ammo. (Default: Spears)

 

 

local SwitchOnLowHealth = false -- Set to false if you don't want to switch to alternate weapon on low health.

local SwitchLowHealth = math.floor(Self.MaxHealth() * 0.5) -- Your health at which you want to switch to alternate weapon. (Default: 50%)

local SwitchHighHealth = math.floor(Self.MaxHealth() * .75) -- Your health at which you want to switch back to training weapon. (Default: 75%)

 

 

local SwitchOnLowAmmo = false -- Set to true if you want to switch to alternate weapon on low ammo.

local SwitchAmmoCount = 50 -- Amount of ammo to switch to alternate weapon at.

 

 

--Slime Mother Killer Settings--

local KillOnLowHealth = true -- Set to false if you don't want to kill slime mother when low on health.

local KillLowHealth = math.floor(Self.MaxHealth() * .35) -- Your health at which you want to kill slime mother.

 

 

local KillOnLowAmmo = true -- Set to false if you don't want to kill slime mother when low on ammo.

local KillAmmoCount = 25 -- Amount of ammo to kill slime mother at.

 

 

--Alerts--

local AlertOnWeaponSwitch = false -- Set to true if you want to be alerted when weapon is switched.

local AlertOnLowAmmo = false -- Set to true if you want to be alerted when ammo is switched.

local AlertOnLowHealth = false -- Set to true if you want to be alerted when low on health.

local AlertOnKill = true -- Set to false if you don't want to be alerted when slime mother is killed.

 

 

--Only edit below if you want to.--

local KillingSlimeMother = false -- Do not change!

 

 

local SlimeTrainer = Module.New('Slime Trainer', function()

    if (Self.TargetID() == 0) then

        local creatures = Self.GetTargets(CreatureRange)

        for i = 1, #creatures do

            if (creatures:DistanceFromSelf() >= CreatureDistance) then

                if (creatures:Attack()) then break end

            end

        end

    end

end)

 

 

local WeaponSwitcher = Module.New('Weapon Switcher', function()

    if (SwitchOnLowHealth) then

        if (Self.Health() <= SwitchLowHealth and Self.Weapon().id ~= LowHealthWeaponID) then

            if (AlertOnLowHealth) then alert() end

            if (MoveWeapon(LowHealthWeaponID) and AlertOnWeaponSwitch) then alert() end

        elseif (Self.Health() >= SwitchHighHealth and Self.Weapon().id ~= TrainingWeaponID) then

            if (MoveWeapon(TrainingWeaponID) and AlertOnWeaponSwitch) then alert() end

        end

    end

    if (SwitchOnLowAmmo) then

        if (Self.Weapon().id == TrainingWeaponID and Self.Weapon().count <= SwitchAmmoCount) then

            if (MoveWeapon(LowAmmoWeaponID) and AlertOnLowAmmo) then alert() end

        end

    end

    wait(1000, 2000)

end, false)

 

 

local SlimeMotherKiller = Module.New('Slime Mother Killer', function()

    if (KillOnLowHealth) then

        if (Self.Health() <= KillLowHealth) then KillSlimeMother() end

    end

    if (KillOnLowAmmo) then

        if (Self.Weapon().count <= KillAmmoCount) then KillSlimeMother() end

    end

    wait(1000, 2000)

end, false)

 

 

function MoveWeapon(ItemID)

    local container = Container.GetFirst()

    while (container:isOpen()) do

        for spot = 0, container:ItemCapacity() do

            if (container:GetItemData(spot).id == ItemID) then

                return (container:MoveItemToEquipment(spot, 'weapon'))

            end

        end

        container = container:GetNext()

    end

    return false

end

 

 

function KillSlimeMother()

    if not (KillingSlimeMother) then

        SlimeTrainer:Stop()

        Self.StopAttack()

        if (AlertOnLowHealth) then alert() end

        local creatures = Self.GetTargets(1)

        for i = 1, #creatures do

            if (creatures:Name() == 'Slime' and creatures:HealthPercent() <= 50) then

                if (creatures:Attack()) then break end

            end

        end

    elseif (KillingSlimeMother and Self.TargetID == 0) then

        local creatures = Self.GetTargets(1)

        for i = 1, #creatures do

            if (creatures:Name() == 'Slime' and creatures:HealthPercent() <= 50) then

                if (creatures:Attack()) then break end

            end

        end

        if (AlertOnKill) then alert() end

        KillingSlimeMother = false

    end

end

 

 

if (SwitchOnLowHealth or SwitchOnLowAmmo) then WeaponSwitcher:Start() end

if (KillOnLowHealth or KillOnLowAmmo) then SlimeMotherKiller:Start() end

 

 

local info = [['Slime Trainer' by Jo3Bingham loaded successfully.]]

print(info)

wait(500)

 

 

Witam znalazłem na necie te 2 skrypt do skillowania na slimie pallkiem czy mógłby mi ktoś to zrobić pod knighta ponieważ co nie zrobie to i tak mi nie dziala ;/

100  [+]

300  [+]

500  [+]

700  [+]

900  [+]

1100[+]

1300[+]

1500[+]

1600[+]

1700[+]

1800[+]

 

 

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...