@Sea
Yes, everything that is above the line === is editable and many times I do not enter the game to check, so I put the wand ID option
@Sea
Yes, everything that is above the line === is editable and many times I do not enter the game to check, so I put the wand ID option
Hello, brother this script is amazing, but for me have a problem.I change to use diamond arrown with 1 monster, when equip de diamond arrown after equip again the crystalline arrown and don't attack with diamond... have a fix it ?
If you use it whenever you have diamond arrow it is simpler.
test...
auto(800)
local ChangeAmmo = true
local CreateAmmo = true
local BpOldAmmo = "zaoan chess box"
local OldAmmo = "crystalline arrow"
local BpNewAmmo = "brocade backpack"
local NewAmmo = 25757 --id --> arrow (25757) bolt (25758)
local Sections = {"Hunt"} --{"Hunt"} or {"Floor 1", "Floor 2"}
--===================================
local function NewAmmoType()
if NewAmmo == 25757 then
newammo = 'exevo gran con hur'
elseif NewAmmo == 25758 then
newammo = 'exevo gran con vis'
end
return newammo
end
if $connected then
if table.find(Sections, $wptsection) then
if CreateAmmo then
if cancastspell(NewAmmoType()) then
castspell(NewAmmoType())
wait(300,500)
end
end
if ChangeAmmo then
if itemcount(NewAmmo, BpNewAmmo) > 0 then
if itemcount(NewAmmo, 'belt') <= 0 then
equipitem(NewAmmo, 'belt', 100)
wait(300,500)
end
elseif windowcount(BpTiems) == 1 and itemcount(NewAmmo) == 0 and not cancastspell(NewAmmoType()) and itemcount(OldAmmo, BpOldAmmo) > 0 then
if itemcount(OldAmmo, 'belt') <= 0 then
equipitem(OldAmmo, 'belt', 100)
wait(300,500)
end
end
end
else
if itemcount(OldAmmo, BpOldAmmo) > 0 then
if itemcount(OldAmmo, 'belt') <= 0 then
equipitem(OldAmmo, 'belt', 100)
wait(300,500)
end
end
end
end
@Cisco i will to test after and reports you
Now I understand.
test...
auto(800)
local ChangeNew = true
local CreateNew = true
local BpItems = "zaoan chess box"
local NormalWeapon = "crystalline arrow"
local NewWand = 25757 --id
local Sections = {"Hunt"} --{"Hunt"} or {"Floor 1", "Floor 2"}
local ConsiderMonster = true
local Monsters = {"name 1", "name 2"}
local MonstersAround = 2
--===================================
local CheckMonster = getarearunetile(false, unpack(Monsters))
if $connected then
if table.find(Sections, $wptsection) then
if CreateNew then
if cancastspell('exevo gran mort') and (windowcount(BpItems) == 1 and itemcount(NewWand) == 0) then
castspell('exevo gran mort')
wait(300,500)
end
end
if ChangeNew then
if ConsiderMonster then
if CheckMonster.amount >= MonstersAround then
if itemcount(NewWand, BpItems) > 0 then
equipitem(NewWand, 'rhand')
wait(300,500)
elseif itemcount(NewWand, BpItems) == 0 and itemcount(NormalWeapon, BpItems) > 0 then
equipitem(NormalWeapon, 'rhand')
wait(300,500)
end
elseif CheckMonster.amount < MonstersAround and table.find(Monsters, $attacked.name) == 0 then
if itemcount(NormalWeapon, BpItems) > 0 then
equipitem(NormalWeapon, 'rhand')
wait(300,500)
end
end
else
if itemcount(NewWand, BpItems) > 0 then
equipitem(NewWand, 'rhand')
wait(300,500)
elseif windowcount(BpTiems) == 1 and itemcount(NewWand) == 0 and itemcount(NormalWeapon, BpItems) > 0 then
equipitem(NormalWeapon, 'rhand')
wait(300,500)
end
end
end
else
if itemcount(NormalWeapon, BpItems) > 0 then
equipitem(NormalWeapon, 'rhand')
wait(300,500)
end
end
end