PDA

View Full Version : change swords when x monster on screen



qexybot
11-24-2015, 10:00 PM
Change weapon when "X" monster on screen.

leder
12-08-2015, 04:48 PM
please, i need this script

Foulwerp
12-08-2015, 06:37 PM
NewWeap = 1 -- ID of the weapon you wish to switch to when Mob is on screen
OriWeap = 2 -- ID of original weapon you were using to switch back to if not on screen
Names = {Slime, Bat} -- Names of mobs to switch weapons when on screen

Module.New("Change Weapon", function(Module)
Mobs = Self.GetTargets(8)
for i = 1, #Mobs do
if table.isStrIn(Names, Mobs[i]:Name()) then
if (Self.Weapon.id ~= NewWeap) then
Self.Equip(NewWeap)
wait(500 + Self.Ping())
return
end
end
end
if (Self.Weapon.id ~= OriWeap) then
Self.Equip(OriWeap)
end
Module:Delay(1000)
end)

You will have to put your own Mob names and weapon IDs. Hope it works, did not test it. Wrote it from the top of my head. Let me know how it goes.

dronepl
02-28-2016, 06:58 AM
hello
not working
please help

a1020
12-20-2016, 01:37 PM
need scprit for helpin please help
https://www.facebook.com/memy2014 add me pay tibia coins or kk $$

a1020
12-20-2016, 01:38 PM
add range please on monster