7 mesaje
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    *Problemă/Întrebare:
    Hi, does anyone know why /event_manager update is not working for me? in drakarys event manager?

    Martysama 5.8 serverfiles


    *Resursă folosită (sistem/funcție/modificare):

    [C++/Py] System Event Manager V2 FULL (testat!)
    *Syserr:
    No sysser
    *Fișier(e) cu problema (link pastebin / code):

    CMD.cpp
    Code:
    #ifdef ENABLE_EVENT_MANAGER
    ACMD(do_event_manager);
    #endif
    
    
    #ifdef ENABLE_EVENT_MANAGER
    	{ "event_manager",	do_event_manager,		0,		POS_DEAD,	GM_PLAYER },
    #endif
    
    CMD_general.cpp
    Code:
    #ifdef ENABLE_EVENT_MANAGER
    ACMD(do_event_manager)
    {
    	std::vector<std::string> vecArgs;
    	split_argument(argument, vecArgs);
    	if (vecArgs.size() < 2) { return; }
    	else if (vecArgs[1] == "info")
    	{
    		CHARACTER_MANAGER::Instance().SendDataPlayer(ch);
    	}
    	else if (vecArgs[1] == "remove")
    	{
    		if (!ch->IsGM())
    			return;
    
    		if (vecArgs.size() < 3) { 
    			
    			ch->ChatPacket(CHAT_TYPE_INFO, "put the event index!!");
    			return; 
    		}
    
    		BYTE removeIndex = 0;  // Inicializar removeIndex con un valor predeterminado
    		str_to_number(removeIndex, vecArgs[2].c_str());
    
    		if (CHARACTER_MANAGER::Instance().CloseEventManuel(removeIndex))
    			ch->ChatPacket(CHAT_TYPE_INFO, "successfully removed!");
    		else
    			ch->ChatPacket(CHAT_TYPE_INFO, "don't have any event!");
    	}
    	else if (vecArgs[1] == "update")
    	{
    		if (!ch->IsGM())
    			return;
    		const BYTE subHeader = EVENT_MANAGER_UPDATE;
    		//db_clientdesc->DBPacketHeader(HEADER_GD_EVENT_MANAGER, 0, sizeof(BYTE));
    		//db_clientdesc->Packet(&subHeader, sizeof(BYTE));
    		db_clientdesc->DBPacket(HEADER_GD_EVENT_MANAGER, 0, &subHeader, sizeof(BYTE));
    
    		ch->ChatPacket(CHAT_TYPE_INFO, "successfully update!");
    	}
    }
    #endif
    
    *Poze / Video:

    Rezolvat de GreposX » 23 Feb 2025, 01:20

    📢 Resurse Metin2 Premium!

    Zeci de resurse Metin2 Premium - exclusive și 100% funcționale începând cu 15.99€!.

    Vezi resursele Cumpără premium
    Premium
    Premium
    Anunț
    Lider Moderator Lider Moderator
  • Mesaje: 595
  • Reacții: 10244
  • Mesaje utile: 6
  • Status: Totul pentru o experiență Metin2 perfectă
  • Server: VR2
  • Regat: Shinsoo
  • [ID Discord]
  • Contact:

    Medalii

    Avatar utilizator
    Lider Moderator
    Lider Moderator

    Mesaj de ZuZuR »

    verifica tables.h EVENT_MANAGER_UPDATE
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de GreposX »

    My tables.h ....
    Code:
    #ifdef ENABLE_EVENT_MANAGER
    	HEADER_DG_EVENT_MANAGER						= 212,
    	HEADER_GD_EVENT_MANAGER						= 212,
    #endif
    
    
    
    
    
    
    
    #ifdef ENABLE_EVENT_MANAGER
    typedef struct event_struct_
    {
    	WORD	eventID;
    	BYTE	eventIndex;
    	int		startTime;
    	int		endTime;
    	BYTE	empireFlag;
    	BYTE	channelFlag;
    	DWORD	value[4];
    	bool	eventStatus;
    	bool	eventTypeOnlyStart;
    	char	startTimeText[25];
    	char	endTimeText[25];
    }TEventManagerData;
    enum
    {
    	EVENT_MANAGER_LOAD,
    	EVENT_MANAGER_EVENT_STATUS,
    	EVENT_MANAGER_REMOVE_EVENT,
    	EVENT_MANAGER_UPDATE,
    
    	BONUS_EVENT = 1,
    	DOUBLE_BOSS_LOOT_EVENT = 2,
    	DOUBLE_METIN_LOOT_EVENT = 3,
    	DOUBLE_MISSION_BOOK_EVENT = 4,
    	DUNGEON_COOLDOWN_EVENT = 5,
    	DUNGEON_TICKET_LOOT_EVENT = 6,
    	EMPIRE_WAR_EVENT = 7,
    	MOONLIGHT_EVENT = 8,
    	TOURNAMENT_EVENT = 9,
    	WHELL_OF_FORTUNE_EVENT = 10,
    	HALLOWEEN_EVENT = 11,
    	NPC_SEARCH_EVENT = 12,
    	EXP_EVENT = 13,
    	ITEM_DROP_EVENT = 14,
    	YANG_DROP_EVENT = 15,
    };
    #endif
    
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de GreposX »

    I think the problem won't only affect the event manager. I also added the skill tree from Drakarysa and the refine command doesn't work there either.
    Lider Moderator Lider Moderator
  • Mesaje: 595
  • Reacții: 10244
  • Mesaje utile: 6
  • Status: Totul pentru o experiență Metin2 perfectă
  • Server: VR2
  • Regat: Shinsoo
  • [ID Discord]
  • Contact:

    Medalii

    Avatar utilizator
    Lider Moderator
    Lider Moderator

    Mesaj de ZuZuR »

    GreposX scrie: I think the problem won't only affect the event manager. I also added the skill tree from Drakarysa and the refine command doesn't work there either.
    try:
    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de GreposX »

    still the same. :-(
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de GreposX »

    solved! drakarys uses split_argument which is not in martysama serverfiles. Solution....

    Add to untils.cpp

    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    untils.h
    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.

    🔥 Hai pe Discord! - Chat activ și support direct

    Te așteptăm și pe serverul de Discord - aici ne-am strâns toată comunitatea de Metin2 din România.

    Alătură-te acum!
    1300+ de membri activi!
    Robot Discord
    Roboțelu'
    Anunț
    Închis

    Înapoi la “Probleme rezolvate”

    Informații

    Utilizatori ce navighează pe acest forum: Niciun utilizator înregistrat și 2 vizitatori

    Discord ID copiat: