Issue information

Issue ID
#2961
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Apr 11, 2009 22:49
Last Post
Hercules Elf Bot
Apr 11, 2009 22:49
Confirmation
N/A

Hercules Elf Bot - Apr 11, 2009 22:49

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

Hi

I've seen a little bug :

If set an atcommand like this :

warp: -100

atcommand.c change the level of atcommand but set the charcommand to -100

My diff on acommand.c
CODE
          ShowWarning("atcommand_conf: defaulting %s charcommand level to %d.\n",w1,atoi(w2));
          p->level2 = atoi(w2);
+         p->level2 = cap_value(p->level2, 0, 100);
        }


not tested.

Sorry for my bad english.

This post has been edited by [Myst]: Apr 11 2009, 03:50 PM