View Single Post
  #4  
Old 02-15-2022, 10:26 PM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

Quote:
Originally Posted by markusdabrave View Post
Can anyone use # commands or do I need to somehow specify an accesslevel?
Just add code to restrict it to a certain Status which is a variable exported to client scripts

Code:
if ($status >= 200) { #CUSTOM GM ONLY COMMANDS
	if ($text=~/#cooldowns/i) {
		$client->ResetAllCastbarCooldowns();
		$client->Message(13, "ResetAllCastbarCooldowns!");
	} elsif ($text=~/#randomstuff/i) {
		#Do more things ect.. ect..
	}
}
If you need an API reference just use spire.

http://spire.akkadius.com/quest-api-explorer
Reply With Quote