Gerz - Sep 23, 2014 11:39
[code=auto:0]
BUILDIN(unittalk) {
int unit_id;
const char* message;
struct block_list* bl;
unit_id = script_getnum(st,2);
message = script_getstr(st, 3);
bl = map->id2bl(unit_id);
if( bl != NULL ) {
struct StringBuf sbuf;
StrBuf->Init(&sbuf);
StrBuf->Printf(&sbuf, "%s : %s", status->get_name(bl), message);
clif->disp_overhead(bl, StrBuf->Value(&sbuf));
if( bl->type == BL_PC )
clif->message(((TBL_PC*)bl)->fd, StrBuf->Value(&sbuf));
StrBuf->Destroy(&sbuf);
}
return true;
}
[/code]
What is this? Need?[code=auto:0]
if( bl->type == BL_PC )
clif->message(((TBL_PC*)bl)->fd, StrBuf->Value(&sbuf));
[/code]
Please check, message show twice...
AnnieRuru - Sep 23, 2014 12:35
let me fix this one, simple one
rathena already fixed this 1 year ago
[url="http://rathena.org/board/tracker/issue-7903-unittalk-duplicate-messages/"]http://rathena.org/board/tracker/issue-7903-unittalk-duplicate-messages/[/url]
AnnieRuru - Sep 23, 2014 12:38
fixed in
[url="https://github.com/HerculesWS/Hercules/commit/2bc31ad003a8c3283043c62d012a57edde794fba"]https://github.com/HerculesWS/Hercules/commit/2bc31ad003a8c3283043c62d012a57edde794fba[/url]