View Single Post
  #8  
Old 02-18-2022, 03:00 AM
krauser1
Fire Beetle
 
Join Date: Sep 2006
Posts: 8
Default use event_command not event_say in global_player.pl or .lua

Quote:
Originally Posted by markusdabrave View Post
Ok I'm feeling like a complete moron. I've #reloadquests and added the below code to my global_player.pl and it's still not working. I also enabled the error message suppressing suggested. What am I missing? Is # a special character?

Code:
# Hot Zone List - Lists Current Hotzones
sub EVENT_SAY {
        if ($text=~/#hotzone/i){
                $client->Message(315,'This is a test.');
        }
}

https://docs.eqemu.io/quest-api/events/#example_14

these examples are a working template for adding your own commands.
Reply With Quote