Originally posted by [b]ToastOfDoom[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4351
from ./map/atcommand.c
CODE
int atcommand_cash(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
int value;
nullpo_retr(-1, sd);
if( !message || !*message || (value = atoi(message)) == 0 ) {
clif_displaymessage(fd, "Please, enter an amount.");
return -1;
}
if( !strcmpi(command+1,"cash") )
{
if( value > 0 )
pc_getcash(sd, value, 0);
else
pc_paycash(sd, -value, 0);
}
else
{ // @points
if( value > 0 )
pc_getcash(sd, 0, value);
else
pc_paycash(sd, -value, -value); // <---THIS LINE IN QUESTION
}
return 0;
}
Unsure if intended but code seems to be removing points from both cashpoints and kafrapoints when removing kafrapoints (ie..@points -10)
This post has been edited by ToastOfDoom: Jul 14 2010, 10:42 PM