disable level up message log on terminal console

International

Moderator: Moderators

Message
Author
exvee
Noob
Noob
Posts: 4
Joined: 31 May 2017, 01:12
Noob?: No

disable level up message log on terminal console

#1 Post by exvee »

is there any way to disable this ?

Unknown #4436871 unknown unit_levelup effect (8)
Unknown #5353101 gained a level!
Unknown #5353101 gained a job level!


i've been playing around with squelch domain, but cant find right setting to disable this message.
my current config

verbose 0
showDomain 1
showDomain_NPC parseMsg_presence
showDomain_Shop list
squelchDomains console, effect, emotion, parseMsg_statuslook, skill, selfSkill, drop, attacked, attackMon, schat, exp, refine

c4c1n6kr3m1
The Way Of Human
The Way Of Human
Posts: 150
Joined: 24 Mar 2012, 04:13
Noob?: Yes

Re: disable level up message log on terminal console

#2 Post by c4c1n6kr3m1 »

those messages does not have a Domain
so you need to change from source

Mortimal
Developers
Developers
Posts: 389
Joined: 01 Nov 2008, 15:31
Noob?: No

Re: disable level up message log on terminal console

#3 Post by Mortimal »

src/Network/Receive/ServerType0.pm line 4388

Code: Select all

sub unit_levelup {
	my ($self, $args) = @_;

	my $ID = $args->{ID};
	my $type = $args->{type};
	my $actor = Actor::get($ID);
	if ($type == LEVELUP_EFFECT) {
		message TF("%s gained a level!\n", $actor);
		Plugins::callHook('base_level', {name => $actor});
	} elsif ($type == JOBLEVELUP_EFFECT) {
		message TF("%s gained a job level!\n", $actor);
		Plugins::callHook('job_level', {name => $actor});
	} elsif ($type == REFINING_FAIL_EFFECT) {
		message TF("%s failed to refine a weapon!\n", $actor), "refine";
	} elsif ($type == REFINING_SUCCESS_EFFECT) {
		message TF("%s successfully refined a weapon!\n", $actor), "refine";
	} elsif ($type == MAKEITEM_AM_SUCCESS_EFFECT) {
		message TF("%s successfully created a potion!\n", $actor), "refine";
	} elsif ($type == MAKEITEM_AM_FAIL_EFFECT) {
		message TF("%s failed to create a potion!\n", $actor), "refine";
	} else {
		message TF("%s unknown unit_levelup effect (%d)\n", $actor, $type);
	}
}
comment "message" lines u need with #
like

Code: Select all

#message TF("%s gained a level!\n", $actor);
Please use pin function for uploading your file contents!

exvee
Noob
Noob
Posts: 4
Joined: 31 May 2017, 01:12
Noob?: No

Re: disable level up message log on terminal console

#4 Post by exvee »

alright, thanks !

mojangfair
Noob
Noob
Posts: 1
Joined: 16 Aug 2023, 02:52
Noob?: No

Re: disable level up message log on terminal console

#5 Post by mojangfair »

The aforementioned communications lack a specific domain, thus necessitating a modification in the source. mini crossword

User avatar
SkylorD
Moderators
Moderators
Posts: 1166
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: disable level up message log on terminal console

#6 Post by SkylorD »

You wanna mean : Coupling doesnt allow this kind of modification.
Learn rules

Niodan
Plain Yogurt
Plain Yogurt
Posts: 83
Joined: 03 Apr 2017, 00:19
Noob?: No

Re: disable level up message log on terminal console

#7 Post by Niodan »

this post been dead XD

Post Reply