Issue information

Issue ID
#2308
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Oct 5, 2008 6:34
Last Post
Hercules Elf Bot
Oct 5, 2008 6:34
Confirmation
N/A

Hercules Elf Bot - Oct 5, 2008 6:34

Originally posted by [b]kamitsu[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2308

It just lacked a condition in the function:

CODE
int clif_slide(struct block_list *bl, int x, int y);


The mistake was that the players source, was not the sprite of the mob (disguise) to move in case it is a skill that moving clif_blown ().

Correction:

CODE
int clif_slide(struct block_list *bl, int x, int y){
    unsigned char buf[10];

    nullpo_retr(0, bl);

    WBUFW(buf, 0) = 0x01ff;
    WBUFL(buf, 2) = bl->id;
    WBUFW(buf, 6) = x;
    WBUFW(buf, 8) = y;

    clif_send(buf, packet_len(0x1ff), bl, AREA);

+    if (disguised(bl)) {
+        WBUFL(buf,2)=-bl->id;
+        clif_send(buf, packet_len(0x1ff), bl, SELF);
+    }
+
    return 0;
}


Sorry for my English .. I'm French.

This post has been edited by kamitsu: Oct 5 2008, 12:13 AM