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
Attack Direction
#1
Hi,

Just need a script that attacks to the south of the player only (training basically with monsters)

Thanks
Reply

#2
The request seems simple, but I couldn't get what you need. Could you explain better with more details? Maybe even with screenshots, you can send me the screenshots by private message if you prefer.
Reply

#3
|Only Registered members can see download links. | Click here to buy subscription or here to register.
 ahh sorry basically, for it to attack whatever monster is south of the player, so I dont want to attack the rotworm to the West only the one to the South then when it dies and another moves into its location attack that one, hope that makes sense
Reply

#4
Hello.

I think the script below should work. When you are not attacking any creature, it will attack any monster that's on player's south.
You can change direction on ATTACK_POSITION if you like.

local ATTACK_POSITION = { X = 0, Y = 1 } -- Creature must be on this position based on player location.

if connected() and attacked().id == 0 then
    local creatures = getcreatures('mfs')
    local playerX, playerY, playerZ = posx(), posy(), posz()
    for _, creature in ipairs(creatures) do
        if creature.ismonster and creature.posx == (playerX + ATTACK_POSITION.X) and creature.posy == (playerY + ATTACK_POSITION.Y) and creature.posz == playerZ then
            attack(creature.id)
            break
        end
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016