From 1792fa7dcbae6d0678d9672ccb38eba88e87c757 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Mon, 7 Apr 2008 21:04:28 +0000 Subject: * Made script command 'flagemblem' and guild_emblem_change send an update of the emblem_id to the players in the area. - known bug: ui components that are displaying the emblem at the time (emblem in flag npc and emblem over head in gvg maps) are not updated, but putting the mouse over the target shows the new emblem * Modified script command 'guardian': - returns the id of the guardian - if guardian index isn't supplied, it generates a temporary guardian * Implemented support for temporary guardians (not saved with castle). * Added missing includes from r12520. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12525 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index 56a46a015..12c43972f 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -6327,6 +6327,22 @@ int clif_guild_emblem(struct map_session_data *sd,struct guild *g) return 0; } +/// Sends update of the guild id/emblem id to everyone in the area. +void clif_guild_emblem_area(struct block_list* bl) +{ + char buf[12]; + + nullpo_retv(bl); + + // TODO this packet doesn't force the update of ui components that have the emblem visible + // (emblem in the flag npcs and emblem over the head in agit maps) [FlavioJS] + WBUFW(buf,0) = 0x1B4; + WBUFL(buf,2) = bl->id; + WBUFL(buf,6) = status_get_guild_id(bl); + WBUFW(buf,10) = status_get_emblem_id(bl); + clif_send(buf, 12, bl, AREA_WOS); +} + /*========================================== * Send guild skills *------------------------------------------*/ -- cgit v1.2.3-70-g09d2