Issue information

Issue ID
#666
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Dec 21, 2007 12:34
Last Post
Hercules Elf Bot
Feb 21, 2012 7:58
Confirmation
N/A

Hercules Elf Bot - Dec 21, 2007 12:34

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

The documentation for getbattleflag()/setbattleflag() lies:
CODE
*setbattleflag "<battle flag>",<value>;
*getbattleflag "<battle flag>";

Sets or gets the value of the given battle flag.
Battle flags are the flags found in the battle/*.conf files and is also used in Lupus' variable rates script.

Example(s):

    //will set the base experience rate to 20x (2000%)
    setBattleFlag "base_exp_rate",2000;
    //will return the value of the base experience rate (when used after the above example, it would return 2000).
    getBattleFlag "base_exp_rate";

It should be:
*setbattleflag("<battle flag>",<value>);
*getbattleflag("<battle flag>");
Same for examples.

[EDIT] Wow, bug #666! О.о

This post has been edited by Micktu: Dec 21 2007, 05:17 AM