Results 1 to 9 of 9

Thread: About ice strike not being hotkeyed when players are on screen

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5

    About ice strike not being hotkeyed when players are on screen

    Hi i need to know how I can make the ice strike on dragons hit when players are on screen. Possibly to do it to a certain HP %.

  2. #2
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    if paround(7) > 0 and target.name = "Dragon" and target.dist <= 3 and cancast("exori frigo") and mp > 20 and target.hppc > 50 then
    cast("exori frigo")
    wait(200, 400)
    end

    Will cast exori frigo on dragon if player is around and dragon's hp is over 50%

  3. #3
    Banned
    Join Date
    May 2012
    Location
    Rio de Janero - RJ / Canada
    Posts
    870
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    30
    Rep Power
    0
    Quote Originally Posted by walukasz View Post
    if paround(7) > 0 and target.name = "Dragon" and target.dist <= 3 and cancast("exori frigo") and mp > 20 and target.hppc > 50 then
    cast("exori frigo")
    wait(200, 400)
    end

    Will cast exori frigo on dragon if player is around and dragon's hp is over 50%
    the function cancast already includes the necessary mana and distance, so 'mp > 20' and 'target,dist <= 3' are not necessary

  4. #4
    Normal User
    Join Date
    Jun 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    going to try it out thanks bud <3

  5. #5
    Normal User
    Join Date
    Jun 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    copied it into set under actions, and enabled it doesnt seem to work when a player is on screen

    [[[ sec trying it again ]]]
    Last edited by justinc; 08-05-2012 at 05:43 PM.

  6. #6
    Normal User
    Join Date
    Jun 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Yeah it doesn't work =( Wonder why

  7. #7
    Normal User
    Join Date
    Jun 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Testing that one out now thanks for assisting me il tell you if it works when i catch a player on screen

  8. #8
    Normal User
    Join Date
    Jun 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Hmm it doesn't seem to work either. There was a spear scripts I couldn't get to work either that someone gave me... Possibly im inputting the scripts in wrong.

    The way I input the scripts is this. I click Actions, List > Press New. Action0 comes up, I press Script under the Action tab and input the script. Press Enabled : to Yes and in the action center I press the enable into Yes as well.

    Do I need to make the Setup: anything? Setupd: -Setup is what its currently at, by default.

    Unless that is not the correct place to put the script. Please tell me =)

  9. #9
    iBot User
    Join Date
    Jul 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by Ropiderz View Post
    Try this one, will attack Dragon with frigo, if have someone player on screen and its dist is minor than 3 it'll turn to the opposite direction and cast the strike.

    Code:
    local HPPC = {10, 100}
    local PLAYERS = getcreatures("ps")
    for INDEX = 1, #PLAYERS do
        if (target.dist <= 3 and target.hppc <= HPPC[2] and target.hppc >= HPPC[1] and cancast("exori frigo") and PLAYERS[INDEX].dist <= 3 and target.name == "Dragon") then
            if (PLAYERS[INDEX].posx - posx > 0) then
                turn("w")
            elseif (PLAYERS[INDEX].posx - posx < 0) then
                turn("e")
            elseif (PLAYERS[INDEX].posy - posy > 0) then
                turn("n")
            elseif (PLAYERS[INDEX].posy - posy < 0) then
                turn("s")
            end
            cast("Exori Frigo")
        end
    end
    i put Dragon in "ps"?

Posting Permissions

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