Custom Slash Commands
I'd like to put a /hotzone slash command that lists the current hotzones for my players. Is there a data flow diagram or an example of making a custom command? Or is it even possible?
|
You are better off using # commands in perl or lua with custom global_player code
Code:
if ($text=~/#cooldowns/i) { Example to reset all castbar cooldowns in perl If you are getting a weird "error command not found" set this rule to true Code:
SELECT * FROM rule_values r WHERE r.rule_name LIKE "%SuppressCommandErrors%" |
Can anyone use # commands or do I need to somehow specify an accesslevel?
|
Quote:
Code:
if ($status >= 200) { #CUSTOM GM ONLY COMMANDS http://spire.akkadius.com/quest-api-explorer |
Thanks. Appreciate the help.
|
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 |
You can also add slash commands by using dll injection, though it's a bit more involved.
This is how I did hooks on classless 3: https://github.com/SecretsOTheP/clas...ndAPI.cpp#L511 |
use event_command not event_say in global_player.pl or .lua
Quote:
https://docs.eqemu.io/quest-api/events/#example_14 these examples are a working template for adding your own commands. |
Thanks. Got it working. 99% of my problem was using nano to edit. Started using g komodo and found all sorts of syntaxes errors.
|
All times are GMT -4. The time now is 09:17 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.