Results 1 to 3 of 3

Thread: About Soft Boots. Help

  1. #1
    Normal User
    Join Date
    Jan 2013
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    About Soft Boots. Help

    Hello,

    I need an action for soft boots, when full mana put off soft boots and put on boh, and when mana is lower than X put off boh and put on soft.

    The other action is for refill, when is worm soft boots go to label...

    and Check softs too.

    thanks.

  2. #2
    Normal User nemiks's Avatar
    Join Date
    Aug 2012
    Posts
    225
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    17
    Rep Power
    5
    try it,credits for sirmate

    Lua Code:
    local DEFAULT_BOOTS = 'boots of haste' --Name of normal boots
    local CONSIDER_TYPE = 1 --[[ 1 = mp pc, 2 = hp pc, 3 = mp exact, 4 = hp exact ]]
    local CONSIDER_EQUIP = {40, 90} -- Value to equip soft boots
    local CONSIDER_UNEQUIP = {99, 100} -- Value to unequip soft boots
     
    --[[ ENGINE ]]
    local SCRIPT_INFO = "Name: Soft Boots Changer/nVersion: 1.2.0 beta/nAuthor: sirmate"
    local NORMAL_BOOTS_ID = itemid(DEFAULT_BOOTS)
    local RANDOM_EQUIP = math.random(CONSIDER_EQUIP[1], CONSIDER_EQUIP[2])
    local RANDOM_UNEQUIP = math.random(CONSIDER_UNEQUIP[1], CONSIDER_UNEQUIP[2])
    local HP_MP_VALUES = {mppc, hppc, mp, hp}
     
    if (boots == 3549) and (pzone == true or HP_MP_VALUES[CONSIDER_TYPE] >= RANDOM_UNEQUIP) then
            if (itemcount(DEFAULT_BOOTS) > 0) then
                    moveitems(NORMAL_BOOTS_ID, "all", "Boots", 1)
                    wait(1100, 1200)
            else
                    moveitems(boots, "Boots", "all", 1)
                    wait(1000, 1200)
            end
    elseif (boots == 6530 or boots == 0) then
            if (HP_MP_VALUES[CONSIDER_TYPE] <= RANDOM_EQUIP) and (pzone == false) and (itemcount(6529) > 0) then
                    moveitems(6529, "all", "Boots", 1)
                    wait(1000, 1200)
            elseif (itemcount(NORMAL_BOOTS_ID) > 0) then
                    moveitems(NORMAL_BOOTS_ID, "all", "Boots", 1)
                    wait(1000, 1200)
            elseif (boots > 0) then
                    moveitems(boots, "Boots", "all", 1)
                    wait(1000, 1200)
            end
    elseif (boots == NORMAL_BOOTS_ID) and (HP_MP_VALUES[CONSIDER_TYPE] <= RANDOM_EQUIP) and (pzone == false) and (itemcount(6529) > 0) then
            moveitems(6529, "all", "Boots", 1)
            wait(1000, 1200)
    end
    Last edited by Furieri; 10-15-2014 at 12:52 PM.

  3. #3
    Normal User
    Join Date
    Jan 2013
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    works perfectly!!! thanks :*

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •