Results 1 to 4 of 4

Thread: Action/Hotkey

  1. #1
    Normal User
    Join Date
    Feb 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Action/Hotkey

    Hi need something like that: When my character have less than 30%hp, he is changing weapon from knife to justice seeker and killing all mobs around? Is it possible to do?

  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
    Does it need to change targeting?


    PHP Code:
    local minHppc 30 -- % HP to equip strong weapon
    local safeHppc 
    80 -- % Hp to re-equip training weapon
    local trainingWeapon 
    "Knife" -- Training weapon
    local mainWeapon 
    "The Justice Seeker" -- Main weapon

    if hppc minHppc and weapon ~= itemid(mainWeaponthen
        moveitems
    (mainWeapon"all""weapon"1)
    elseif 
    hppc safeHppc and weapon ~= itemid(trainingWeaponthen
        moveitems
    (trainingWeapon"all""weapon"1)
    end 
    Last edited by pink_panther; 02-12-2013 at 09:12 AM.

  3. #3
    Normal User
    Join Date
    Feb 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Thanks!

    ... and killing all mobs around? - what with it?

  4. #4
    Normal User
    Join Date
    Feb 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Refresh

Posting Permissions

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