toad posted: (22nd Jan 2011 08:53 am)
nope.
Looking at your error I think it in world.cpp check all this stuff
in world.cpp find
void world_timed_save(void *world_void)
{
World *world = static_cast<World *>(world_void);
UTIL_PTR_VECTOR_FOREACH(world->characters, Character, character)
{
//character->Refresh();
character->Save();
}
world->guildmanager->SaveAll();
}
add this here
void world_effect(void *world_void)// to do set up quake timers
{
World *world = static_cast<World *>(world_void);
UTIL_PTR_VECTOR_FOREACH(world->maps, Map, map)
{
int p = util::rand(0, 1); int p1 = util::rand(0, 2);
int p2 = util::rand(3, 4); int p3 = util::rand(6, 8);
if(map->effect == 3)
{
map->Effect(1, p);
}
if(map->effect == 4)
{
map->Effect(1, p1);
}
if(map->effect == 5)
{
map->Effect(1, p2);
}
if(map->effect == 6)
{
map->Effect(1, p3);
}
if(map->effect == 7)
{
map->Storm();
}
}
}
sroll down intell you find the timers look for this timer
event = new TimeEvent(world_recover, this, 90.0, Timer::FOREVER);
this->timer.Register(event);
event->Release();
then add this one right here below it!
event = new TimeEvent(world_effect, this, static_cast<double>(this->config["MapStorm"]), Timer::FOREVER);
this->timer.Register(event);
event->Release();