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

Title: XP calculation
Post 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
Title: XP calculation
Post by: krosis on November 20, 2005, 01:11:51 am
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
Title: XP calculation
Post by: Xenixa on November 20, 2005, 09:00:55 am
Ooh hey, nice. I had a org member asking for something like this a few days ago... well the AXP part anyway. :)

Thanks
Title: Re: XP calculation
Post by: Jarras on April 13, 2006, 05:02:14 pm
An org mate noticed that this module was giving incorrect numbers when determining the xp/sk for a level range.

Bot would say
Code: [Select]
From the beginning of 201 to 202, you need 211,200 SKwhen it should be
Code: [Select]
From the beginning of 201 to 202, you need 96,000 SK
Change the following two lines to fix:
Code: [Select]
for($i=$start;$i<=$end;$i++) {
to
for($i=$start;$i<=$end-1;$i++) {
and
Code: [Select]
for($i=$start;$i<=$end;$i++) {
to
for($i=$start;$i<=$end-1;$i++) {
Title: Re: XP calculation
Post by: Tsuyoi on April 13, 2006, 05:24:12 pm
Pfft, it's always better to find out you've over-judged anyways.  Makes victory come sooner than you think! ^^
Title: Re: XP calculation
Post by: Xenixa on April 13, 2006, 05:47:54 pm
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
Title: Re: XP calculation
Post by: Tsuyoi on April 13, 2006, 06:33:18 pm
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:
Code: [Select]
From the beginning of 201 to 202, you need 211,200 SKto:
Code: [Select]
From the beginning of 201 to the end of 202, you need 211,200 SK
Just a thought :D
Title: Re: XP calculation
Post by: Jarras on April 13, 2006, 08:44:31 pm
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.  ;)
Title: Re: XP calculation
Post by: Malosar on April 14, 2006, 12:34:19 am
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.
SimplePortal 2.3.7 © 2008-2024, SimplePortal