Issue information

Issue ID
#4943
Status
Unable to Reproduce
Severity
None
Started
Hercules Elf Bot
Jun 1, 2011 14:56
Last Post
Hercules Elf Bot
Jun 23, 2012 9:27
Confirmation
N/A

Hercules Elf Bot - Jun 1, 2011 14:56

Originally posted by [b]streiker[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4943

The summon script command doesn't work, the player uses Call Homunculus (the pose) but the mob never appears, I changed the script command to this, and it works.

CODE
BUILDIN_FUNC(summon)
{
    int _class, timeout=0;
    const char *str,*event="";
    TBL_PC *sd;
    struct mob_data *md;
    int tick = gettick();

    sd=script_rid2sd(st);
    if (!sd) return 0;
    
    str    =script_getstr(st,2);
    _class  =script_getnum(st,3);
    timeout=script_getnum(st,4);
    if( script_hasdata(st,5) ){
        event=script_getstr(st,5);
        check_event(st, event);
    }


    md = mob_once_spawn_sub(&sd->bl, sd->bl.m, -1, -1, str, _class, event);
    if (md) {
        md->master_id=sd->bl.id;
        md->special_state.ai=1;
        md->deletetimer=add_timer(tick+timeout,mob_timer_delete,md->bl.id,0);
        mob_spawn (md); //Now it is ready for spawning.
        clif_specialeffect(&md->bl,344,AREA);
        sc_start4(&md->bl, SC_MODECHANGE, 100, 1, 0, MD_AGGRESSIVE, 0, 60000);
        clif_skill_poseffect(&sd->bl,AM_CALLHOMUN,1,sd->bl.x,sd->bl.y,tick);
    }
    return 0;

//...
BUILDIN_DEF(summon,"sii?"), // summons a slave monster [Celest]


}


Also I changed the time parameter to be obligatory (IMG:style_emoticons/default/tongue.gif)

Well, see yourself.

Hercules Elf Bot - Dec 17, 2011 4:52

Originally posted by [b]Ind[/b]
Couldn't reproduce on trunk