Results 1 to 4 of 4

Thread: Easy help, small action

  1. #1
    Normal User
    Join Date
    Dec 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5

    Easy help, small action

    I want my soft boots changer to change to my normal boots when my soft goes worn. I tried this:

    PHP Code:
    changeboots 'prismatic boots'
    wornsoft 'worn soft boots'

    if boots ~= changeboots then 
          
    if itemcount(wornsoft) > 0 then 
        moveitems
    (changeboots,"all","boots",1
          
    end 
       end 
    theres prob alot of wrong stuff in there lol

  2. #2
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Lua Code:
    local NormalBoots = "prismatic boots"
     
    local CHANGE = {
        HP_EQUIP = 94,
        MP_EQUIP = 94,
        HP_UNEQUIP = 96,
        MP_UNEQUIP = 96,
    }
     
    local BOOTS = {
        SOFT = 6529,
        WORN = 6530,
        USED = 3549,
        NORMAL = itemid(NormalBoots),
    }
     
    if (pzone == false) and (hppc <= CHANGE.HP_EQUIP) and (mppc <= CHANGE.MP_EQUIP) and (boots ~= BOOTS.USED) and (_itemcount(BOOTS.SOFT, MainBP) > 0) and (lootbodies == false) then
        moveitems(BOOTS.SOFT, MainBP, "boots", 1)
        wait(1000)
    elseif ((pzone == true and (boots == BOOTS.WORN or boots == BOOTS.USED)) or (boots == BOOTS.WORN) or (hppc >= CHANGE.HP_UNEQUIP and mppc >= CHANGE.MP_UNEQUIP and boots == BOOTS.USED)) and (lootbodies == false) then
        if (boots == BOOTS.USED or boots == BOOTS.WORN) and (_itemcount(NormalBoots, MainBP) > 0) then
            moveitems(NormalBoots, MainBP, "boots", 1)
            wait(1000)
        elseif (boots == BOOTS.USED or boots == BOOTS.WORN) and (_itemcount(NormalBoots, MainBP) == 0) then
            moveitems(BOOTS.SOFT, "boots", MainBP, 1)
            wait(1000)
        end
    end
     
    if (boots == 0) and (_itemcount(NormalBoots, MainBP) > 0) and (lootbodies == false) then
        moveitems(NormalBoots, MainBP, "boots", 1)
        wait(1000)
    end

  3. #3
    Normal User
    Join Date
    Dec 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    not working

  4. #4
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Where you paste it? Have something in debug log?

Posting Permissions

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