Results 1 to 7 of 7

Thread: Exori vis

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

    Exori vis

    Action which uses "Exori vis" on the target i'm attacking. I need this cause my bot has a problem with using attack spell when someone else attacked the creature i'm attacking.

  2. #2
    iBot User Canu13's Avatar
    Join Date
    Nov 2012
    Location
    Barcelona
    Posts
    273
    Mentioned
    21 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    39
    Rep Power
    5
    If you want to use exori vis on any target which the bot is attacking you should use this action:
    Lua Code:
    if target.id ~= 0 and cancast("exori vis") then
        cast("exori vis")
    end

    But if you want to just use in some specific creatures you should use this other:
    Lua Code:
    local monsters = {"Rat","Cave Rat"}
     
    if maround(3,unpack(monsters)) >= 1 and cancast("exori vis") then
        cast("exori vis")
    end

    Eli Scripts Last Releases Vocation
    New Water Elemental ED - MS
    Glooth Bandits x3 ED - MS
    Meriana Gargoyle Cave ED - MS
    Glooth Bandits x2 ED-MS

  3. #3
    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 Canu13 View Post
    If you want to use exori vis on any target which the bot is attacking you should use this action:
    Lua Code:
    if target.id ~= 0 and cancast("exori vis") then
        cast("exori vis")
    end

    But if you want to just use in some specific creatures you should use this other:
    Lua Code:
    local monsters = {"Rat","Cave Rat"}
     
    if maround(3,unpack(monsters)) >= 1 and cancast("exori vis") then
        cast("exori vis")
    end
    HAHAHAHA, maround() ? Imagine walking around spamming Exori Vis all over the place when rats are on screen. Who wants a skull?

    Your first action is ok...


    Use something like this:

    Lua Code:
    local monsterArray = {"Cave Rat", "Rat", "Your mum"}
    local strikeHppc = 15
    local strikeSpell = "Exori Flam"
     
    if target.id ~= 0 then
        for _, MONSTER in ipairs(monsterArray) do
            if MONSTER:lower() == target.name:lower() then
                if target.hppc > strikeHppc and cancast(strikeSpell) then
                    cast(strikeSpell)
                end
            end
        end
    end
    Last edited by pink_panther; 04-29-2014 at 11:38 PM.

  4. #4
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    Quote Originally Posted by pink_panther View Post
    HAHAHAHA, maround() ? Imagine walking around spamming Exori Vis all over the place when rats are on screen. Who wants a skull?

    Your first action is ok...


    Use something like this:

    Lua Code:
    local monsterArray = {"Cave Rat", "Rat", "Your mum"}
    local strikeHppc = 15
    local strikeSpell = "Exori Flam"
     
    if target.id ~= 0 then
        for _, MONSTER in ipairs(monsterArray) do
            if MONSTER:lower() == target.name:lower() then
                if target.hppc > strikeHppc and cancast(strikeSpell) then
                    cast(strikeSpell)
                end
            end
        end
    end
    You forgot target.dist and target.isshootable to make that action 100% safe

    Lua Code:
    local monsterArray = {"Cave Rat", "Rat", "Your mum"}
    local strikeHppc = 15
    local strikeSpell = "Exori Flam"
     
    if target.id ~= 0 then
        for _, MONSTER in ipairs(monsterArray) do
            if MONSTER:lower() == target.name:lower() then
                if target.hppc > strikeHppc and target.dist <= 3 and target.isshootable and cancast(strikeSpell) then
                    cast(strikeSpell)
                end
            end
        end
    end

  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 pink_panther View Post
    Use something like this:


    IE: not maround() for a strike spell

    Worse case scenario with maround() is a blackskull. Worse case with mine is you puff a lot :P
    Last edited by pink_panther; 04-30-2014 at 09:42 AM.

  6. #6
    iBot User Canu13's Avatar
    Join Date
    Nov 2012
    Location
    Barcelona
    Posts
    273
    Mentioned
    21 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    39
    Rep Power
    5
    Quote Originally Posted by pink_panther View Post


    IE: not maround() for a strike spell

    Worse case scenario with maround() is a blackskull. Worse case with mine is you puff a lot :P
    Yes, it's true I was really stoned when wroted it xD
    Anyways the first action shouldn't give problem to him, supposing it would be used for a low lvl script which only uses exori vis to all the targets like I supposed it would be for what he said.
    And also you're putting too much effort in this when probably his problem is just that he had player on screen security activated.

    Eli Scripts Last Releases Vocation
    New Water Elemental ED - MS
    Glooth Bandits x3 ED - MS
    Meriana Gargoyle Cave ED - MS
    Glooth Bandits x2 ED-MS

  7. #7
    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
    Hahaha, that too.

Posting Permissions

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