Jump to content

Celestin

Inactive Member
  • Posts

    34
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Celestin

  1. 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.

×
×
  • 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.