Results 1 to 6 of 6

Thread: Cast 'X' spell if X standtime - script request

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

    Post Cast 'X' spell if X standtime - script request

    I'm playing on a Hardcore-PvP server and I bot with exori scripts, which often causes PZ (red battlesign).
    I'm requesting a script that prevents the bot getting trapped by monsters in open field (on way to spawn),
    by simply casting 'exori mas' if standtime is higher then 30 seconds, and there is more then 1 monster around.
    It also gets stuck outside depot, as there is monsters around while he got pz trying to enter.
    All kind of help appreciated, thanks.
    - Axemaster -

  2. #2
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Code:
    if (standtime >= 30000) and (maround(5) > 1) and (cancast("exori mas")) then
    cast("exori mas")
    end

  3. #3
    iBot User
    Join Date
    Jun 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    5
    Thanks, I'll test it! Moment.

  4. #4
    iBot User
    Join Date
    Jun 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    5
    Edited: (maround(5) > 1) to (maround(5) > 0).
    Worked perfectly, thanks alot!

    Code:
    if (standtime >= 30000) and (maround(5) > 0) and (cancast("exori mas")) then
    cast("exori mas")
    end

  5. #5
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Quote Originally Posted by Axemaster View Post
    (...) more then 1 monster around (...)
    So you should write more than 0 monsters around

  6. #6
    Normal User catok's Avatar
    Join Date
    Jan 2013
    Location
    Sweden
    Posts
    94
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    4
    Quote Originally Posted by Axemaster View Post
    Edited: (maround(5) > 1) to (maround(5) > 0).
    Worked perfectly, thanks alot!

    Code:
    if (standtime >= 30000) and (maround(5) > 0) and (cancast("exori mas")) then
    cast("exori mas")
    end
    I know it's already solved. But here is an ANTI-Red skull version i'll make just for fun:

    Lua Code:
    --[[ Anti-trap by catok v1.0.0
         Status: Works
         Last update: 2014-02-15
    ]]--
     
    -- Cast spell after how long? (1000 = 1 second)
    local ST = (25000)
     
    -- Cast what spell?
    local cleanSpell = ("exori mas")
     
    -- How much mana does the spell cost?
    local manaSpell = (160)
     
    -- Cast spell after player leaves screen (1000 = 1 second)
    local playerSeen = (5000)
     
    -- Action:
    if (standtime >= ST) and (pzone == (false)) and (maround(5, false) == 0) and (paround(10, false) == 0) and (mp >= manaSpell) and (lasttimeplayeronscreen >= playerSeen)
    then (cast(cleanSpell))
    end


    You can edit that very easily aswell in the action
    Last edited by catok; 02-15-2014 at 01:08 AM.
    Hard Working Scripter



    My Free Scripts:

    Knight
    EK - Mutated Mountains 50+ (option to hunt any tower)

Posting Permissions

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