BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => 0.2.x Custom/Unofficial Modules => Topic started by: Derroylo on September 10, 2005, 02:14:14 pm
-
A little module that shows how much sk/xp you need for one lvl or between lvls
Commands
!xp 218
- Shows how much xp/sk you need for this lvl
!xp 200 220
- Shows how much sk you need from lvl 200 to 220
You need these 2 files:
http://nne-clan.clanintern.de/bebot/XP.phps
http://nne-clan.clanintern.de/bebot/_Colors.phps
-
I updated this script a little
-works in privategroup
-command 'xp 200' reports 80k SK instead of 80k XP
-command 'axp' added with AI xp values
Still uses your _Colors.php
http://lasziv.reprehensible.net/~krosis/bebot/XP.phps
-
Ooh hey, nice. I had a org member asking for something like this a few days ago... well the AXP part anyway. :)
Thanks
-
An org mate noticed that this module was giving incorrect numbers when determining the xp/sk for a level range.
Bot would say
From the beginning of 201 to 202, you need 211,200 SK
when it should be
From the beginning of 201 to 202, you need 96,000 SK
Change the following two lines to fix:
for($i=$start;$i<=$end;$i++) {
to
for($i=$start;$i<=$end-1;$i++) {
and
for($i=$start;$i<=$end;$i++) {
to
for($i=$start;$i<=$end-1;$i++) {
-
Pfft, it's always better to find out you've over-judged anyways. Makes victory come sooner than you think! ^^
-
The original intended method of the Calc was from the Begining of the first level requested to the End if the second level requested.
In your example: 96000 + 115200 = 211200
P.S. The command for the amount needed for a specific level for example is !xp 201 201
-
To bring another side to it, IGN's is worded slightly different to prevent ambiguous assumptions like this, (Ex: 176,000 total SK needed to get from 200 to the beginning of 202)
It's easy to see how this version can be mis-interperated with the current wording as it states no where in teh description of the 2nd level whether it is to the beginning, middle or end of that level.
Possible change could be:
From the beginning of 201 to 202, you need 211,200 SK
to:
From the beginning of 201 to the end of 202, you need 211,200 SK
Just a thought :D
-
The original intended method of the Calc was from the Begining of the first level requested to the End if the second level requested.
In your example: 96000 + 115200 = 211200
P.S. The command for the amount needed for a specific level for example is !xp 201 201
Might be like Tsuyoi said, wording might cause assumptions. From what Derroylo said A little module that shows how much sk/xp you need for one lvl or between lvls and by the output of the bot, it seemed to me that if whatever levels i typed are the two ranges I would want to see the result of. Between 201 and 202 or the beginning of 201 to 202 did not make me think it should give the sk amount to get the end of 202. Ahh well, it is there if anyone is interested. ;)
-
Makes a lot more sense if I type !xp 201 202 that it gives the sk required to go from 201 to 202 and not the whole 202 level included as well.