Hi,
Did you encounter this type of issue ? the extratravel set for mounts , ie. 24 free extra travel given by stallion, does not add to daily travel allowance set with the cities module...
At the begining of each day, count travel gives only cities module set allowance...
Any idea why this happens or how to remedy it ?
The code that I guess it's incident in the issue is this:
case "count-travels":
global $playermount;
$args['available'] += get_module_setting("allowance");
if ($playermount && isset($playermount['mountid'])) {
$id = $playermount['mountid'];
$extra = get_module_objpref("mounts", $id, "extratravel");
$args['available'] += $extra;
}
$args['used'] += get_module_pref("traveltoday");
break;
++
case "mountfeatures":
$extra = get_module_objpref("mounts", $args['id'], "extratravel");
$args['features']['Travel']=$extra;
break;
++
case "newday":
if ($args['resurrection'] != 'true') {
set_module_pref("traveltoday",0);
}
set_module_pref("paidcost", 0);
break;
++
case "charstats":
if ($session['user']['alive']){
//addcharstat("Personal Info");
//addcharstat("Home City", get_module_pref("homecity"));
$args = modulehook("count-travels", array('available'=>0,'used'=>0));
$free = max(0, $args['available'] - $args['used']);
addcharstat("Extra Info");
addcharstat("Free Travel", $free);
}
break;
I thought maybe you modified something to the mounts core files... I don't know...
Any hint?
Thank You.