Angel/Daemon Presences (svo)

Demon Presences Open 

^You bid your Baalzadeen to seek out life presences nearby.$ [perl regex, fire length 20]
presences_list = {}
Baalzadeen Sense

^Your Baalzadeen senses (\w+) at (.+?)\, [perl regex, fire length 0]
table.insert( presences_list, matches[2] )
closePresences

return isPrompt() (Lua function, fire length 0)

setTriggerStayOpen("Demon presences open", 0)
if (#presences_list > 0) then
local strNames = ""
for k,v in pairs(presences_list) do
strNames = strNames .. v .. " "
end
svo.cc(#presences_list.." non Mhaldorians in area: "..strNames)
end
Current output:
demon presences You bid your Baalzadeen to seek out life presences nearby. Your Baalzadeen senses Uvaell at The Scriptorium, on a health of 773 and a mana of 707. (23300, 31821) (Lothos, Mhaldor (Cathedral)) Your Baalzadeen senses Hasar at A massive gatehouse, on a health of 7515 and a mana of 7518. (30958) (Mhaldor) Your Baalzadeen senses Jhaeli at Narrow promenade, on a health of 3260 and a mana of 4622. (21542) (Mhaldor (Cathedral)) Your Baalzadeen senses Chiam at The gates of Mhaldor, on a health of 4587 and a mana of 4904. (11400) (Mhaldor) Your Baalzadeen senses Melodie at A massive gatehouse, on a health of 4878 and a mana of 6411. (30958) (Mhaldor) Your Baalzadeen senses Jurixe at A guardhouse, on a health of 3367 and a mana of 3757. (30938) (Mhaldor) Your Baalzadeen senses Saeva at The gates of Mhaldor, on a health of 7000 and a mana of 5276. (11400) (Mhaldor) Your Baalzadeen senses Sherazad at A massive gatehouse, on a health of 5004 and a mana of 5187. (30958) (Mhaldor) Your Baalzadeen senses Falthus at A massive gatehouse, on a health of 6658 and a mana of 5938. (30958) (Mhaldor) Your Baalzadeen senses Crixos at A massive gatehouse, on a health of 7350 and a mana of 7738. (30958) (Mhaldor) 5240h, 5373m, 21685e, 20200w cxkdb- (Party): You say, "10 non Mhaldorians in area: Uvaell Hasar Jhaeli Chiam Melodie Jurixe Saeva Sherazad Falthus Crixos." 5240h, 5373m, 21685e, 20200w cxkdb- (Party): You say, "10 non Mhaldorians in area: Uvaell Hasar Jhaeli Chiam Melodie Jurixe Saeva Sherazad Falthus Crixos." 5240h, 5373m, 21685e, 20200w cxkdb- (Party): You say, "10 non Mhaldorians in area: Uvaell Hasar Jhaeli Chiam Melodie Jurixe Saeva Sherazad Falthus Crixos." 5240h, 5373m, 21685e, 20200w cxkdb- (Party): You say, "10 non Mhaldorians in area: Uvaell Hasar Jhaeli Chiam Melodie Jurixe Saeva Sherazad Falthus Crixos." 5240h, 5373m, 21685e, 20200w cxkdb- (Party): You say, "10 non Mhaldorians in area: Uvaell Hasar Jhaeli Chiam Melodie Jurixe Saeva Sherazad Falthus Crixos."

My first born child* to the Rumpelstiltskin who spins this straw into gold. A big thanks to @Crixos for getting us this far.  

Comments

  •   local strNames = table.concat(presences_list, ", ")
    Simplifies it a bit. Concat is also way better :3

  • Just to add to it- you can manipulate the nameDB that SVO has, to check whether or not the people on the list are Mhaldorian or otherwise, and have it print separately for you.

Sign In or Register to comment.