Log in

View Full Version : Druid Soft Boots



Elder' Mariusz
02-18-2016, 02:45 PM
Hiho guys

need scripts which will unequip soft boots to my main bp "red backpack" when mana is full, or when is more than 99%
and equip when is less than 99%

thanks if someone can help me

krille09
02-18-2016, 02:56 PM
search forum there should be plenty

Elder' Mariusz
02-18-2016, 05:16 PM
init start
local softequip,softunequip
local softid = 6529 --Soft Boots ID
local softuseid = 3549 --Soft Boots in use ID
local wornsoftid = 6530 --Used Soft Boots ID
local bootsid = 'boots of haste' --Boots to be weared ID or name
local alertifnosoft = true --true or false. Do you want it to play a sound if no softs was found?
local soundfile = 'monster.wav' --It is the file name
if type(bootsid) ~= 'number' then bootsid = itemid(bootsid) end
init end

if softequip == nil then
softequip = math.random(0,80) --Mana percent range to equip soft boots
end
if softunequip == nil then
softunequip = math.random(92,99) --Mana percent range to equip boots of haste back
end

auto(100) listas('dontlist')
if ($mppc <= softequip or ($feet.id == wornsoftid and itemcount(softid) > 0)) and not $pzone and $feet.id ~= softuseid then
equipitem(softid,'feet','backpack')
softequip = nil
wait(500,1000)
elseif ($mppc >= softunequip or ($feet.id == wornsoftid and itemcount(softid) == 0) or $pzone) and $feet.id ~= bootsid then
equipitem(bootsid,'feet','backpack')
softunequip = nil
wait(500,1000)
end
if $feet.id ~= softuseid and itemcount(softid) == 0 and itemcount(wornsoftid) > 0 and alertifnosoft then
playsound(soundfile)
end



Soft Boots - jeżeli masz x % HP załozy softy, zdejmie je gdy masz y % HP, lub jestes w pz i załozy BoHy

init start
local softequip,softunequip
local softid = 6529 --Soft Boots ID
local softuseid = 3549 --Soft Boots in use ID
local wornsoftid = 6530 --Used Soft Boots ID
local bootsid = 'boots of haste' --Boots to be weared ID or name
local alertifnosoft = true --true or false. Do you want it to play a sound if no softs was found?
local soundfile = 'monster.wav' --It is the file name
if type(bootsid) ~= 'number' then bootsid = itemid(bootsid) end
init end

if softequip == nil then
softequip = math.random(40,50) --Health percent range to equip soft boots
end
if softunequip == nil then
softunequip = math.random(85,95) --Health percent range to equip boots of haste back
end

auto(100) listas('dontlist')
if ($hppc <= softequip or ($feet.id == wornsoftid and itemcount(softid) > 0)) and not $pzone and $feet.id ~= softuseid then
equipitem(softid,'feet','backpack')
softequip = nil
wait(500,1000)
elseif ($hppc >= softunequip or ($feet.id == wornsoftid and itemcount(softid) == 0) or $pzone) and $feet.id ~= bootsid then
equipitem(bootsid,'feet','backpack')
softunequip = nil
wait(500,1000)
end
if $feet.id ~= softuseid and itemcount(softid) == 0 and itemcount(wornsoftid) > 0 and alertifnosoft then
playsound(soundfile)
end

I found it and it doesn't work help :<

error expected = near start lol ?