summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-10 22:25:37 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-10 22:25:37 +0000
commit24414fd7928e83c7d38bbb1318315c187dfef7ce (patch)
treec13aa30167452f53e57434cc5c6fb1cfd277b25d /src/map/clif.c
parent8f03106eccfbf42b72a86c2834aff994a7a58a2a (diff)
downloadhercules-24414fd7928e83c7d38bbb1318315c187dfef7ce.tar.gz
hercules-24414fd7928e83c7d38bbb1318315c187dfef7ce.tar.bz2
hercules-24414fd7928e83c7d38bbb1318315c187dfef7ce.tar.xz
hercules-24414fd7928e83c7d38bbb1318315c187dfef7ce.zip
Re-enabled packet 0x1ac to be sent when something gets ankle-snared
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11400 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index b9ec7606b..ba0c0ad6f 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -3946,7 +3946,7 @@ static void clif_getareachar_skillunit(struct map_session_data *sd, struct skill
WFIFOB(fd,14)=UNT_ATTACK_SKILLS; //Use invisible unit id for traps.
else
WFIFOB(fd,14)=unit->group->unit_id;
- WFIFOB(fd,15)=0;
+ WFIFOB(fd,15)=1; // ignored by client (always gets set to 1)
WFIFOSET(fd,packet_len(0x11f));
if(unit->group->skill_id == WZ_ICEWALL)
@@ -3985,19 +3985,19 @@ void clif_skill_delunit(struct skill_unit *unit)
/*==========================================
* Unknown... trap related?
+ * Sent when an object gets ankle-snared
* Only affects units with class [139,153] client-side
+ * R 01ac <object id>.l
*------------------------------------------*/
-int clif_01ac(struct block_list *bl)
+void clif_01ac(struct block_list* bl)
{
- unsigned char buf[32];
-
- nullpo_retr(0, bl);
+ unsigned char buf[6];
+ nullpo_retv(bl);
- WBUFW(buf, 0) = 0x1ac;
- WBUFL(buf, 2) = bl->id;
+ WBUFW(buf,0) = 0x1ac;
+ WBUFL(buf,2) = bl->id;
clif_send(buf,packet_len(0x1ac),bl,AREA);
- return 0;
}
/*==========================================
@@ -4527,6 +4527,7 @@ int clif_skill_poseffect(struct block_list *src,int skill_id,int val,int x,int y
/*==========================================
* 場所スキルエフェクト表示
*------------------------------------------*/
+//FIXME: this is just an AREA version of clif_getareachar_skillunit()
void clif_skill_setunit(struct skill_unit *unit)
{
unsigned char buf[128];
@@ -4557,7 +4558,7 @@ void clif_skill_setunit(struct skill_unit *unit)
WBUFB(buf,14)=unit->val2&UF_SONG?UNT_DISSONANCE:UNT_UGLYDANCE;
else
WBUFB(buf,14)=unit->group->unit_id;
- WBUFB(buf,15)=0;
+ WBUFB(buf,15)=1; // ignored by client (always gets set to 1)
clif_send(buf,packet_len(0x11f),&unit->bl,AREA);
}