Issue information

Issue ID
#5458
Status
Fixed
Severity
High
Started
Hercules Elf Bot
Mar 17, 2012 19:57
Last Post
Hercules Elf Bot
Apr 19, 2012 18:54
Confirmation
Yes (1)
No (0)

Hercules Elf Bot - Mar 17, 2012 19:57

Originally posted by [b]sizenine[/b]
any guild member that has guild tax on them crashes the map server when that character attacks monsters.

if you want to test this, set guild tax (seems that 50% gives better results) and summon some monsters to kill. after a certain amount of kills, the map-server will crash.

Im currently using r15689

Hercules Elf Bot - Mar 17, 2012 21:07

Originally posted by [b]Vali[/b]
Also happens with tax at 0%.

Hercules Elf Bot - Mar 17, 2012 21:18

Originally posted by [b]Vali[/b]
And also without be in a guild. The map server crashes after kill some monsters

[CODE]
/*==========================================
* Negligent mode MOB AI (PC is not in near)
*------------------------------------------*/
static int mob_ai_sub_lazy(struct mob_data *md, va_list args)
{
unsigned int tick;
nullpo_ret(md); //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< here
if(md->bl.prev == NULL)
return 0;
tick = va_arg(args,unsigned int);
if (battle_config.mob_ai&0x20 && map[md->bl.m].users>0)
return (int)mob_ai_sub_hard(md, tick);
if (md->bl.prev==NULL || md->status.hp == 0)
return 1;
if(battle_config.mob_active_time &&
md->last_pcneartime &&
!(md->status.mode&MD_BOSS) &&
DIFF_TICK(tick,md->last_thinktime) > MIN_MOBTHINKTIME)
{
if (DIFF_TICK(tick,md->last_pcneartime) < battle_config.mob_active_time)
return (int)mob_ai_sub_hard(md, tick);
md->last_pcneartime = 0;
}
if(battle_config.boss_active_time &&
md->last_pcneartime &&
(md->status.mode&MD_BOSS) &&
DIFF_TICK(tick,md->last_thinktime) > MIN_MOBTHINKTIME)
{
if (DIFF_TICK(tick,md->last_pcneartime) < battle_config.boss_active_time)
return (int)mob_ai_sub_hard(md, tick);
md->last_pcneartime = 0;
}
if(DIFF_TICK(tick,md->last_thinktime)< 10*MIN_MOBTHINKTIME)
return 0;
md->last_thinktime=tick;
if (md->master_id) {
mob_ai_sub_hard_slavemob (md,tick);
return 0;
}
[/CODE]

Hercules Elf Bot - Mar 17, 2012 21:30

Originally posted by [b]Ind[/b]
Should be fixed by [rev=15701]