Results 1 to 4 of 4

Thread: Action for changing items on paladin

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    29
    Rep Power
    5

    Action for changing items on paladin

    Hello,

    I need an action that when monster "name" appear on the screen then character gonna wear mycological bow.. when there is no mentioned monster on screen then it gonna wear magic sword and mastermind shield (this is more def than just mms, am I right?)
    When it's wearing bow and there is no mentioned monster it shouldn't change to mms + sov immediately. Let's say it should change after like 4seconds.

    Thanks in advance,

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    I didnt test this:


    PHP Code:
    local rangeWeapon "mycological bow" -- Weapon to requip when attacking considered monsters
    local meleeWeapon 
    "Shiny Blade" -- Weapon to use on everything else
    local meleeShield "Mastermind Shield" -- Shield to use when using melee weapon
    local monstersToConsider 
    = {"Your mother""Some othe monster""Etc"} -- List of monsters


    for 0,#monstersToConsider do
        
    if target.name == monstersToConsider[ithen
            
    if weapon ~= itemid(meleeWeaponthen
                moveitems
    (meleeWeapon"all""weapon"1)
                
    wait(600,1200)
            
    end
            
    if weapon == itemid(meleeWeapon) and shield ~= itemid(meleeShieldthen
                moveitems
    (meleeShield"all""shield"1)
                
    wait(600,1200)
            
    end
        
    else
            if 
    weapon ~= itemid(rangeWeaponthen
                moveitems
    (rangeWeapon"all""weapon"1)
                
    wait(600,1200)
            
    end
        end
    end 
    Last edited by soder; 12-11-2013 at 09:03 AM. Reason: corrected typo in code

  3. #3
    Normal User
    Join Date
    Aug 2012
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    29
    Rep Power
    5
    I tested it... and even if i try put manual shield + sov... it's changing to mycological bow immediately

  4. #4
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    ISnt that what it is supposed to do? use a bow, but change to Sov/MMS when you are attacking "monstersToConsider" ?

    IF you are not targeting those mosnters, it changes back to bow..

    Try this way

    PHP Code:
    local rangeWeapon "mycological bow" -- Weapon to requip when attacking considered monsters
    local meleeWeapon 
    "Shiny Blade" -- Weapon to use on everything else
    local meleeShield "Mastermind Shield" -- Shield to use when using melee weapon
    local monstersToConsider 
    = {"Your mother""Some othe monster""Etc"} -- List of monsters


    for 0,#monstersToConsider do
        
    if target.name == monstersToConsider[ithen
            
    if weapon ~= itemid(rangeWeaponthen
                moveitems
    (rangeWeapon"all""weapon"1)
                
    wait(600,1200)
            
    end
        
    else
            if 
    weapon ~= itemid(meleeWeaponthen
                moveitems
    (meleeWeapon"all""weapon"1)
                
    wait(600,1200)
            
    end
            
    if weapon == itemid(meleeWeapon) and shield ~= itemid(meleeShieldthen
                moveitems
    (meleeShield"all""shield"1)
                
    wait(600,1200)
            
    end
        end
    end 
    Last edited by pink_panther; 12-12-2013 at 02:57 AM.

Posting Permissions

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