Jump to content

Notify emotions message! [PAY 5 EURO]


Recommended Posts

23 minutes ago, Johnny69 said:

Try that:


//cmd_emotion.cpp
//Replace ACMD(do_emotion_allow) with:
ACMD(do_emotion_allow)
{
	if ( ch->GetArena() )
	{
		ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("대련장에서 사용하실 수 없습니다."));
		return;
	}

	char arg1[256];
	one_argument(argument, arg1, sizeof(arg1));

	if (!*arg1)
		return;

	DWORD val = 0; 
	str_to_number(val, arg1);
	LPCHARACTER pkRapeVictim = CHARACTER_MANAGER::instance().Find(val);
	
	if (!pkRapeVictim)
		return;

	if (pkRapeVictim->IsNPC())
		return;
	
	char msg[CHAT_MAX_LEN + 1];
	snprintf(msg, sizeof(msg), "%s want to kiss your pussy.", ch->GetName());
	
	LPDESC pkRapeVictimDesc = pkRapeVictim->GetDesc();
	if (pkRapeVictimDesc)
	{
		TPacketGCWhisper pack;

		int len = MIN(CHAT_MAX_LEN, strlen(msg) + 1);

		pack.bHeader = HEADER_GC_WHISPER;
		pack.wSize = sizeof(TPacketGCWhisper) + len;
		pack.bType = WHISPER_TYPE_SYSTEM;
		strlcpy(pack.szNameFrom, ch->GetName(), sizeof(pack.szNameFrom));

		TEMP_BUFFER buf;

		buf.write(&pack, sizeof(TPacketGCWhisper));
		buf.write(msg, len);

		pkRapeVictimDesc->Packet(buf.read_peek(), buf.size());
	}
	
	s_emotion_set.insert(std::make_pair(ch->GetVID(), val));
}

 


cmd_emotion.cpp: In function 'void do_emotion_allow(CHARACTER*, const char*, int, int)':
cmd_emotion.cpp:137: error: invalid use of incomplete type 'struct DESC'
typedef.h:4: error: forward declaration of 'struct DESC'
gmake: *** [OBJDIR/cmd_emotion.o] Error 1
 

 

Just now, Fleon said:

lol 


pkRapeVictim

the child is stupid, copied the function duel.

Link to comment
Share on other sites

  • Premium
16 minutes ago, Celestin said:


cmd_emotion.cpp: In function 'void do_emotion_allow(CHARACTER*, const char*, int, int)':
cmd_emotion.cpp:137: error: invalid use of incomplete type 'struct DESC'
typedef.h:4: error: forward declaration of 'struct DESC'
gmake: *** [OBJDIR/cmd_emotion.o] Error 1
 

 

the child is stupid, copied the function duel.

use your

To fix this issue, is not that difficult to look for a func already written in the source 

Link to comment
Share on other sites

  • Bronze
hace 4 horas, Celestin dijo:


cmd_emotion.cpp: In function 'void do_emotion_allow(CHARACTER*, const char*, int, int)':
cmd_emotion.cpp:137: error: invalid use of incomplete type 'struct DESC'
typedef.h:4: error: forward declaration of 'struct DESC'
gmake: *** [OBJDIR/cmd_emotion.o] Error 1
 

 

the child is stupid, copied the function duel.

You want the work done right now, for free and when someone helps you, they are stupid. Nice.

Link to comment
Share on other sites

  • Premium

Braindead people are everywhere nowadays, just don't help them and let them learn by themselves, ungrateful trash.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.