Open atcommand.c
@warp/ @warpto
Before
if (pc_setpos(sd, mapindex, x, y, CLR_TELEPORT) != 0) {
clif_displaymessage(fd, msg_txt(sd,1)); // Map not found.
return -1;
}
Add:
if( pc_isdead(sd) )
{
clif_displaymessage(fd, msg_txt(sd,664));
return -1;
}
@go
Before:
if (pc_setpos(sd, mapindex_name2id(data[town].map), data[town].x, data[town].y, CLR_TELEPORT) == 0) {
clif_displaymessage(fd, msg_txt(sd,0)); // Warped.
} else {
clif_displaymessage(fd, msg_txt(sd,1)); // Map not found.
return -1;
}
Add:
if( pc_isdead(sd) )
{
clif_displaymessage(fd, msg_txt(sd,664));
return -1;
}
It's extra rules to make failed usage this command while you dead.
The recompile your server.
http://rathena.org/board/topic/61836-warp-go-damage-delay/