collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Level.php  (Read 2260 times)

0 Members and 1 Guest are viewing this topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Level.php
« on: October 01, 2007, 06:16:35 am »
Converted Level and PvP Level to a Formula instead of storing each range
Converted Missions to formula too

Added !mission commands (got from other module)

Only thing not as formula for !level is XP/SK i have no clue even if there is 1, if any 1 knows please tell :p. but far as i can tell there is no pattern

Module is Smaller in size with more stuff :p

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: Level.php
« Reply #1 on: October 02, 2007, 01:17:09 am »
I tried to find a formula for the XP needed per level, but such a formula eludes me. The 2nd and 3rd derivatives suggests that this isn't a formual at all but something made semi-randomly and put in a table. Even for individual title levels I cannot seem to find a formula.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Zacix

  • Contributor
  • *******
  • Posts: 73
  • Karma: +0/-0
Re: Level.php
« Reply #2 on: October 03, 2007, 01:47:07 pm »
For SK it works with this formula:

80000+16000*(1,2^(X-200)-1)/(1,2-1) where X >= 200, and round the answer, no floor or ceil functions.

Sum of a geometric sequence for those interested ^^

As for XP...it's totally random it seems.

Missions work with this formula:
floor(<level> - (X*<level>*0.05)) for missions under your level
floor(<level> + (X*<level>*0.05)) for missions over your level

X can be 0,2,3,4,5 and 6. that makes 11 different qls on missions
Zacix
Current projects:
RINGBot, BeBot branch
Neutnet, RK2 Neutral massmessage network

Offline Tichy

  • BeBot User
  • **
  • Posts: 42
  • Karma: +0/-0
Re: Level.php
« Reply #3 on: October 03, 2007, 03:19:02 pm »
Code: [Select]
$this -> bot -> accesscontrol -> create('all', 'test', 'OWNER');
Missed to remove debug stuff ;) ?!

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Level.php
« Reply #4 on: October 03, 2007, 05:35:34 pm »
hehe that command was to test formulas, it output how accurate the result was compared to values on old module

ill remove when i add those formulas above

altho as for the mission levels,, its already a formula
what u prob looking at is the !mission command data

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 661
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal