Signup Now
Results 1 to 2 of 2
  1. #1
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,440
    Reputation
    283
    Rep Power
    27

    Smart(?) Healing

    Smart(?) Healing


    Description

    Changes the healing condition based on creatures around the amount of specific creatures around you.


    Configuration

    Edit the creatures, minCreatures, rulePath, defaultValue and safeValue variables on the init block; details are given in the code itself.


    Code

    init start
    -- local SCRIPT_VERSION = '1.0.0'

    -- Creatures counted; empty array means any creature
    local creatures = {'Serpent Spawn', 'Hydra'}

    -- Minimum amount of creatures to change heal rule
    local minCreatures = 1

    -- The full path to the heal rule to be changed
    local rulePath = 'SpellHealer/Rules/NewHealRule'

    -- The value for when there are less creatures on screen then what was set
    -- up on `minCreatures` variable. NOTE: This is a range; eg: {50, 55} means
    -- '50 to 55'.
    local defaultValue = {50, 55}

    -- The value for when there are at least the same amount of creatures on
    --screen then what was set up on `minCreatures` variable. NOTE: This is a
    -- range; eg: {90, 95} means '90 to 95'.
    local safeValue = {90, 95}

    -- DO NOT EDIT BELOW THIS LINE --
    table.lower(creatures)
    rulePath = string.finish(rulePath, '/ConditionValue')

    init end

    auto(100)
    local value = tern(maround(creatures) < minCreatures, defaultValue, safeValue)
    set(rulePath, ('%d x %d'):format(value[1], value[2]))

    Git
    Last edited by Raphael; 04-26-2014 at 08:48 PM.
    RaphSeller
    PayPal Instantaneous Reseller


    raphseller.com

  2. #2
    Free User
    Join Date
    May 2014
    Posts
    17
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Raphael View Post
    Smart(?) Healing


    Description

    Changes the healing condition based on creatures around the amount of specific creatures around you.


    Configuration

    Edit the creatures, minCreatures, rulePath, defaultValue and safeValue variables on the init block; details are given in the code itself.


    Code

    init start
    -- local SCRIPT_VERSION = '1.0.0'

    -- Creatures counted; empty array means any creature
    local creatures = {'Serpent Spawn', 'Hydra'}

    -- Minimum amount of creatures to change heal rule
    local minCreatures = 1

    -- The full path to the heal rule to be changed
    local rulePath = 'SpellHealer/Rules/NewHealRule'

    -- The value for when there are less creatures on screen then what was set
    -- up on `minCreatures` variable. NOTE: This is a range; eg: {50, 55} means
    -- '50 to 55'.
    local defaultValue = {50, 55}

    -- The value for when there are at least the same amount of creatures on
    --screen then what was set up on `minCreatures` variable. NOTE: This is a
    -- range; eg: {90, 95} means '90 to 95'.
    local safeValue = {90, 95}

    -- DO NOT EDIT BELOW THIS LINE --
    table.lower(creatures)
    rulePath = string.finish(rulePath, '/ConditionValue')

    init end

    auto(100)
    local value = tern(maround(creatures) < minCreatures, defaultValue, safeValue)
    set(rulePath, ('%d x %d'):format(value[1], value[2]))

    Git
    boa noite Raphael, seguinte to com problema num script que ele começa desativar o heal sozinho, andei olhando, e queria ver se consigo resolver o problema botando um persistente heal, mas nao tenho nem ideia de como fazer,procurei no forum e achei esse seu post, eu caço dl na poi, ms lvl 170, qual configuraçao de heal vc poderia me indicar??
    teria uma ideia dessas boa tuas??

 

 

Posting Permissions

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