viewing paste getspiritball | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
BUILDIN_FUNC(getspiritball) {
    struct map_session_data *sd;
 
    if (script_getnum(st,2))
        sd = map_charid2sd(script_getnum(st,2));
    else
        sd = script_rid2sd(st);
 
    if (!sd) {
        script_pushint(st,-1);
        return SCRIPT_CMD_FAILURE;
    }
    script_pushint(st,sd->spiritball);
    return SCRIPT_CMD_SUCCESS;
}
 
BUILDIN_DEF(getspiritball,"?"),
Viewed 949 times, submitted by cydh_r.