Jump to content
metin2dev
Mali61

c++ [RLS]Official Block System[Messenger]

Recommended Posts

Am 9.7.2017 um 21:54 schrieb Dimitar:

How did you mean it? I just did these steps: https://pastebin.com/WFHspvrw , nothing else.

Did you changed the packet.h on serversource & binary too? - so on both packet.h files?
Because if you have in serversource packet.h 29 and in binary packet.h 30 -> you will get the "Unknown packet header" problem.

Best regards.

Share this post


Link to post
Share on other sites
La 09.07.2017 la 10:09, flexio a spus:

When a player write from channel 1 to 99(example) core drops. 

input_main.cpp


else if (MessengerManager::instance().IsBlocked_Target(ch->GetName(), pkChr->GetName()))

change to


else if (pkChr && MessengerManager::instance().IsBlocked_Target(ch->GetName(), pkChr->GetName()))

 

La 29.06.2017 la 15:12, Mali61 a spus:

I know :facepalm: simple only 1 return

if you do this, you can send/recive mesages to/from the person you blocked without any error. :(

Share this post


Link to post
Share on other sites

Hi guys i have a Problem with this System: 

Client Sysser

0727 19:16:33089 :: AttributeError
0727 19:16:33089 :: : 
0727 19:16:33089 :: 'module' object has no attribute 'IsBlockByName'
0727 19:16:33089 :: 

 

I can`t remove blocked players. 

and when i click on a player i cant see the bar with Whisper, Exchange Friend Duel and with Gm account i see the bar

i dont understand Where I should insert that -.- 

//In Server-Side:

	if (MessengerManager::instance().IsBlocked(player1name, player2name))
	{
		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("BLOKLANDIN"));
		return;
	}
	if (MessengerManager::instance().IsFriend(player1name, player2name))
	{
		ChatPacket(CHAT_TYPE_INFO, "This is your friend.");
		return;
	}
//In Client:
	if messenger.IsBlockByName(player2name) or messenger.IsBlockByName(player1name):
		return
		
//In Quest
	if pc.is_blocked(targetname) == true then
		say("This player blocked")
		
	if pc.is_friend(targetname) == true then
		say("This is your friend")

 

Share this post


Link to post
Share on other sites
Acum 18 ore, Reco a spus:

Hi guys i have a Problem with this System: 

Client Sysser

0727 19:16:33089 :: AttributeError
0727 19:16:33089 :: : 
0727 19:16:33089 :: 'module' object has no attribute 'IsBlockByName'
0727 19:16:33089 :: 

 

I can`t remove blocked players. 

and when i click on a player i cant see the bar with Whisper, Exchange Friend Duel and with Gm account i see the bar

i dont understand Where I should insert that -.- 


//In Server-Side:

	if (MessengerManager::instance().IsBlocked(player1name, player2name))
	{
		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("BLOKLANDIN"));
		return;
	}
	if (MessengerManager::instance().IsFriend(player1name, player2name))
	{
		ChatPacket(CHAT_TYPE_INFO, "This is your friend.");
		return;
	}
//In Client:
	if messenger.IsBlockByName(player2name) or messenger.IsBlockByName(player1name):
		return
		
//In Quest
	if pc.is_blocked(targetname) == true then
		say("This player blocked")
		
	if pc.is_friend(targetname) == true then
		say("This is your friend")

 

you can insert that if u want to do something by yourself. I mean if pc.is_blocked == true begin say("somebody hates you") .Function that you can use in client/server source /quest.

Share this post


Link to post
Share on other sites
On 28.07.2017 at 6:04 PM, ProblemsIn said:

Is little bit weird when u block someone, u can't see him but he can see u.

If i block a guy is because i don't want to he know i'm there, i guess

 

That feature doesn't included this topic

Share this post


Link to post
Share on other sites
5 hours ago, Mali61 said:

That feature doesn't included this topic

U could add that feature on the system. The system itself would be much more appealing.

If I block someone and that person keeps seeing me ... It does not make much sense, since I can not see her anymore and her can see me normally.
It was much better if it were the other way round, I say.

It's just an opinion.

Share this post


Link to post
Share on other sites

@Mali61 if you changed something in the system,something doesn't work in cmd_general

cmd_general.cpp: In function 'void do_pvp(CHARACTER*, const char*, int, int)':
cmd_general.cpp:802: error: 'tch' was not declared in this scope
cmd_general.cpp:808: error: 'tch' was not declared in this scope
 

Share this post


Link to post
Share on other sites
On 28.02.2018 at 4:23 PM, Dobrescu Sebastian said:

void MessengerManager::RemoveFromBlockList(MessengerManager::keyA account, MessengerManager::keyA companion)

You have to escape it. Haven't you learned anything from the past sql exploit ?

 

 

No, whatever

You know that bug fixed, you can fix like the messenger

Share this post


Link to post
Share on other sites
Just now, Mali61 said:

No, whatever

You know that bug fixed, you can fix like the messenger

Yes, but i saw others using it without the fix. And i was like " what the hell man, people just don't want to learn from the past "

Share this post


Link to post
Share on other sites
10 minutes ago, Dobrescu Sebastian said:

Yes, but i saw others using it without the fix. And i was like " what the hell man, people just don't want to learn from the past "

Yes bro I can't learn anything from the past sorry

Share this post


Link to post
Share on other sites
1 hour ago, Mali61 said:

Yes bro I can't learn anything from the past sorry

I wasn't talking about you. I appreciate that there are people who post free systems. I am taking about owner of server who download a system, but don't look in code. Every code can be improved. I know people who used systems from internet and got their servers f.up. It's not about who created the system, it's about who use it.

Please accept my apologies, I didn't mean to upset you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×