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
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