PDA

View Full Version : Wand changer



maajky
12-10-2016, 04:47 PM
Hello guys. Last time I start botting my new Master Sorcerer. Its low lvl and i havent got much money so i have got question to reduce my waste. Do u know how to set option > Use Wand of Draconia while attacking Rotworm, change to Wand of Cosmic Energy while attacking CArrion Worm > Any ideas how to set it?

yompa93
12-10-2016, 05:06 PM
I can probably make something for you.

Edit:
Going to bed tho, so tomorrow. :p

maajky
12-10-2016, 05:17 PM
I wanna prov u but u got full memory :D, im waiting for your advices :D

yompa93
12-11-2016, 09:31 AM
Hope this works well for you :)


-------------------------------------------------------------------------------------------------
-- Target names are case sensitive! So if the target is a rat you should write "Rat", not "rat".-
-------------------------------------------------------------------------------------------------

Target1 = "Rotworm"
Wand1 = "magic sword"

Target2 = "Skeleton"
Wand2 = "magic sword"

Target3 = "Slime"
Wand3 = "wand of defiance"
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Wand1ID = Item.GetID(Wand1)
Wand2ID = Item.GetID(Wand2)
Wand3ID = Item.GetID(Wand3)
function getTargetName()
local cid = Self.GetSpectators()
for i = 1, #cid do
if cid[i]:ID() == Self.TargetID() then
TargetName = cid[i]:Name()
break
else
TargetName = 0
end
end
return TargetName
end
Module.New("Wand switcher", function()
Target = getTargetName()
if Target == Target1 and Self.Weapon().id ~= Wand1ID then
Self.Equip(Wand1, "weapon")
elseif Target == Target2 and Self.Weapon().id ~= Wand2ID then
Self.Equip(Wand2, "weapon")
elseif Target == Target3 and Self.Weapon().id ~= Wand3ID then
Self.Equip(Wand3, "weapon")
end
wait(1000)
end)