Issue information

Issue ID
#4005
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Jan 11, 2010 20:59
Last Post
Hercules Elf Bot
Mar 5, 2012 17:31
Confirmation
N/A

Hercules Elf Bot - Jan 11, 2010 20:59

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

The server don't check if you have the skill or not.
Currently you just have to send a packet 0x1af to change cart (in all versions).

clif.c
CODE
void clif_parse_ChangeCart(int fd,struct map_session_data *sd)
{
    int type;

    type = (int)RFIFOW(fd,2);

    if( (type == 5 && sd->status.base_level > 90) ||
        (type == 4 && sd->status.base_level > 80) ||
        (type == 3 && sd->status.base_level > 65) ||
        (type == 2 && sd->status.base_level > 40) ||
        (type == 1))
        pc_setcart(sd,type);
}


Add:
CODE
if( pc_checkskill(sd, MC_CHANGECART) < 1 )
        return;


This post has been edited by KeyWorld: Jan 11 2010, 01:00 PM