Files
m2-start-item/Srcs-Server/game/src/cmd_gm.cpp
2025-06-11 16:04:11 +02:00

38 lines
824 B
C++

/// 1.) Search at the begin of the file
#include "unique_item.h"
#include "DragonSoul.h"
// and add under, this:
#ifdef ENABLE_START_ITEMS
#include "start_item.h"
#endif
/// 2.) Search in void CHARACTER::MountVnum(DWORD vnum):
//RELOAD_ADMIN
case 'a':
ch->ChatPacket(CHAT_TYPE_INFO, "Reloading Admin infomation.");
db_clientdesc->DBPacket(HEADER_GD_RELOAD_ADMIN, 0, NULL, 0);
sys_log(0, "Reloading admin infomation.");
break;
//END_RELOAD_ADMIN
case 'c': // cube
// ·ÎÄà ÇÁ·Î¼¼½º¸¸ °»»êÇÑ´Ù.
Cube_init ();
break;
default:
{
// and add under, this:
#ifdef ENABLE_START_ITEMS
if (strstr(arg1, "give_basic_weapon"))
{
ch->ChatPacket(CHAT_TYPE_INFO, "Reloading: give_basic_weapon");
LoadStarterItemsFromJSON();
}
#endif