Results 1 to 5 of 5

Thread: whats wrong with this switch weaon

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5

    whats wrong with this switch weaon

    PHP Code:
    local sWeapon "steel axe"
    local bWeapon "sickle"

    if (maround(1) == 3) and weapon ~= itemid(bWeaponthen
    moveitems
    (sWeapon"all""weapon"1)
    wait(1000,1500)
    else
    if (
    maround(1) == 2) and weapon ~= itemid(sWeaponthen
    moveitems
    (bWeapon"all""weapon"1)
    wait(1000,1500)
    end
    end 
    want it to switch weapons when three monsters but when there is two stay with sickle.

  2. #2
    Normal User dragonicevo's Avatar
    Join Date
    May 2012
    Location
    canada
    Posts
    1,600
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    65
    Rep Power
    8
    put your local in setup mabay or setup up with id where bweapon is and remove id thing then local might work as well so try like this

    local sWeapon = "steel axe"
    local bWeapon = "sickle"

    if (maround(1) == 3) then
    moveitems(sweaponid, "all", "weapon", 1)
    wait(1000,1500)
    else
    (maround(1) == 2) then
    moveitems(bweaponid, "all", "weapon", 1)
    wait(1000,1500)
    end
    bweaponid is 3293
    sweaponid is 7773
    http://www.tibiaibot.com/forum/showt...2925#post42925 for basic setup for knight

    If i helped or you liked my scripts rep + me

    trusted free scripts by pink_panther and 3173654 and acid alchamy and marlhex and spens13

  3. #3
    iBot User
    Join Date
    Jun 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    PHP Code:
    local sWeapon "steel axe"
    local bWeapon "sickle"

    if (maround(1) > 2) and weapon ~= itemid(bWeaponthen
    moveitems
    (sWeapon"all""weapon"1)
    wait(1000,1500)
    elseif (
    maround(1) < 3) and weapon ~= itemid(sWeaponthen
    moveitems
    (bWeapon"all""weapon"1)
    wait(1000,1500)
    end 

  4. #4
    Normal User
    Join Date
    Jun 2012
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    neither way works. ty for help anyway guys.

  5. #5
    Normal User jesusz0r's Avatar
    Join Date
    Jun 2012
    Posts
    221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    17
    Rep Power
    5
    Code:
    local sWeapon = "steel axe"
    local bWeapon = "sickle"
    
    if (maround(1, false) > 2) and weapon ~= itemid(bWeapon) then
    moveitems(sWeapon, "all", "weapon", 1)
    wait(1000,1500)
    elseif (maround(1, false) < 3) and weapon ~= itemid(sWeapon) then
    moveitems(bWeapon, "all", "weapon", 1)
    wait(1000,1500)
    end

Posting Permissions

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