• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

help getting #events working

s0lusek

New member
Joined
Feb 1, 2015
RedCents
20¢
So this is fairly straight forward. I'm simply trying to get events working.

Can someone comment on why the following wouldn't work?

Rich (BB code):
#Event SowMe "sowme"

Sub Main
     :mainloop
     /doevents
     /goto :mainloop
/return

Sub Event_SowMe
     /echo You just activated Event SowMe.
/return

That's it. So if I understand events correctly, I should be able to type "sowme" in any chat box, and as soon as it's entered, this should trigger. So what am I doing wrong? Nothing happens, nothing at all.

Thanks in advance,
 
You have the correct idea, I am guessing it is not matching something.

I mean 90% of the time in my code the bug is due to some typo ;)

Try adding wildcards ?
ie as in
Rich (BB code):
#Event SowMe        "#*#sowme#*#"
 
if what you are after is controlling your toons through commands, you may want to use the Chat event (found on the same page the hoosierbilly posted)

I utilized it in the small macro I posted for loading bazaar toons up with mage toys. The main reason I went this route is basically what you ran in to... I sometimes could not get an event to trigger properly. But the chat seems to work every time, though admittedly it has to loop around to start the chat event again (IE sometimes a short delay)

Basically:

Rich (BB code):
Sub Main
     :mainloop
     /doevents
     /goto :mainloop
/return

Sub Event_Chat(string ChatType,string Sender,string ChatText)
	/if (${ChatText.Find[sowme]}) {
		/target ID ${Spawn[pc ${Sender}].ID}
		/delay 3s ${Target.ID}==${Spawn[pc ${Sender}].ID}
		/casting "Spirit of the Wolf" gem3 -recast|${ChatText.Arg[2]}
		/echo Casting ${Me.Casting}
		/delay 10s !${Me.Casting.ID}
		/return
		}
 
Those are some good suggestions, thanks guys. Will give those a go and report back.
 
help getting #events working

Users who are viewing this thread

Back
Top
Cart