Issue information

Issue ID
#2116
Status
Unable to Fix
Severity
None
Started
Hercules Elf Bot
Aug 24, 2008 22:11
Last Post
Hercules Elf Bot
Aug 24, 2008 22:11
Confirmation
N/A

Hercules Elf Bot - Aug 24, 2008 22:11

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

I do not know if it was correct, the more I was doing a code to call this system by a script, I do not know create in hand, the following code:

CODE
BUILDIN_FUNC(creatmercenay)
{
    TBL_PC* sd;
    int class_,lifetime=0;
    nullpo_retr(-1,sd);

    class_ = script_getnum(st, 2);
    sd = script_rid2sd(st);

    if( sd = NULL )
        return 0; // Player not attached!

    if( script_hasdata(st, 3) )
        lifetime = script_getnum(st, 3);

    merc_create(sd,class_,lifetime);
    return 0;
}


The Map Server-closes to start in the script, before giving estáva error of unknown package.
Problem in code or impossible to create?