Results 1 to 6 of 6

Thread: Action Sync Spells and turn melee/Weapon/wand

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

    Question Action Sync Spells and turn melee/Weapon/wand



    init start
    local spell = 'Exori San' -- Desired spell local spell2 = 'Exori Con' local manapc = 60 -- Minimum amount of mana% to cast spell
    local range = 4 -- Spell range local range2 = 5
    init end

    spamrate(150,350)
    if (target.id > 0) and (mpperc >= manapc)and (hpperc >= 16) and (target.dist <= range) and target.isshootable and cancast(spell) then cast(spell) wait(cooldown('attack')) end if (target.id > 0) and (mpperc >= manapc)and (hpperc <= 15) and (target.dist <= range2) and target.isshootable and cancast(spell2)then cast(spell2)
    wait
    (cooldown('attack'))
    end





    Help me whats name variable to cooldown attack turn?




    atm my target only running range this monters and cast turn holy flash, stole turn/cooldown wepon

  2. #2
    Normal User Xardas's Avatar
    Join Date
    Jun 2012
    Posts
    58
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    17
    Rep Power
    5
    How about this?

    PHP Code:
    init start
       local spell 
    'Exori San' -- Desired spell
       local spell2 
    'Exori Con'
       
    local manapc 60 -- Minimum amount of manato cast spell 
       local range 
    -- Spell range
       local range2 

    init end 

    spamrate
    (150,350
    if (
    target.id 0) and (mpperc >= manapc) and (hpperc >= 16) and (target.dist <= range) and target.isshootable and cancast(spellthen
       wait
    (200,300)
       
    cast(spell)
    end
    if (target.id 0) and (mpperc >= manapc)and (hpperc <= 15) and (target.dist <= range2) and target.isshootable and cancast(spell2then
       wait
    (200,300)
       
    cast(spell2)
    end 

  3. #3
    Normal User
    Join Date
    Mar 2012
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    Quote Originally Posted by Xardas View Post
    How about this?

    PHP Code:
    init start
       local spell 
    'Exori San' -- Desired spell
       local spell2 
    'Exori Con'
       
    local manapc 60 -- Minimum amount of manato cast spell 
       local range 
    -- Spell range
       local range2 

    init end 

    spamrate
    (150,350
    if (
    target.id 0) and (mpperc >= manapc) and (hpperc >= 16) and (target.dist <= range) and target.isshootable and cancast(spellthen
       wait
    (200,300)
       
    cast(spell)
    end
    if (target.id 0) and (mpperc >= manapc)and (hpperc <= 15) and (target.dist <= range2) and target.isshootable and cancast(spell2then
       wait
    (200,300)
       
    cast(spell2)
    end 

    there is cooldown time turn weapon?
    sorry i don't look this variable..
    thx

  4. #4
    Normal User Xardas's Avatar
    Join Date
    Jun 2012
    Posts
    58
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    17
    Rep Power
    5
    just added wait(200,300) before casting spell (time for weapon)
    there is no variable for weapon time, so if it wont work, just try wait(300,400), then wait(400,500) etc

  5. #5
    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
    Quote Originally Posted by Xardas View Post
    How about this?

    PHP Code:
    ***Garbage conversion removed*** 
    Init isnt used, spamrate isnt used. mpperc and manapc dont exist, wtf are you doing mate?

    Quote Originally Posted by Xardas View Post
    just added wait(200,300) before casting spell (time for weapon)
    there is no variable for weapon time, so if it wont work, just try wait(300,400), then wait(400,500) etc
    Global attack cooldown is 1 second.





    You can use this, but you cant sync spells with melee weapons or spears/assassin stars ect.

    PHP Code:
    local castSpell "Exori San"
    local spellRange -- "castSpell" spell range
    local castSpell2 
    "Exori Con"
    local spellMppc 60 -- Min mana to cast spells

    if target.id and mppc spellMppc and target.dist <= spellRange and target.isshootable and cancast(castSpellthen
        cast
    (castSpell)
    elseif 
    target.id and mppc spellMppc and target.isshootable and cancast(castSpellthen
        cast
    (castSpell2)
    end 

    Use search to find an action to sync with wands or bolts. I know Soder did one for bolts and i know one for wands exists somewhere.
    Last edited by pink_panther; 02-04-2013 at 02:56 AM.

  6. #6
    Normal User Xardas's Avatar
    Join Date
    Jun 2012
    Posts
    58
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    17
    Rep Power
    5
    Well, if you are not using this wait() bot misses mele often.
    I was doing that what he asked for (attacking after mele).
    Didn't want to edit whole action, coz it is action that he is st attacks.ill working on.
    Just wanted to show how to make it not missing a such many mele

Posting Permissions

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