Changes

Jump to navigation Jump to search

User:Ago

1,458 bytes added, 08:42, 23 April 2012
→‎Tools: Wurm skill ratio
= Tools =
== Wurm skill ratio ==
Checks wurm log files for events related to skill gains and respective actions and computes skill gain ratio and gain per hour.
 
* [http://gotti.dnsalias.org/wurm/miningratio Web install]
* [http://gotti.dnsalias.org/wurm/miningratio/miningratio.zip Binaries]
* Requirements: .NET Framework 4.0 Client profile
 
http://gotti.dnsalias.org/wurm/miningratio/miningratio.png
 
Additional scripts for other skills can be added to the %LOCALAPPDATA%\WurmSkillRatio directory.
 
The scripts are written in CS-Script which is essentially C#. All files with a *.cs extension are automaticly picked up.
They have to implement the isActionStart, isActionEnd, isSkillGain and getName methods.
 
Example: ropemaking.cs (covering bow strings only)
<pre>
using System;
using System.Text.RegularExpressions;
 
public class RopemakingMessageParser
{
private Regex reStart = new Regex("You start to work with the rope tool");
private Regex reEnd = new Regex("You (almost made it, but the|create a) bow string");
private Regex reSkill = new Regex("Ropemaking increased");
 
public bool isActionStart(String message)
{
return reStart.IsMatch(message);
}
public bool isActionEnd(String message)
{
return reEnd.IsMatch(message);
}
public bool isSkillGain(String message)
{
return reSkill.IsMatch(message);
}
public String getName()
{
return "Ropemaking";
}
}
</pre>
 
 
 
== fulldate.pl ==
Parses Wurm log files and expands the timestamp to include the date
editor
1,247

edits

Navigation menu