Necro Heart request script

gp1001

Active Member
Can anyone with some scripting knowlege make a script that looks in group for the words heart and then gives the person a Heart?
 

noacess

Active Member
This is kind of ghetto but it'd work I think:

Code:
function main()
{
      addtrigger shard "@*@ says to the group,\"shard a@grpmember@\""

     do
    {

        while !${QueuedCommands}
	{
		waitframe
	}

	ExecuteQueued

   }
   while 1
}



function shard(string trigline, string grpmember)
{
	
	target ${grpmember}
	do
	{
		face ${Target}
		if ${Target.Distance} > 10
			press -hold ${forward}
		else
			press -release ${forward}
	}
	while ${Target.Distance} > 10
	Me.Ability[ShardSpellNameHere]:Use
}
Keep in mind that you'd type "shard aCHARACTERNAMEHERE" I did that because I was lazy and didnt feel like dealing with all the name linking crap. Anyways this may not work and is completely untested but it should give you some ideas for making a better/working one.

-NoAcess
 

Hendrix

Well-Known Member
also ${forward} needs to be changed to your move forward button... That sniplet was made to be put in an EQ2bot class routine.
 

gp1001

Active Member
noacess said:
Say the player's name was Toadie. The person would type "shard aToadie"
Couldnt I change this:
Code:
addtrigger shard "@*@ says to the group,\"shard a@grpmember@\""
to:
Code:
addtrigger shard "@grpmember@ says to the group,\"shard\""
what i want is to be able to give a dark heart out to the person that asks for a "heart" in group chat.

So if a person says "heart please" it would give them a heart.
Or any combination of words as long as heart is in the phrase.

Is this possible? or would it take some major programming?
 

Karye

Active Member
use
Code:
AddTrigger Shard "\\aPC @*@ @*@:@groupmember@\\/a says to the@*@heart@*@"
to pick up request both in group and raid chat
 

Hendrix

Well-Known Member
i for one would make it a specific request line... you dont want it to go off if someone just mentions heart or shard in a sentence... I can see it now... random group member says, " i have a shard in TS." you say, "Inc shard/heart get ready."
 

gp1001

Active Member
Karye said:
use
Code:
AddTrigger Shard "\\aPC @*@ @*@:@groupmember@\\/a says to the@*@heart@*@"
to pick up request both in group and raid chat
Thanks Karye!
thats what i wanted!
 
Top Bottom