Results 1 to 3 of 3

Thread: if equipped item x "then"! My action this not working! Help me!

  1. #1
    iBot User
    Join Date
    Feb 2012
    Posts
    37
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    10
    Rep Power
    5

    Question if equipped item x "then"! My action this not working! Help me!

    if weapon == "dagger" then
    setsettings("Settings\\Looting\\List\\longsword\\Destnation", "Backpack")
    else
    setsettings("Settings\\Looting\\List\\longsword\\Destination", 99)
    end

    if itemcount("longsword", "Backpack") >= 1 and weapon == "dagger" then
    moveitems("longsword", "Backpack", "weapon", 1)
    wait(500)
    end
    Scripter,
    and Tester.


    Atenciosamente,
    Ataulpho



    Scripts? Look here


  2. #2
    iBot User Chudson's Avatar
    Join Date
    Nov 2014
    Posts
    82
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    24 Post(s)
    Reputation
    57
    Rep Power
    3
    Lua Code:
     
    if ((weapon ~= 3272) and (itemcount(3272) < 1)) then
    setsettings("looting/list/rapier/destination","all")
    else setsettings("looting/list/rapier/destination", "moon backpack")
    end


    Lua Code:
     
    if ((weapon ~= 3272) and (itemcount(3272) > 0)) then
    moveitems(3272, "all", "weapon", 1)
    end


    Just change a weapon id (here its rapier) and loot path

  3. #3
    iBot User
    Join Date
    Feb 2012
    Posts
    37
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    10
    Rep Power
    5
    Thank Friend!!! Very Good!
    Scripter,
    and Tester.


    Atenciosamente,
    Ataulpho



    Scripts? Look here


Posting Permissions

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