Jump to content
  • 0

[SOLVED] prevent overused spaces in chat


jamesandrew

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.07
  • Content Count:  58
  • Reputation:   3
  • Joined:  06/21/23
  • Last Seen:  

pepega.png.3e2bd98d1195f8e531db3728b296eaf3.png

Is there a script or src mod to prevent this scam happening?
I know it's an old trick but people still falling for it...

Thanks

Edited by jamesandrew
Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   86
  • Joined:  04/10/12
  • Last Seen:  

@jamesandrew You're getting lots of errors because you didn't close the if statement, here:

 

if (stristr(output, " : ") || stristr(output, " ; ") || stristr(output, "   ") ||
		stristr(output, "Tokei") || stristr(output, "Saga") || stristr(output, "Pegasus") ||
		stristr(output, "GM ") || stristr(output, "[G M]") || stristr(output, " GM") || strstr(output, "GM") || stristr(output, "[GM]") || stristr(output, "(GM)") || stristr(output, "{GM}") ||
		stristr(output, "skype") || stristr(output, "discord") || stristr(output, "facebook")) {
		clif_colormes(sd->fd, color_table[COLOR_RED], "You are only allowed to type a maximum of 3 spaces in a row.");
		return;


Also, I don't know if that code is old, but my emulator would treat any sent msg as detected and filtered out, and thats because on the output variable there is a " : " char sequence, so stristr(output, " : ") triggers on it

 

So, yeah, you're missing a bracket. (And I removed the faulty check)
 

        if (strstr(output, "   ") ||
            strstr(output, "Sapito") || strstr(output, "Saga") || strstr(output, "Pegasus") ||
            strstr(output, "GM ") || strstr(output, "[G M]") || strstr(output, " GM") ||
            strstr(output, "GM") || strstr(output, "[GM]") || strstr(output, "(GM)") ||
            strstr(output, "{GM}") || stristr(output, "Skype") || stristr(output, "facebook")) {
            clif_showscript(&sd->bl, "¿Qué intentas hacer? jjjjejjej", SELF);
            return;
        }
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  232
  • Reputation:   86
  • Joined:  06/30/18
  • Last Seen:  

I think that this is a thing you need to fix in the source.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   86
  • Joined:  04/10/12
  • Last Seen:  

Maybe a check to don't allow more than X characters or maybe don't allow multiple spaces together. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.03
  • Content Count:  640
  • Reputation:   82
  • Joined:  04/07/14
  • Last Seen:  

The solution for this was to diff your client with extend.

image.png.daed5af90580dce2b7ed5f66fe1c9d8a.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.07
  • Content Count:  58
  • Reputation:   3
  • Joined:  06/21/23
  • Last Seen:  

10 hours ago, sapitosucio said:

Maybe a check to don't allow more than X characters or maybe don't allow multiple spaces together. 

Yes, this could work. Any idea how?

 

7 hours ago, Gidz Cross said:

The solution for this was to diff your client with extend.

image.png.daed5af90580dce2b7ed5f66fe1c9d8a.png

I increased all value to max but it didn't work. It doesn't remove multiple spaces.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   86
  • Joined:  04/10/12
  • Last Seen:  

15 hours ago, Gidz Cross said:

The solution for this was to diff your client with extend.

image.png.daed5af90580dce2b7ed5f66fe1c9d8a.png

This seems to be the fastest fix.

 

8 hours ago, jamesandrew said:

Yes, this could work. Any idea how?

 

I increased all value to max but it didn't work. It doesn't remove multiple spaces.

Instead of increasing the value to max, adjust it to like 40, so people can't really do several lines of chat

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  896
  • Reputation:   117
  • Joined:  05/23/12
  • Last Seen:  

U can add a check of double spaces. I'm not sure if it is the right function and it's may cause lags.

https://github.com/rathena/rathena/blob/ffd940b2b579bf525a39265cd762157ba202e80f/src/map/clif.cpp#L11584

Like:

if(output.find("  "))//do ur stuff

 

Rynbef~

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.07
  • Content Count:  58
  • Reputation:   3
  • Joined:  06/21/23
  • Last Seen:  

On 9/1/2023 at 2:36 AM, sapitosucio said:

This seems to be the fastest fix.

 

Instead of increasing the value to max, adjust it to like 40, so people can't really do several lines of chat

Hey thanks for the reply. I tried to adjust the value to 40 but you can still do the trick as long as multiple spaces are allowed.
image.png.1a00339a43fe7c9a53394ae563254646.png

 

On 9/1/2023 at 5:00 AM, Rynbef said:

U can add a check of double spaces. I'm not sure if it is the right function and it's may cause lags.

https://github.com/rathena/rathena/blob/ffd940b2b579bf525a39265cd762157ba202e80f/src/map/clif.cpp#L11584

Like:

if(output.find("  "))//do ur stuff

 

Rynbef~

Someone actually posted this code on RMS forum. I have no idea where to start. 
Do you think it could work?


	length = strlen(output) + 1;

	if (sd->chatID && pc_get_group_level(sd) < 20) {
		int i;
		
		for (i = 0; i < length; i++) {
			switch(output[i]) {
				case '\x09':
				case '\xA0':
				case '\x0A':
				case '\x0B':
				case '\x0C':
				case '\x0D':
					output[i] = '\x20';
					break;
			}
		}

		if (stristr(output, " : ") || stristr(output, " ; ") || stristr(output, "   ") ||
			stristr(output, "Tokei") || stristr(output, "Saga") || stristr(output, "Pegasus") ||
			stristr(output, "GM ") || stristr(output, "[G M]") || stristr(output, " GM") || strstr(output, "GM") || stristr(output, "[GM]") || stristr(output, "(GM)") || stristr(output, "{GM}") ||
			stristr(output, "Skype") || stristr(output, "discord") || stristr(output, "facebook")) {
			clif_colormes(sd->fd, color_table[COLOR_RED], "You are only allowed to type a maximum of 3 spaces in a row.");
			return;
		}
	}

	// send message to others (using the send buffer for temp. storage)
	clif_GlobalMessage(&sd->bl,output,sd->chatID ? CHAT_WOS : AREA_CHAT_WOC);

 

Edited by jamesandrew
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  232
  • Reputation:   86
  • Joined:  06/30/18
  • Last Seen:  

2 hours ago, jamesandrew said:

Hey thanks for the reply. I tried to adjust the value to 40 but you can still do the trick as long as multiple spaces are allowed.
image.png.1a00339a43fe7c9a53394ae563254646.png

 

Someone actually posted this code on RMS forum. I have no idea where to start. 
Do you think it could work?


	length = strlen(output) + 1;

	if (sd->chatID && pc_get_group_level(sd) < 20) {
		int i;
		
		for (i = 0; i < length; i++) {
			switch(output[i]) {
				case '\x09':
				case '\xA0':
				case '\x0A':
				case '\x0B':
				case '\x0C':
				case '\x0D':
					output[i] = '\x20';
					break;
			}
		}

		if (stristr(output, " : ") || stristr(output, " ; ") || stristr(output, "   ") ||
			stristr(output, "Tokei") || stristr(output, "Saga") || stristr(output, "Pegasus") ||
			stristr(output, "GM ") || stristr(output, "[G M]") || stristr(output, " GM") || strstr(output, "GM") || stristr(output, "[GM]") || stristr(output, "(GM)") || stristr(output, "{GM}") ||
			stristr(output, "Skype") || stristr(output, "discord") || stristr(output, "facebook")) {
			clif_colormes(sd->fd, color_table[COLOR_RED], "You are only allowed to type a maximum of 3 spaces in a row.");
			return;
		}
	}

	// send message to others (using the send buffer for temp. storage)
	clif_GlobalMessage(&sd->bl,output,sd->chatID ? CHAT_WOS : AREA_CHAT_WOC);

 

Looks okay. Why don't you test it?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.07
  • Content Count:  58
  • Reputation:   3
  • Joined:  06/21/23
  • Last Seen:  

10 hours ago, Winterfox said:

Looks okay. Why don't you test it?

I did and I'm getting a lot of errors
 

Spoiler
Severity	Code	Description	Project	File	Line	Suppression State
Error	C3861	'clif_colormes': identifier not found	map-server-generator	F:\rathena-master\src\map\clif.cpp	11602	
Error	C2601	'clif_parse_MapMove': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	11631	
Error	C2601	'clif_changed_dir': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	11661	
Error	C2601	'clif_parse_ChangeDir': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	11684	
Error	C2601	'clif_parse_Emotion': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	11701	
Error	C2601	'clif_user_count': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	11742	
Error	C2601	'clif_parse_HowManyConnections': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	11756	
Error	C2601	'clif_parse_ActionRequest_sub': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	11762	
Error	C2601	'clif_parse_ActionRequest': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	11882	
Error	C2601	'clif_parse_Restart': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	11898	
Error	C2601	'clif_parse_WisMessage': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	11921	
Error	C2601	'clif_parse_Broadcast': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12043	
Error	C2601	'clif_parse_TakeItem': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12061	
Error	C2601	'clif_parse_DropItem': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12096	
Error	C2601	'clif_parse_UseItem': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12133	
Error	C2601	'clif_parse_EquipItem': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12166	
Error	C2601	'clif_parse_UnequipItem': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12225	
Error	C2601	'clif_parse_NpcClicked': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12259	
Error	C2601	'clif_parse_NpcBuySellSelected': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12314	
Error	C2601	'clif_npc_buy_result': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12336	
Error	C2601	'clif_parse_NpcBuyListSend': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12348	
Error	C2601	'clif_npc_sell_result': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12383	
Error	C2601	'clif_parse_NpcSellListSend': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12396	
Error	C2601	'clif_parse_CreateChatRoom': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12419	
Error	C2601	'clif_parse_ChatAddMember': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12458	
Error	C2601	'clif_parse_ChatRoomStatusChange': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12472	
Error	C2601	'clif_parse_ChangeChatOwner': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12497	
Error	C2601	'clif_parse_KickFromChat': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12506	
Error	C2601	'clif_parse_ChatLeave': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12514	
Error	C2267	'clif_noask_sub': static functions with block scope are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12523	
Error	C2601	'clif_noask_sub': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12523	
Error	C2601	'clif_parse_TradeRequest': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12538	
Error	C2601	'clif_parse_TradeAck': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12581	
Error	C2601	'clif_parse_TradeAddItem': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12589	
Error	C2601	'clif_parse_TradeOk': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12604	
Error	C2601	'clif_parse_TradeCancel': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12612	
Error	C2601	'clif_parse_TradeCommit': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12620	
Error	C2601	'clif_parse_StopAttack': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12628	
Error	C2601	'clif_parse_PutItemToCart': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12637	
Error	C2601	'clif_parse_GetItemFromCart': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12651	
Error	C2601	'clif_parse_RemoveOption': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12664	
Error	C2601	'clif_SelectCart': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12681	
Error	C2601	'clif_parse_SelectCart': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12701	
Error	C2601	'clif_parse_ChangeCart': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12722	
Error	C2601	'clif_parse_StatusUp': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12764	
Error	C2601	'clif_parse_traitstatus_up': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12782	
Error	C2601	'clif_parse_SkillUp': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12798	
Error	C2267	'clif_parse_UseSkillToId_homun': static functions with block scope are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12803	
Error	C2601	'clif_parse_UseSkillToId_homun': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12803	
Error	C2267	'clif_parse_UseSkillToPos_homun': static functions with block scope are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12831	
Error	C2601	'clif_parse_UseSkillToPos_homun': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12831	
Error	C2267	'clif_parse_UseSkillToId_mercenary': static functions with block scope are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12862	
Error	C2601	'clif_parse_UseSkillToId_mercenary': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12862	
Error	C2267	'clif_parse_UseSkillToPos_mercenary': static functions with block scope are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12886	
Error	C2601	'clif_parse_UseSkillToPos_mercenary': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12886	
Error	C2601	'clif_parse_skill_toid': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	12915	
Error	C2601	'clif_parse_UseSkillToId': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13034	
Error	C2267	'clif_parse_UseSkillToPosSub': static functions with block scope are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13043	
Error	C2601	'clif_parse_UseSkillToPosSub': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13043	
Error	C2601	'clif_parse_UseSkillToPos': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13141	
Error	C2601	'clif_parse_UseSkillToPosMoreInfo': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13165	
Error	C2601	'clif_parse_UseSkillMap': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13185	
Error	C2601	'clif_parse_RequestMemo': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13210	
Error	C2601	'clif_parse_ProduceMix': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13219	
Error	C2601	'clif_parse_Cooking': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13257	
Error	C2601	'clif_parse_RepairItem': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13281	
Error	C2601	'clif_parse_WeaponRefine': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13304	
Error	C2601	'clif_parse_NpcSelectMenu': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13325	
Error	C2601	'clif_parse_NpcNextClicked': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13354	
Error	C2601	'clif_parse_NpcAmountInput': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13366	
Error	C2601	'clif_parse_NpcStringInput': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13383	
Error	C2601	'clif_parse_NpcCloseClicked': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13408	
Error	C2601	'clif_parse_ItemIdentify': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13425	
Error	C2601	'clif_parse_SelectArrow': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13450	
Error	C2601	'clif_parse_AutoSpell': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13481	
Error	C2601	'clif_parse_UseCard': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13493	
Error	C2601	'clif_parse_InsertCard': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13503	
Error	C2601	'clif_parse_SolveCharName': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13516	
Error	C2601	'clif_parse_ResetChar': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13531	
Error	C2601	'clif_parse_LocalBroadcast': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13546	
Error	C2601	'clif_parse_MoveToKafra': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13565	
Error	C2601	'clif_parse_MoveFromKafra': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13596	
Error	C2601	'clif_parse_MoveToKafraFromCart': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13615	
Error	C2601	'clif_parse_MoveFromKafraToCart': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13646	
Error	C2601	'clif_parse_CloseKafra': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13670	
Error	C2601	'clif_storagepassword': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13690	
Error	C2601	'clif_parse_StoragePassword': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13707	
Error	C2601	'clif_storagepassword_result': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13727	
Error	C2601	'clif_parse_CreateParty': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13741	
Error	C2601	'clif_parse_CreateParty2': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13758	
Error	C2601	'clif_parse_PartyInvite': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13780	
Error	C2601	'clif_parse_PartyInvite2': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13800	
Error	C2601	'clif_parse_ReplyPartyInvite': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13827	
Error	C2601	'clif_parse_ReplyPartyInvite2': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13834	
Error	C2601	'clif_parse_LeaveParty': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13844	
Error	C2601	'clif_parse_RemovePartyMember': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13856	
Error	C2601	'clif_parse_PartyChangeOption': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13871	
Error	C2601	'clif_parse_PartyMessage': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13903	
Error	C2601	'clif_parse_PartyChangeLeader': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13916	
Error	C2601	'clif_parse_PartyBookingRegisterReq': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13926	
Error	C2601	'clif_PartyBookingRegisterAck': local function definitions are illegal	map-server-generator	F:\rathena-master\src\map\clif.cpp	13947	
Error	C1003	error count exceeds 100; stopping compilation	map-server-generator	F:\rathena-master\src\map\clif.cpp	13948	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	2238	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	2338	
Warning	C4267	'initializing': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	2564	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	3038	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	3053	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	3067	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	3080	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	3133	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	3150	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	3166	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	3178	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	3224	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	3234	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	4235	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	6413	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	6466	
Warning	C4267	'initializing': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	6726	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	7373	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	8182	
Warning	C4267	'initializing': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	10233	
Warning	C4267	'=': conversion from 'size_t' to 'int16', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	10459	
Warning	C4267	'=': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	10727	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\clif.cpp	11157	
Error	C3861	'clif_colormes': identifier not found	map-server	F:\rathena-master\src\map\clif.cpp	11602	
Error	C2601	'clif_parse_MapMove': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	11631	
Error	C2601	'clif_changed_dir': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	11661	
Error	C2601	'clif_parse_ChangeDir': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	11684	
Error	C2601	'clif_parse_Emotion': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	11701	
Error	C2601	'clif_user_count': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	11742	
Error	C2601	'clif_parse_HowManyConnections': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	11756	
Error	C2601	'clif_parse_ActionRequest_sub': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	11762	
Error	C2601	'clif_parse_ActionRequest': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	11882	
Error	C2601	'clif_parse_Restart': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	11898	
Error	C2601	'clif_parse_WisMessage': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	11921	
Error	C2601	'clif_parse_Broadcast': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12043	
Error	C2601	'clif_parse_TakeItem': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12061	
Error	C2601	'clif_parse_DropItem': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12096	
Error	C2601	'clif_parse_UseItem': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12133	
Error	C2601	'clif_parse_EquipItem': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12166	
Error	C2601	'clif_parse_UnequipItem': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12225	
Error	C2601	'clif_parse_NpcClicked': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12259	
Error	C2601	'clif_parse_NpcBuySellSelected': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12314	
Error	C2601	'clif_npc_buy_result': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12336	
Error	C2601	'clif_parse_NpcBuyListSend': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12348	
Error	C2601	'clif_npc_sell_result': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12383	
Error	C2601	'clif_parse_NpcSellListSend': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12396	
Error	C2601	'clif_parse_CreateChatRoom': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12419	
Error	C2601	'clif_parse_ChatAddMember': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12458	
Error	C2601	'clif_parse_ChatRoomStatusChange': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12472	
Error	C2601	'clif_parse_ChangeChatOwner': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12497	
Error	C2601	'clif_parse_KickFromChat': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12506	
Error	C2601	'clif_parse_ChatLeave': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12514	
Error	C2267	'clif_noask_sub': static functions with block scope are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12523	
Error	C2601	'clif_noask_sub': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12523	
Error	C2601	'clif_parse_TradeRequest': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12538	
Error	C2601	'clif_parse_TradeAck': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12581	
Error	C2601	'clif_parse_TradeAddItem': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12589	
Error	C2601	'clif_parse_TradeOk': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12604	
Error	C2601	'clif_parse_TradeCancel': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12612	
Error	C2601	'clif_parse_TradeCommit': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12620	
Error	C2601	'clif_parse_StopAttack': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12628	
Error	C2601	'clif_parse_PutItemToCart': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12637	
Error	C2601	'clif_parse_GetItemFromCart': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12651	
Error	C2601	'clif_parse_RemoveOption': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12664	
Error	C2601	'clif_SelectCart': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12681	
Error	C2601	'clif_parse_SelectCart': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12701	
Error	C2601	'clif_parse_ChangeCart': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12722	
Error	C2601	'clif_parse_StatusUp': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12764	
Error	C2601	'clif_parse_traitstatus_up': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12782	
Error	C2601	'clif_parse_SkillUp': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12798	
Error	C2267	'clif_parse_UseSkillToId_homun': static functions with block scope are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12803	
Error	C2601	'clif_parse_UseSkillToId_homun': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12803	
Error	C2267	'clif_parse_UseSkillToPos_homun': static functions with block scope are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12831	
Error	C2601	'clif_parse_UseSkillToPos_homun': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12831	
Error	C2267	'clif_parse_UseSkillToId_mercenary': static functions with block scope are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12862	
Error	C2601	'clif_parse_UseSkillToId_mercenary': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12862	
Error	C2267	'clif_parse_UseSkillToPos_mercenary': static functions with block scope are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12886	
Error	C2601	'clif_parse_UseSkillToPos_mercenary': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12886	
Error	C2601	'clif_parse_skill_toid': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	12915	
Error	C2601	'clif_parse_UseSkillToId': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13034	
Error	C2267	'clif_parse_UseSkillToPosSub': static functions with block scope are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13043	
Error	C2601	'clif_parse_UseSkillToPosSub': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13043	
Error	C2601	'clif_parse_UseSkillToPos': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13141	
Error	C2601	'clif_parse_UseSkillToPosMoreInfo': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13165	
Error	C2601	'clif_parse_UseSkillMap': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13185	
Error	C2601	'clif_parse_RequestMemo': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13210	
Error	C2601	'clif_parse_ProduceMix': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13219	
Error	C2601	'clif_parse_Cooking': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13257	
Error	C2601	'clif_parse_RepairItem': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13281	
Error	C2601	'clif_parse_WeaponRefine': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13304	
Error	C2601	'clif_parse_NpcSelectMenu': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13325	
Error	C2601	'clif_parse_NpcNextClicked': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13354	
Error	C2601	'clif_parse_NpcAmountInput': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13366	
Error	C2601	'clif_parse_NpcStringInput': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13383	
Error	C2601	'clif_parse_NpcCloseClicked': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13408	
Error	C2601	'clif_parse_ItemIdentify': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13425	
Error	C2601	'clif_parse_SelectArrow': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13450	
Error	C2601	'clif_parse_AutoSpell': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13481	
Error	C2601	'clif_parse_UseCard': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13493	
Error	C2601	'clif_parse_InsertCard': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13503	
Error	C2601	'clif_parse_SolveCharName': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13516	
Error	C2601	'clif_parse_ResetChar': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13531	
Error	C2601	'clif_parse_LocalBroadcast': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13546	
Error	C2601	'clif_parse_MoveToKafra': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13565	
Error	C2601	'clif_parse_MoveFromKafra': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13596	
Error	C2601	'clif_parse_MoveToKafraFromCart': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13615	
Error	C2601	'clif_parse_MoveFromKafraToCart': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13646	
Error	C2601	'clif_parse_CloseKafra': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13670	
Error	C2601	'clif_storagepassword': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13690	
Error	C2601	'clif_parse_StoragePassword': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13707	
Error	C2601	'clif_storagepassword_result': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13727	
Error	C2601	'clif_parse_CreateParty': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13741	
Error	C2601	'clif_parse_CreateParty2': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13758	
Error	C2601	'clif_parse_PartyInvite': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13780	
Error	C2601	'clif_parse_PartyInvite2': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13800	
Error	C2601	'clif_parse_ReplyPartyInvite': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13827	
Error	C2601	'clif_parse_ReplyPartyInvite2': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13834	
Error	C2601	'clif_parse_LeaveParty': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13844	
Error	C2601	'clif_parse_RemovePartyMember': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13856	
Error	C2601	'clif_parse_PartyChangeOption': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13871	
Error	C2601	'clif_parse_PartyMessage': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13903	
Error	C2601	'clif_parse_PartyChangeLeader': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13916	
Error	C2601	'clif_parse_PartyBookingRegisterReq': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13926	
Error	C2601	'clif_PartyBookingRegisterAck': local function definitions are illegal	map-server	F:\rathena-master\src\map\clif.cpp	13947	
Error	C1003	error count exceeds 100; stopping compilation	map-server	F:\rathena-master\src\map\clif.cpp	13948	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\duel.cpp	199	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\duel.cpp	202	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\duel.cpp	242	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\duel.cpp	268	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\duel.cpp	293	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\duel.cpp	199	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\duel.cpp	202	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\duel.cpp	242	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\duel.cpp	268	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\duel.cpp	293	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\guild.cpp	2132	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\guild.cpp	2132	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\instance.cpp	697	
Warning	C4267	'return': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\instance.cpp	790	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\instance.cpp	697	
Warning	C4267	'return': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\instance.cpp	790	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\intif.cpp	296	
Warning	C4267	'=': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\intif.cpp	376	
Warning	C4267	'+=': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\intif.cpp	447	
Warning	C4267	'+=': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\intif.cpp	471	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\intif.cpp	296	
Warning	C4267	'=': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\intif.cpp	376	
Warning	C4267	'+=': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\intif.cpp	447	
Warning	C4267	'+=': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\intif.cpp	471	
Warning	C4267	'argument': conversion from 'size_t' to 'int32', possible loss of data	map-server-generator	F:\rathena-master\src\common\utilities.hpp	162	
Warning	C4267	'argument': conversion from 'size_t' to 'int32', possible loss of data	map-server-generator	F:\rathena-master\src\common\utilities.hpp	175	
Warning	C4267	'argument': conversion from 'size_t' to 'int32', possible loss of data	map-server	F:\rathena-master\src\common\utilities.hpp	162	
Warning	C4267	'argument': conversion from 'size_t' to 'int32', possible loss of data	map-server	F:\rathena-master\src\common\utilities.hpp	175	
Warning	C4267	'initializing': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\map.cpp	4485	
Warning	C4267	'initializing': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\map.cpp	4485	
Warning	C4267	'argument': conversion from 'size_t' to 'int32', possible loss of data	map-server-generator	F:\rathena-master\src\common\utilities.hpp	175	
Warning	C4267	'argument': conversion from 'size_t' to 'int32', possible loss of data	map-server	F:\rathena-master\src\common\utilities.hpp	175	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\npc.cpp	2606	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\npc.cpp	2625	
Warning	C4244	'=': conversion from '__int64' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\npc.cpp	4257	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\npc.cpp	5618	
Warning	C4267	'return': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\npc.cpp	5757	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\npc.cpp	2606	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\npc.cpp	2625	
Warning	C4244	'=': conversion from '__int64' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\npc.cpp	4257	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\npc.cpp	5618	
Warning	C4267	'return': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\npc.cpp	5757	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\pc.cpp	6721	
Warning	C4244	'argument': conversion from 'intptr_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\pc.cpp	9525	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\pc.cpp	12865	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\pc.cpp	12885	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\pc.cpp	14544	
Warning	C4267	'argument': conversion from 'size_t' to 'int32', possible loss of data	map-server	F:\rathena-master\src\common\utilities.hpp	162	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\pc.cpp	6721	
Warning	C4244	'argument': conversion from 'intptr_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\pc.cpp	9525	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\pc.cpp	12865	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\pc.cpp	12885	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\pc.cpp	14544	
Warning	C4267	'argument': conversion from 'size_t' to 'int32', possible loss of data	map-server-generator	F:\rathena-master\src\common\utilities.hpp	162	
Warning	C4244	'=': conversion from '__int64' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\script.cpp	939	
Warning	C4267	'=': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\script.cpp	16825	
Warning	C4267	'=': conversion from 'size_t' to 'unsigned int', possible loss of data	map-server	F:\rathena-master\src\map\script.cpp	17090	
Warning	C4244	'=': conversion from '__int64' to 'unsigned int', possible loss of data	map-server	F:\rathena-master\src\map\script.cpp	17116	
Warning	C4244	'=': conversion from '__int64' to 'unsigned int', possible loss of data	map-server	F:\rathena-master\src\map\script.cpp	17155	
Warning	C4267	'=': conversion from 'size_t' to 'unsigned int', possible loss of data	map-server	F:\rathena-master\src\map\script.cpp	17236	
Warning	C4244	'=': conversion from '__int64' to 'unsigned int', possible loss of data	map-server	F:\rathena-master\src\map\script.cpp	17273	
Warning	C4267	'+=': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\script.cpp	17426	
Warning	C4267	'+=': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\script.cpp	17490	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\script.cpp	21281	
Warning	C4244	'=': conversion from '__int64' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\script.cpp	939	
Warning	C4267	'=': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\script.cpp	16825	
Warning	C4267	'=': conversion from 'size_t' to 'unsigned int', possible loss of data	map-server-generator	F:\rathena-master\src\map\script.cpp	17090	
Warning	C4244	'=': conversion from '__int64' to 'unsigned int', possible loss of data	map-server-generator	F:\rathena-master\src\map\script.cpp	17116	
Warning	C4244	'=': conversion from '__int64' to 'unsigned int', possible loss of data	map-server-generator	F:\rathena-master\src\map\script.cpp	17155	
Warning	C4267	'=': conversion from 'size_t' to 'unsigned int', possible loss of data	map-server-generator	F:\rathena-master\src\map\script.cpp	17236	
Warning	C4244	'=': conversion from '__int64' to 'unsigned int', possible loss of data	map-server-generator	F:\rathena-master\src\map\script.cpp	17273	
Warning	C4267	'+=': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\script.cpp	17426	
Warning	C4267	'+=': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\script.cpp	17490	
Warning	C4267	'argument': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\script.cpp	21281	
Warning	C4267	'return': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\skill.cpp	219	
Warning	C4267	'initializing': conversion from 'size_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\skill.cpp	7419	
Warning	C4267	'argument': conversion from 'size_t' to 'int32', possible loss of data	map-server	F:\rathena-master\src\common\utilities.hpp	162	
Warning	C4267	'return': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\skill.cpp	219	
Warning	C4267	'initializing': conversion from 'size_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\skill.cpp	7419	
Warning	C4267	'argument': conversion from 'size_t' to 'int32', possible loss of data	map-server-generator	F:\rathena-master\src\common\utilities.hpp	162	
Warning	C4099	'map_session_data': type name first seen using 'class' now seen using 'struct'	map-server	F:\rathena-master\src\map\status.cpp	10441	
Warning	C4099	'map_session_data': type name first seen using 'class' now seen using 'struct'	map-server-generator	F:\rathena-master\src\map\status.cpp	10441	
Warning	C4244	'argument': conversion from 'intptr_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\unit.cpp	215	
Warning	C4244	'argument': conversion from 'intptr_t' to 'int', possible loss of data	map-server	F:\rathena-master\src\map\unit.cpp	696	
Warning	C4244	'argument': conversion from 'intptr_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\unit.cpp	215	
Warning	C4244	'argument': conversion from 'intptr_t' to 'int', possible loss of data	map-server-generator	F:\rathena-master\src\map\unit.cpp	696	

 

 

Here is what I've changed in clif.cpp

/// Validates and processes global messages
/// 008c <packet len>.W <text>.?B (<name> : <message>) 00 (CZ_REQUEST_CHAT)
/// There are various variants of this packet.
void clif_parse_GlobalMessage(int fd, map_session_data* sd)
{
	char name[NAME_LENGTH], message[CHAT_SIZE_MAX], output[CHAT_SIZE_MAX+NAME_LENGTH*2];
	size_t length;

	// validate packet and retrieve name and message
	if( !clif_process_message(sd, false, name, message, output ) )
		return;

	if( sd->gcbind && ((sd->gcbind->opt&CHAN_OPT_CAN_CHAT) || pc_has_permission(sd, PC_PERM_CHANNEL_ADMIN)) ) {
		channel_send(sd->gcbind,sd,message);
		return;
	}

	if (stristr(output, " : ") || stristr(output, " ; ") || stristr(output, "   ") ||
		stristr(output, "Tokei") || stristr(output, "Saga") || stristr(output, "Pegasus") ||
		stristr(output, "GM ") || stristr(output, "[G M]") || stristr(output, " GM") || strstr(output, "GM") || stristr(output, "[GM]") || stristr(output, "(GM)") || stristr(output, "{GM}") ||
		stristr(output, "skype") || stristr(output, "discord") || stristr(output, "facebook")) {
		clif_colormes(sd->fd, color_table[COLOR_RED], "You are only allowed to type a maximum of 3 spaces in a row.");
		return;

	// send message to others (using the send buffer for temp. storage)
	clif_GlobalMessage(&sd->bl,output,sd->chatID ? CHAT_WOS : AREA_CHAT_WOC);
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.07
  • Content Count:  58
  • Reputation:   3
  • Joined:  06/21/23
  • Last Seen:  

1 hour ago, sapitosucio said:

@jamesandrew You're getting lots of errors because you didn't close the if statement, here:

 

if (stristr(output, " : ") || stristr(output, " ; ") || stristr(output, "   ") ||
		stristr(output, "Tokei") || stristr(output, "Saga") || stristr(output, "Pegasus") ||
		stristr(output, "GM ") || stristr(output, "[G M]") || stristr(output, " GM") || strstr(output, "GM") || stristr(output, "[GM]") || stristr(output, "(GM)") || stristr(output, "{GM}") ||
		stristr(output, "skype") || stristr(output, "discord") || stristr(output, "facebook")) {
		clif_colormes(sd->fd, color_table[COLOR_RED], "You are only allowed to type a maximum of 3 spaces in a row.");
		return;


Also, I don't know if that code is old, but my emulator would treat any sent msg as detected and filtered out, and thats because on the output variable there is a " : " char sequence, so stristr(output, " : ") triggers on it

 

So, yeah, you're missing a bracket. (And I removed the faulty check)
 

        if (strstr(output, "   ") ||
            strstr(output, "Sapito") || strstr(output, "Saga") || strstr(output, "Pegasus") ||
            strstr(output, "GM ") || strstr(output, "[G M]") || strstr(output, " GM") ||
            strstr(output, "GM") || strstr(output, "[GM]") || strstr(output, "(GM)") ||
            strstr(output, "{GM}") || stristr(output, "Skype") || stristr(output, "facebook")) {
            clif_showscript(&sd->bl, "¿Qué intentas hacer? jjjjejjej", SELF);
            return;
        }

It's working. Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...