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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FREE Enable/Disable Must attack me if player on screen
This script will disable "Must attack me" of the listed creatures on Targeting if there's no player on screen. If a player appears, it will enable back only if you are not attacking anything, because a player could show up when you are killing something and Targeting would stop attack it.

local MONSTERS = { 'Demon', 'Goblin', 'Wolf' }
local DIST_ATTACK = 4


local creatures = getcreatures('pmfs')

local PLAYER_FOUND = false
for _, creature in ipairs(creatures) do
    if creature.isplayer then
        PLAYER_FOUND = true

if PLAYER_FOUND == false then
    for _, creature in ipairs(creatures) do
        if table.find(MONSTERS, creature.name:lower()) ~= nil and creature.ismonster and creature.dist <= DIST_ATTACK then
            setsettings('Targeting/' .. creature.name .. '/Setting1/Must attack me', false)
    local attacking_creature = attacked()
    if attacking_creature.id == 0 then
        for _, monster in ipairs(MONSTERS) do
            setsettings('Targeting/' .. monster .. '/Setting1/Must attack me', true)

Forum Jump:

Forum software by © MyBB Theme © iAndrew 2016