domingo, 5 de junho de 2011

Trocar BOH/Soft Boots

Colocar Soft Boots ou Boh:
serve para alternar entre Soft Boots e BOH. Lembrando que se você quiser editar a porcentagem de mana para por/tirar a soft, é só você ler o script que eu dei uma editada na parte que você precisa mudar.
init start
    local softequip
,softunequip
    local softid 
= 6529
    local softuseid 
= 3549
    local wornsoftid 
= 6530
    local bootsid 
= 'boots of haste'
    
local alertifnosoft = true
    local soundfile 
= 'monster.wav'
    
if type(bootsid) == 'string' then bootsid = itemid(bootsid) end
init end
if softequip == nil then
    softequip 
= math.random(65,80) --porcentagem de mana pra por a soft boots
end
if softunequip == nil then
    softunequip 
= math.random(85,95) --porcentagem de mana pra equipar a boh denovo
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

Nenhum comentário:

Postar um comentário