Hello,
I improved the code for the locks to put their soulstone on toons with resurection spells:
First look for "Rezzers" :
function RezzersInGroup()
local rezzers={}
if UnitInRaid("player") then
for i=1,GetNumRaidMembers() do
local name,rank,subgroup,level,class,fileName,zone,online,isdead=GetRaidRosterInfo(i)
if (class=="Shaman" or class=="Priest" or class=="Druid" or class=="Paladin") then table.insert(rezzers,name) end
end
else
local name,realm=UnitName("player")
if UnitClass("player")=="Priest" or UnitClass("player")=="Paladin" then table.insert(rezzers,name) end
for i=1,4 do
class=UnitClass("party"..i)
local name,realm=UnitName("party"..i)
if (class=="Shaman" or class=="Priest" or class=="Druid" or class=="Paladin") then table.insert(rezzers,name) end
end
end
if TableLength(rezzers)==0 then
return nil
else
return(rezzers[math.random(TableLength(rezzers))])
end
end
then In "function lock_setup(demontype)" add those lines
local rezzers=RezzersInGroup()
if rezzers and not buffed("Soulstone","player") then
if HasItem("Major Soulstone")==0 and NumShards()>0 then CastSpell(SpellNum("Create Soulstone (Major)"),BOOKTYPE_SPELL) end
TargetByName(rezzers)
use("Major Soulstone")
end
Okay, haven't got it in yet, probably next week soonest, skiing this weekend.