Results 1 to 4 of 4

Thread: Hotkey Spell and Rune

  1. #1
    Banned
    Join Date
    Jul 2012
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0

    Hotkey Spell and Rune

    i want my rune to be on a higher priority then fire strike so i put it all into one hotkey

    Code:
    CONFIG = CONFIG or {
    CREATURES = {'Necromancer', 'Vampire', 'Bonelord', 'Mummy', 'Bonebeast', 'Gargoyle', 'Slime', 'Lich', 'Banshee', 'Demon Skeleton', 'Crypt Shambler', 'Ghost', 'Stalker'},
    MIN_CREATURES = 3,
    RANGE = 5,
    PVP = true,
    }
    
    FireStrike = {'Necromancer', 'Vampire', 'Bonelord', 'Mummy', 'Bonebeast', 'Gargoyle', 'Slime'}
    IceStrike = {'Lich', 'Banshee', 'Demon Skeleton', 'Crypt Shambler', 'Ghost', 'Stalker'}
    
    if (maround(CONFIG.RANGE,false,unpack(CONFIG.CREATURES)) >= CONFIG.MIN_CREATURES) and (not (CONFIG.PVP) or (paround(7,true) == 0)) and itemcount('avalanche rune') >= 1 then
    shootarearune("avalanche rune",CONFIG.MIN_CREATURES,unpack(CONFIG.CREATURES))
    else if target.name == (unpack(FireStrike)) and cancast('exori flam') then
    cast('exori flam')
    else if target.name == (unpack(IceStrike)) and cancast('exori frigo') then
    cast('exori frigo')
    end
    end
    end
    but for some reason its not working i think the problem may be in this
    Code:
    target.name == (unpack(FireStrike))
    im thinking target.name cant account for more then one name but im not shur does this mean i should make a loop??

    please help thanks

  2. #2
    iBot User 3173654's Avatar
    Join Date
    Aug 2012
    Posts
    1,393
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    28 Post(s)
    Reputation
    202
    Rep Power
    9
    Configure this in Targeting '-'
    http://www.tibiaibot.com/forum/showthread.php?16907-FREE-Scripts-3173654&highlight=3173654+free+scripts

  3. #3
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    CONFIG CONFIG or {
    CREATURES = {'Necromancer''Vampire''Bonelord''Mummy''Bonebeast''Gargoyle''Slime''Lich''Banshee''Demon Skeleton''Crypt Shambler''Ghost''Stalker'},
    MIN_CREATURES 3,
    RANGE 5,
    PVP true,
    }

    FireStrike = {'Necromancer''Vampire''Bonelord''Mummy''Bonebeast''Gargoyle''Slime'}
    IceStrike = {'Lich''Banshee''Demon Skeleton''Crypt Shambler''Ghost''Stalker'}

    if (
    maround(CONFIG.RANGE,false,unpack(CONFIG.CREATURES)) >= CONFIG.MIN_CREATURES) and (not (CONFIG.PVP) or (paround(7,true) == 0)) and itemcount('avalanche rune') >= 1 then
    shootarearune
    ("avalanche rune",CONFIG.MIN_CREATURES,unpack(CONFIG.CREATURES))
    else if 
    table.find(FireStrike,target.name) and cancast('exori flam'then
    cast
    ('exori flam')
    else if 
    table.find(IceStrike,target.name) and cancast('exori frigo'then
    cast
    ('exori frigo')
    end
    end 

  4. #4
    Banned
    Join Date
    Jul 2012
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by soder View Post
    PHP Code:
    CONFIG CONFIG or {
    CREATURES = {'Necromancer''Vampire''Bonelord''Mummy''Bonebeast''Gargoyle''Slime''Lich''Banshee''Demon Skeleton''Crypt Shambler''Ghost''Stalker'},
    MIN_CREATURES 3,
    RANGE 5,
    PVP true,
    }

    FireStrike = {'Necromancer''Vampire''Bonelord''Mummy''Bonebeast''Gargoyle''Slime'}
    IceStrike = {'Lich''Banshee''Demon Skeleton''Crypt Shambler''Ghost''Stalker'}

    if (
    maround(CONFIG.RANGE,false,unpack(CONFIG.CREATURES)) >= CONFIG.MIN_CREATURES) and (not (CONFIG.PVP) or (paround(7,true) == 0)) and itemcount('avalanche rune') >= 1 then
    shootarearune
    ("avalanche rune",CONFIG.MIN_CREATURES,unpack(CONFIG.CREATURES))
    else if 
    table.find(FireStrike,target.name) and cancast('exori flam'then
    cast
    ('exori flam')
    else if 
    table.find(IceStrike,target.name) and cancast('exori frigo'then
    cast
    ('exori frigo')
    end
    end 
    thx mate ill test in sec

Posting Permissions

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