summaryrefslogtreecommitdiff
path: root/src/map
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
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')
-rw-r--r--src/map/clif.c19
-rw-r--r--src/map/clif.h4
-rw-r--r--src/map/skill.c5
3 files changed, 13 insertions, 15 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);
}
diff --git a/src/map/clif.h b/src/map/clif.h
index bda4d38ae..40916cb58 100644
--- a/src/map/clif.h
+++ b/src/map/clif.h
@@ -123,7 +123,7 @@ int clif_damage(struct block_list* src,struct block_list *dst,unsigned int tick,
void clif_takeitem(struct block_list* src,struct block_list* dst);
void clif_sitting(struct block_list* bl);
void clif_standing(struct block_list* bl);
-int clif_changelook(struct block_list *,int,int); // area
+void clif_changelook(struct block_list *bl,int type,int val); // area
void clif_changetraplook(struct block_list *bl,int val); // area
void clif_refreshlook(struct block_list *bl,int id,int type,int val,int area); //area specified in 'area'
int clif_arrowequip(struct map_session_data *sd,int val); //self
@@ -221,7 +221,7 @@ int clif_produceeffect(struct map_session_data* sd,int flag,int nameid);
void clif_skill_setunit(struct skill_unit *unit);
void clif_skill_delunit(struct skill_unit *unit);
-int clif_01ac(struct block_list *bl);
+void clif_01ac(struct block_list* bl);
int clif_autospell(struct map_session_data *sd,int skilllv);
int clif_devotion(struct map_session_data *sd);
diff --git a/src/map/skill.c b/src/map/skill.c
index d8dd20313..dc26db4ab 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -7418,10 +7418,7 @@ int skill_unit_onplace_timer (struct skill_unit *src, struct block_list *bl, uns
sg->val2=bl->id;
} else
sec = 3000; //Couldn't trap it?
- //clif_01ac(&src->bl); //Removed? Check the openkore description of this packet: [Skotlex]
- // 01AC: long ID
- // Indicates that an object is trapped, but ID is not a
- // valid monster or player ID.
+ if( sg->unit_id == UNT_ANKLESNARE ) clif_01ac(&src->bl); // mysterious packet
sg->limit = DIFF_TICK(tick,sg->tick)+sec;
sg->interval = -1;
src->range = 0;