Wise
05-03-15, 11:35 PM
I've just made a little script it's a custom command, and I hope that this can help out some of the new people out there.
I've added in a security check to see what rank you are if your gonna use this as a VIP command, otherwise you can just delete it.
Description : Custom command, so when you type .heal it set your health and mana to it's max and checks if you're in combat, or in a BG, or in a arena, or is dead. And the script checks if your a player who uses mana.
Tested : Yes, I've tested it out, and it works just fine as of the date 03-03-2015. BG and Arena checks hasen't been tested, but should work.
Source :
/* Unholyzz */ #include "ScriptPCH.h" class cs_cmd : public CommandScript { - Pastebin.com (http://pastebin.com/nHNDLs7J)
And of course, you need to edit the RBAC.h file, and the rbac_permissons and rbac_linked_permissons table.
You could add it to some VIP ranks, so only VIP's can use that command, or you could add more commands and so on.
Credits : Unholyzz
I've added in a security check to see what rank you are if your gonna use this as a VIP command, otherwise you can just delete it.
Description : Custom command, so when you type .heal it set your health and mana to it's max and checks if you're in combat, or in a BG, or in a arena, or is dead. And the script checks if your a player who uses mana.
Tested : Yes, I've tested it out, and it works just fine as of the date 03-03-2015. BG and Arena checks hasen't been tested, but should work.
Source :
/* Unholyzz */ #include "ScriptPCH.h" class cs_cmd : public CommandScript { - Pastebin.com (http://pastebin.com/nHNDLs7J)
And of course, you need to edit the RBAC.h file, and the rbac_permissons and rbac_linked_permissons table.
You could add it to some VIP ranks, so only VIP's can use that command, or you could add more commands and so on.
Credits : Unholyzz