BUILDIN(leaveparty) { TBL_PC* sd = script_rid2sd(st); if( sd == NULL ) { script_pushint(st, 0); return true; } script_pushint(st, party->leave(sd)); return true; }