Author Topic: crossheal - multi-cleint  (Read 3311 times)

0 Members and 1 Guest are viewing this topic.

Offline HitechsTopic starter

  • Full Member
  • ***
  • Posts: 116
  • Activity:
    0%
  • Reputation Power: 2
  • Hitechs has no influence.
  • Respect: +28
  • Referrals: 1
    • View Profile
crossheal - multi-cleint
« on: April 26, 2017, 09:09:56 PM »
0
Someone asked for this so i fig i post it .......

this the small part that i use to cross heal my chrs ... it got broken before when i rewrote script to lower line count.
so i re wrote it a little, so maybe someone can find it useful

it crossheals my 5 chrs on rebirth and 3 chrs on lexia ... and should be easy to edit or add to any script

If you have ideas to make it better / faster or issues ... please post feedback or findings




Code: [Select]
nameSpace global master
set !healHP 90 ;--- hp to start healing

if #shard = xxxxx ;-- shard name
   {
   set !masterchr xxx     ; main chr , the one others follow and cast corpse skin/debuffs ect..
   set !wayToRez lexia    ; rez with armor on already
   set !pet_1 xxxx        ; pet1 id or #false for no pet  ;--- only used to heal / cure pets or friends
   set !pet_2 xxxx        ; pet2 id or #false for no pet  ;--- only used to heal / cure pets or friends
  ; ---- * chr id's only used for crosshealing / xheal * ----
   set !chrsToHeal 3      ;-- number of slave chrs to crossheal / running slave script
   set !ChildSlave_1 xxxx ;-- master chr id
   set !ChildSlave_2 xxxx ;-- slave charater ID
   set !ChildSlave_3 xxxx ;-- slave charater ID
   }

if #shard = RebirthUo
   {
   set !masterchr UBJMB    ; main chr , the one others follow and cast corpse skin/debuffs ect..)
   set !wayToRez rebirth   ; rez with no armor and death robe
   set !pet_1 bovp         ; pet1 id or #false for no pet  ;--- only used to heal / cure pets or friends
   set !pet_2 #false       ; pet2 id or #false for no pet  ;--- only used to heal / cure pets or friends
  ; ---- rebirth chrs ---- ; * chr id's only used for crosshealing /xheal *
   set !chrsToHeal 5       ;-- number of chrs to crossheal
   set !ChildSlave_1 UBJMB ;-- master chr
   set !ChildSlave_2 PTUMB ;-- lowtech - slave charater ID
   set !ChildSlave_3 UXVMB ;-- hitech -slave charater ID
   set !ChildSlave_4 RGWMB ;-- tech - slave charater ID
   set !ChildSlave_5 UVXMB ;-- slave charater ID
   }
if #shard = Alexandria
   {
   set !masterchr WADU     ; main chr , the one others follow and cast corpse skin/debuffs ect..)
   set !wayToRez lexia     ; rez with armor on already
   set !pet_1 NSYS         ; pet1 id or #false for no pet  ;--- only used to heal / cure pets or friends
   set !pet_2 LOTM         ; pet2 id or #false for no pet  ;--- only used to heal / cure pets or friends
   ; ---- lexia chrs ----- ; * chr id's only used for crosshealing *
   set !chrsToHeal 3       ;-- number of chrs to crossheal
   set !ChildSlave_1 WADU  ;--- master chr
   set !ChildSlave_2 JWHR  ;-- slave charater ID
   set !ChildSlave_3 NSHCD ;-- slave charater ID
   }

start:
gosub crossHealing

goto start


sub crossHealing   ;---------------------- crosshealing sub ---------------------
for %aa 1 !chrsToHeal ;-- check life of chrs
      {
      if #charid = !ChildSlave_ . %aa
          {
           if #hits < !healHP
                set !Lheal_ . %aa #true
           else
                set !Lheal_ . %aa #false
          }
      }
for %bb 1 !chrsToHeal   ;-- heal each chr if need be
      {
       if #CharGhost = YES
           return
       if !Lheal_ . %bb = #true && #CHARID <> !ChildSlave_ . %bb
          {
           set #ltargetid !ChildSlave_ . %bb
           set #ltargetkind 1
           for %h 1 2 ;-- heal 2 times
                {
                 event macro 15 3  ; small heal
                 target 2s
                 event macro 22
                }
           }
      }
return
« Last Edit: April 26, 2017, 09:11:29 PM by Hitechs »

Offline HitechsTopic starter

  • Full Member
  • ***
  • Posts: 116
  • Activity:
    0%
  • Reputation Power: 2
  • Hitechs has no influence.
  • Respect: +28
  • Referrals: 1
    • View Profile
Re: crossheal - multi-cleint
« Reply #1 on: April 26, 2017, 09:21:09 PM »
0
Here a vid of me setting the vars like i just downloaded it and started testing on rebirth

https://www.youtube.com/watch?v=-2Cu6qtPrjk

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: crossheal - multi-cleint
« Reply #2 on: April 27, 2017, 04:04:11 AM »
0
Thx for sharing, I will have to test this snippet.    clean and small, I like the idea .   Will take me a few day to figure how to use it ;p

Tags: