Experimenting with packets

This commit is contained in:
KimLS
2015-06-09 12:39:39 -07:00
parent 250d0cc903
commit dbbe6b5a91
9 changed files with 59 additions and 148 deletions
+8 -6
View File
@@ -674,12 +674,14 @@ void command_incstat(Client* c, const Seperator* sep){
}
void command_resetaa(Client* c,const Seperator *sep){
if(c->GetTarget()!=0 && c->GetTarget()->IsClient()){
c->GetTarget()->CastToClient()->ResetAA();
c->Message(13,"Successfully reset %s's AAs", c->GetTarget()->GetName());
}
else
c->Message(0,"Usage: Target a client and use #resetaa to reset the AA data in their Profile.");
c->SendAlternateAdvancement(1, 1);
c->SendAlternateAdvancement(2, 1);
//if(c->GetTarget()!=0 && c->GetTarget()->IsClient()){
// c->GetTarget()->CastToClient()->ResetAA();
// c->Message(13,"Successfully reset %s's AAs", c->GetTarget()->GetName());
//}
//else
// c->Message(0,"Usage: Target a client and use #resetaa to reset the AA data in their Profile.");
}
void command_help(Client *c, const Seperator *sep)