Where can i find $Settings::monster_log_file ?

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderator: Moderators

Message
Author
Myself379
Human
Human
Posts: 24
Joined: 05 Oct 2010, 09:46
Noob?: No

Where can i find $Settings::monster_log_file ?

#1 Post by Myself379 »

I wanted to modify this console command log

Code: Select all

exp monster 
Like adding a monster with using

$monsters_Killed[$i]{'nameID'}
$monsters_Killed[$i]{'name'}
$monsters_Killed[$i]{'count'}

However, when i search for monster_log_file , i found out that it can be found in misc.pm under the sub monsterLog

How can i edit this monsterLog() ? As i know that it will be empty every time openkore start and clear itself when openkore are closed.

Also i found out that in settings.pm there's a line

Code: Select all

$monster_log_file = File::Spec->catfile($logs_folder, "monster_log.txt");
where is the monster_log.txt? does it get destroyed every time openkore closes?

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Where can i find $Settings::monster_log_file ?

#2 Post by EternalHarvest »

Myself379 wrote:where is the monster_log.txt? does it get destroyed every time openkore closes?
Maybe you haven't enabled it?
http://wiki.openkore.com/index.php/monsterLog

Myself379
Human
Human
Posts: 24
Joined: 05 Oct 2010, 09:46
Noob?: No

Re: Where can i find $Settings::monster_log_file ?

#3 Post by Myself379 »

Oh , what i meant was actually is that how can i manually enter/modify/add an monster into the counter

Code: Select all

exp monster


like adding a Poring, ID 1002, kill count 10 into the "exp monster" command

Thanks for the feedback Harvest !!

It's okay i found it !!

simply run

Code: Select all

macro test {
[
	log @eval ($::monsters_Killed[8]{'nameID'} = 1002)
	log @eval ($::monsters_Killed[8]{'name'} = "Poring")
	log @eval ($::monsters_Killed[8]{'count'} = 0)
]
}
and when i type "exp monster", there's a number 8 with nameID = 1002, name = Poring, count = 0 appear ! Thanks alot for the insight harvest !!

Locked