summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-24 02:45:17 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-24 02:45:17 +0000
commit1ee38cb82d69a58dbff91a148d68658ab679e352 (patch)
tree1bf7bfc78a66591d3cd73415cf32a5ed2ca763b3 /src/map/clif.c
parentbbd2f8ef6d5b1f58d921edd627139a7bc32114ed (diff)
downloadhercules-1ee38cb82d69a58dbff91a148d68658ab679e352.tar.gz
hercules-1ee38cb82d69a58dbff91a148d68658ab679e352.tar.bz2
hercules-1ee38cb82d69a58dbff91a148d68658ab679e352.tar.xz
hercules-1ee38cb82d69a58dbff91a148d68658ab679e352.zip
- Idle skills won't trigger while the mob is walking.
- Idle skills will now trigger each IDLE_SKILL_INTERVAL iterations (10 currently) - Added support for walk packet 0x22c (disabled currently as it's non-walk packet equivalent is yet missing), it will be used when PACKETVER is set to 7 or above. - Normal walking will now also trigger mob skills (due to the walk skill condition) - Updated mob_skill_db: all idle and walk skills had their rate go up x10. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6245 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c40
1 files changed, 39 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 27fff5618..bdc81724d 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -981,7 +981,45 @@ static int clif_set007b(struct block_list *bl, struct view_data *vd, struct unit
lv = status_get_lv(bl);
if(pcdb_checkid(vd->class_)) {
-#if PACKETVER > 3
+#if PACKETVER > 6
+ //Packet 0x22c, still in construction. [Skotlex]
+ memset(buf,0,packet_len_table[0x22c]);
+
+ WBUFW(buf,0)=0x22c;
+ WBUFL(buf,2)=bl->id;
+ WBUFW(buf,6)=status_get_speed(bl);
+ if (sc) {
+ WBUFW(buf,8)= sc->opt1;
+ WBUFW(buf,10)= sc->opt2;
+ WBUFL(buf,12)= sc->option;
+ WBUFL(buf,48)= sc->opt3;
+ }
+ WBUFW(buf,16)=vd->class_;
+ WBUFW(buf,18)=vd->hair_style;
+ WBUFW(buf,20)=vd->weapon;
+ WBUFW(buf,22)=vd->shield;
+ WBUFW(buf,24)=vd->head_bottom;
+ WBUFL(buf,26)=gettick();
+ WBUFW(buf,30)=vd->head_top;
+ WBUFW(buf,32)=vd->head_mid;
+ WBUFW(buf,34)=vd->hair_color;
+ WBUFW(buf,36)=vd->cloth_color;
+ WBUFW(buf,38)=sd?sd->head_dir:unit_getdir(bl);
+ WBUFL(buf,40)=guild_id;
+ WBUFW(buf,44)=emblem_id;
+ if (sd) {
+ WBUFW(buf,46)=sd->status.manner;
+ WBUFB(buf,52)=sd->status.karma;
+ }
+ WBUFB(buf,53)=vd->sex;
+ WBUFPOS2(buf,54,bl->x,bl->y,ud->to_x,ud->to_y);
+ WBUFB(buf,59)=0x88; // Deals with acceleration in directions. [Valaris]
+ WBUFB(buf,60)=0;
+ WBUFB(buf,61)=0;
+ WBUFW(buf,62)=clif_setlevel(lv);
+
+ return packet_len_table[0x22c];
+#elif PACKETVER > 3
memset(buf,0,packet_len_table[0x1da]);
WBUFW(buf,0)=0x1da;