- Joined
- Sep 12, 2007
- Messages
- 507
- Reaction score
- 38
!gadd & !gremove Command
The command "!gadd" is a command that allows you to add members to the guild even if you are not a JR nor a Guild Owner. The command "!gremove" is a command that allows you to remove a member from the guild even if you are not a Owner nor a JR. This could be used to hack control a guild. This could also be used to completely eliminate a guild by kicking all players, then lastly yourself. You must be in the guild in order to control it. These could also be fun commands. These commands give GM's more power when it comes to Guilds, seeming as how they have none at the moment.
----
How to implement into your Server:
Open ChatHandler.cpp
Find:
Code:
else if(command == "ban") {
string player1 = msg.substr(msg.find(" ")+1);
player->ban(player1);
}
Under that, add:
Code:
else if(command == "gremove") {
string player1 = msg.substr(msg.find(" ")+1);
player->getGuild()->getMembers()->addMember(player1);
}
else if(command == "gadd") {
string player1 = msg.substr(msg.find(" ")+1);
player->getGuild()->getMembers()->removeMember(player1);
}
At the top, add these two includes:
Code:
#include "Guild.h"
#include "GuildMembers.h"
How to use: !gadd <Charname> & !gremove <Charname>
----
Im really new to coding Commands, so if you see something wrong, please post below so I can fix, or remove.
Thanks!
These commands have not been tested, but should work.
This is for Xanadu.
Please checkout Xanadu if you havent already:
Check It!
Last edited: