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
Mixing between SD/HMM on targets script
#1
Hi!

I want a script that shoots SD's on white skulls and red skulls on screen but switches to HMM for monsters.
But I want the monsters list to have a safelist: If monster is on safelist do NOT attack.


Thank you!
Reply

#2
Hello.

This script will shoot SDs on white skull and red skull players, HMM on listed monsters (e.g. Demon Skeleton).
Notice this script will NOT ATTACK (red-square) players or monsters, only shoot runes.

local Monsters = { 'Demon Skeleton' }
local Rune_Monsters = 3198 -- Rune to shoot on listed monsters above.
local Rune_WhiteSkull = 3155 -- Rune to shoot on white skull players.
local Rune_RedSkull = 3155 -- Rune to shoot on red skull players.

if connected() and cancast() then
    table.lower(Monsters)

    local creatures = getcreatures('mpfs')

    for _, creature in ipairs(creatures) do
        if creature.skull == 4 then
            useitemoncreature(Rune_RedSkull, creature.id)
            wait(1000, 1200)
            break
        elseif creature.skull == 3 then
            useitemoncreature(Rune_WhiteSkull, creature.id)
            wait(1000, 1200)
            break
        elseif table.find(Monsters, creature.name:lower()) ~= nil then
            useitemoncreature(Rune_Monsters, creature.id)
            wait(1000, 1200)
            break  
        end
    end
end
Reply

#3
Thanks alot!! One last question, If I were to add multiple creatures on the HMM-list, how would I write it?
local Monsters = { 'Demon Skeleton' }
local Rune_Monsters = 3198 -- Rune to shoot on listed monsters above.
local Rune_WhiteSkull = 3155 -- Rune to shoot on white skull players.
local Rune_RedSkull = 3155 -- Rune to shoot on red skull players.

if connected() and cancast() then
    table.lower(Monsters)

    local creatures = getcreatures('mpfs')

    for _, creature in ipairs(creatures) do
        if creature.skull == 4 then
            useitemoncreature(Rune_RedSkull, creature.id)
            wait(1000, 1200)
            break
        elseif creature.skull == 3 then
            useitemoncreature(Rune_WhiteSkull, creature.id)
            wait(1000, 1200)
            break
        elseif table.find(Monsters, creature.name:lower()) ~= nil then
            useitemoncreature(Rune_Monsters, creature.id)
            wait(1000, 1200)
            break 
        end
    end
end
Reply

#4
local Monsters = { 'Demon Skeleton', 'Another monster', 'Demon', 'Creature name', 'Goblin' }
local Rune_Monsters = 3198 -- Rune to shoot on listed monsters above.
local Rune_WhiteSkull = 3155 -- Rune to shoot on white skull players.
local Rune_RedSkull = 3155 -- Rune to shoot on red skull players.

if connected() and cancast() then
    table.lower(Monsters)

    local creatures = getcreatures('mpfs')

    for _, creature in ipairs(creatures) do
        if creature.skull == 4 then
            useitemoncreature(Rune_RedSkull, creature.id)
            wait(1000, 1200)
            break
        elseif creature.skull == 3 then
            useitemoncreature(Rune_WhiteSkull, creature.id)
            wait(1000, 1200)
            break
        elseif table.find(Monsters, creature.name:lower()) ~= nil then
            useitemoncreature(Rune_Monsters, creature.id)
            wait(1000, 1200)
            break  
        end
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016