Results 1 to 6 of 6

Thread: Strike Action

  1. #1
    Normal User
    Join Date
    Jul 2012
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    6
    Rep Power
    0

    Strike Action

    I would need help with making an action to shoot strikes in sync with wand attacks. It should be able to choose from multiple spells & perhaps even creature count/hppc.
    But first I would need a simple one with just exori vis & exori gran vis after attacking with wand.
    Till now I was using the script:
    local SPELL = "exori vis"
    local CREATURES = {"Nightstalker"}

    local MESSAGES = getnewmessages("Server Log")
    local MESSAGES_QUANTITY = MESSAGES.count - 1
    if (target.id > 0) and (target.dist <= 3) and (table.find(CREATURES,target.name)) then
    for INDEX = 0, MESSAGES_QUANTITY do
    if (MESSAGES[MESSAGES_QUANTITY - INDEX].text:find("A nightstalker loses (.+) hitpoints due to your attack.")) then
    if cancast(SPELL) then
    cast(SPELL)
    end
    end
    end
    end

    which was provided by Soder I think, but it only supports single spells.

  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
    Waste of effort. It more or less does anyway, just misses some because you're walking around trying to keep distance.

  3. #3
    Normal User
    Join Date
    Jul 2012
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    6
    Rep Power
    0
    The action I pasted does a lot more for me than the built-in targeting system ever could and I've gotten 1-2 times skulled since then with the action whereas I constantly get skulled with using the built-in targeting.(No, enabling safe spells when player on screen doesnt work because in that case I could just be easily wasted).

  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
    Why dont you just create extra actions and change the name/spell to suit, it uses cancast so its not going to conflict.
    Last edited by pink_panther; 11-15-2012 at 01:28 AM.

  5. #5
    Normal User
    Join Date
    Jul 2012
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    6
    Rep Power
    0
    You mean one with "exori gran vis" and the other with "exori vis"? Won't there be a conflict between the 2 actions then?

  6. #6
    Normal User Balbek's Avatar
    Join Date
    May 2012
    Location
    LDZ
    Posts
    554
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    84
    Rep Power
    6
    if theres a cancast() function, there will be no conflict

Posting Permissions

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