Subversion Repositories WoWGM

Rev

Rev 22 | Rev 24 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22 Rev 23
Line 43... Line 43...
43
	ClientServices_Send(&msg);
43
	ClientServices_Send(&msg);
44
	return TRUE;
44
	return TRUE;
45
}
45
}
46
 
46
 
47
//===========================================================================
47
//===========================================================================
-
 
48
BOOL CCommand_Decharge (char const* command, char const* arguments) {
-
 
49
	CDataStore msg;
-
 
50
	msg.Put(CMSG_DECHARGE);
-
 
51
	msg.Finalize();
-
 
52
	ClientServices_Send(&msg);
-
 
53
	return TRUE;
-
 
54
}
-
 
55
 
-
 
56
//===========================================================================
48
BOOL CCommand_Learn(const char* command, const char* arguments)
57
BOOL CCommand_Learn(const char* command, const char* arguments)
49
{
58
{
50
	int spellId = 0;
59
	int spellId = 0;
51
	if (isdigit(*arguments)) {
60
	if (isdigit(*arguments)) {
52
		spellId = SStrToInt(arguments);
61
		spellId = SStrToInt(arguments);
Line 89... Line 98...
89
  ConsoleCommandRegister("bootme",CCommand_BootMe,DEBUG,NOHELP);
98
  ConsoleCommandRegister("bootme",CCommand_BootMe,DEBUG,NOHELP);
90
  ConsoleCommandRegister("learn",CCommand_Learn,DEBUG,"Learn a spell or -1 for all spells");
99
  ConsoleCommandRegister("learn",CCommand_Learn,DEBUG,"Learn a spell or -1 for all spells");
91
  ConsoleCommandRegister("ci",CCommand_CreateItem,GAME,NOHELP);
100
  ConsoleCommandRegister("ci",CCommand_CreateItem,GAME,NOHELP);
92
  ConsoleCommandRegister("createitem",CCommand_CreateItem,GAME,NOHELP);
101
  ConsoleCommandRegister("createitem",CCommand_CreateItem,GAME,NOHELP);
93
  ConsoleCommandRegister("recharge",CCommand_Recharge,GAME,NOHELP);
102
  ConsoleCommandRegister("recharge",CCommand_Recharge,GAME,NOHELP);
-
 
103
  ConsoleCommandRegister("decharge",CCommand_Decharge,GAME,NOHELP);
94
}
104
}
95
 
105
 
96
//===========================================================================
106
//===========================================================================
97
void DebugClientCommands::Uninstall()
107
void DebugClientCommands::Uninstall()
98
{
108
{
99
  ConsoleCommandUnregister("bootme");
109
  ConsoleCommandUnregister("bootme");
100
  ConsoleCommandUnregister("learn");
110
  ConsoleCommandUnregister("learn");
101
  ConsoleCommandUnregister("ci");
111
  ConsoleCommandUnregister("ci");
102
  ConsoleCommandUnregister("createitem");
112
  ConsoleCommandUnregister("createitem");
103
  ConsoleCommandUnregister("recharge");
113
  ConsoleCommandUnregister("recharge");
-
 
114
  ConsoleCommandUnregister("decharge");
104
}
115
}