casting spam

geekatlrg

Active Member
Hello,

I am trying to do something that I think should be fairly simple but I have no idea where to start. I am currently using eq2bot for my boxed defiler on raid’s they would like me to /tell personA , /tell personB when I cast soul ward. So the other defilers do not waste there’s any idea how I might go upon accomplishing this?

thank you in advance.
 

bob_the_builder

Well-Known Member
Hello,

I am trying to do something that I think should be fairly simple but I have no idea where to start. I am currently using eq2bot for my boxed defiler on raid’s they would like me to /tell personA , /tell personB when I cast soul ward. So the other defilers do not waste there’s any idea how I might go upon accomplishing this?

thank you in advance.
Open the Defiler.iss file in the Class Routines directory.

Change line 1090 to this (as an example or make your own)

Code:
1089	call CastSpellRange 380 0 2 0 ${healtarget}
1090             eq2execute /raid ${healtarget} has been Soul Warded
I think it is odd that you would tell a person other than the other defilers if they were soul warded... how would the defilers know? Unless you mean your "personA" is the other defilers, if so then you would have to scan the raid and find the classes and use that for the tells... but just saying it in a heal channel I would think would be enough.

Anywas unless someone has a better idea this is as simple as I get...

Bob
 

geekatlrg

Active Member
Thank you for the response,

Yea they requested that I send a tell to the to the other defiler’s but… I am a rebel and I think announcing it in raid say is going to work just fine…

PS. I got another helpful response on IRC last night reposting it here for anyone ells trying to do the same thing or something similar.
http://isxeq2.twonk.net/paste/224250
 

Ragemage

Well-Known Member
When I saw this I thought OMG my duo partner (I play 3 toons he plays 3) wants me to spam when he gets Alacrity so to this:

if ${Me.Ability[${SpellType[398]}].IsReady}
{
BuffTarget:Set[${UIElement[cbBuffProcGroupMember@Class@EQ2Bot Tabs@EQ2 Bot].SelectedItem.Text}]

if ${Actor[${BuffTarget.Token[2,:]},${BuffTarget.Token[1,:]}](exists)}
call CastSpellRange 398 0 0 0 ${Actor[${BuffTarget.Token[2,:]},${BuffTarget.Token[1,:]}].ID}

}
I did:
{
BuffTarget:Set[${UIElement[cbBuffProcGroupMember@Class@EQ2Bot Tabs@EQ2 Bot].SelectedItem.Text}]

if ${Actor[${BuffTarget.Token[2,:]},${BuffTarget.Token[1,:]}](exists)}
call CastSpellRange 398 0 0 0 ${Actor[${BuffTarget.Token[2,:]},${BuffTarget.Token[1,:]}].ID}
eq2execute /g ${BuffTarget} has been given Alacrity
}
Then I noticed it was adding PC to the end of the person who got the buff (that can be ignored) but was casting it on the wrong person. It wasn't picking the person selected in the drop down. I checked the individual character File and it does have the right person set its just when executed its picking the MT for some reason and not the Wizzy its supposed to be cast on.

So my questions are: is
#1 how do i get it to stop saying PC
#2 Did I break the casting thing by adding that line (I never really paid attention who it cast it on just assumed that it was casting it on the right person)
#3 How do I fix the drop down to cast it on the right person and say it in chat?
 

Pygar

EQ2Bot Specialist
Code:
{
BuffTarget:Set[${UIElement[cbBuffAlacrityGroupMember@Class@EQ2Bot Tabs@EQ2 Bot].SelectedItem.Text}]

if ${Actor[${BuffTarget.Token[2,:]},${BuffTarget.Token[1,:]}](exists)}
{
   call CastSpellRange 398 0 0 0 ${Actor[${BuffTarget.Token[2,:]},${BuffTarget.Token[1,:]}].ID}
   eq2execute /g ${BuffTarget.Token[1,:]} has been given Alacrity
}
1 - The Token[] member will allow you to select the part before or after the :
2 - You needed the eq2execute grouped in {} after the if
3 - There was a bug in the script and it was casting alacrity on the person in the PROC drop down, notice I changed cbBuffProcGroupMember to AlacrityGroupMember.

Personally, I would just /tell the person it is cast on, unless you really think its important to make yourself seem important to your group...
 

geekatlrg

Active Member
Thank you for the response,

Yea they requested that I send a tell to the to the other defiler’s but… I am a rebel and I think announcing it in raid say is going to work just fine…

PS. I got another helpful response on IRC last night reposting it here for anyone ells trying to do the same thing or something similar.
http://isxeq2.twonk.net/paste/224250
update: i am useing the script http://isxeq2.twonk.net/paste/224250[/QUOTE] works good other than it says cast it on NULL
 

Ragemage

Well-Known Member
Code:
{
BuffTarget:Set[${UIElement[cbBuffAlacrityGroupMember@Class@EQ2Bot Tabs@EQ2 Bot].SelectedItem.Text}]

if ${Actor[${BuffTarget.Token[2,:]},${BuffTarget.Token[1,:]}](exists)}
{
   call CastSpellRange 398 0 0 0 ${Actor[${BuffTarget.Token[2,:]},${BuffTarget.Token[1,:]}].ID}
   eq2execute /g ${BuffTarget.Token[1,:]} has been given Alacrity
}
1 - The Token[] member will allow you to select the part before or after the :
2 - You needed the eq2execute grouped in {} after the if
3 - There was a bug in the script and it was casting alacrity on the person in the PROC drop down, notice I changed cbBuffProcGroupMember to AlacrityGroupMember.

Personally, I would just /tell the person it is cast on, unless you really think its important to make yourself seem important to your group...
thanks Pygar! Works awesome. Since me and my buddy run 3 bots each and only use the defiler when we duo i dont mind it being said in group since hes always complaining about it. =)
 

geekatlrg

Active Member
Update to fix the problem i mentioned above NULL i spoke with Val and Pygar on irc they gave me this fix.

change ${Actor[ExactName,${healtarget}].Name} To ${Actor[ID,${healtarget}].Name}
 
Top Bottom