Signup Now
Results 1 to 6 of 6
  1. #1
    Free User
    Join Date
    Dec 2013
    Posts
    43
    Reputation
    10
    Rep Power
    0

    Rod To Weapon Changer

    I made this up for my low level druid when he gets low on mana
    hope someone else finds this useful


    --Rod to Weapon Changer
    local Rod = 3070 -- Id of Rod
    local Sword = 3271 -- Id of Weapon

    auto(1000)
    if ($mppc < 40 and $rhand.id == Rod) then --at less than 40% mana changes to weapon
    equipitem('Sword', 'rhand') wait(200, 300)
    elseif ($mppc > 55 and $rhand.id == Sword) then -- at more than 55% mana it changes back to rod
    equipitem('Rod', 'rhand') wait(200, 300)
    end


    and I put it in cavebot scripts (for our newer members)
    Last edited by Leonardo; 01-15-2014 at 05:57 PM.

  2. #2
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Did it worked for you ?

    Because it's wrong

    $mppc < 40 and $rhand.id == 'Rod'

    It's not the same as:

    $mppc < 40 and $rhand.id == Rod

    Notice the quotes are wrong for this occasion.

  3. #3
    Free User
    Join Date
    Dec 2013
    Posts
    43
    Reputation
    10
    Rep Power
    0
    yes it seemed to work but I didn't try it very long
    I made the changes you pointed out and its working
    thanks

    --Rod to Weapon Changer
     local Rod = 3070 -- Id of Rod
    local Sword = 3271 -- Id of Weapon

    auto(1000)
    if ($mppc < 30 and $rhand.id == Rod) then
    equipitem(Sword, 'rhand') wait(200, 300)
    elseif
    ($mppc > 45 and $rhand.id == Sword) then
    equipitem(Rod, 'rhand') wait(200, 300)
    end
    Last edited by bushman; 01-15-2014 at 10:55 PM.

  4. #4
    Free User
    Join Date
    Feb 2014
    Posts
    11
    Reputation
    10
    Rep Power
    0
    Hi Can you change this script ? When character change rod to sword will be attacking monster on full attack and when change sword to rod will be attacking monster on full defence?

    Ok I've done !

    auto(1000)
    if $mppc < 30 and $rhand.id == 8083 then
    equipitem(3297, 'rhand') setattackmode('offensive', 'chase') wait(200, 300)
    elseif
    $mppc > 45 and $rhand.id == 3297 then
    equipitem(8083, 'rhand') setattackmode('defensive', 'chase') wait(200, 300)
    end

    local close = {}
    foreach creature m 'ms' do
    if m.dist < 2 then
    table.insertsorted(close, m, {{'hppc', 'asc'}})
    end
    end
    Last edited by Yate; 02-22-2014 at 08:43 PM.

  5. #5
    Banned
    Join Date
    Feb 2014
    Location
    Leetstreet
    Posts
    324
    Reputation
    38
    Rep Power
    0
    Awesome to hear you solved it yourself, that's the way you learn!

  6. #6
    Free User
    Join Date
    Nov 2014
    Posts
    7
    Reputation
    10
    Rep Power
    0
    really nice! but bro...if im paladin, how can i change meele to spears?
    i've tried this one but doesn't work:

    local Spear = 3277 -- Id of Spear
    local Sword = 3271 -- Id of Weapon

    auto(1000)
    if itemcount(3277) < 2 and $rhand.id == Spear then
    equipitem(Sword, 'rhand') wait(200, 300)
    elseif
    itemcount(3277) > 10 and $rhand.id == Sword) then
    equipitem(Spear, 'rhand') wait(200, 300)
    end
    Last edited by bobbyzao; 11-06-2014 at 03:23 AM. Reason: wrong quote

 

 

Posting Permissions

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