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: [AO] XP, AXP and research module.  (Read 8991 times)

0 Members and 1 Guest are viewing this topic.

Offline Nogoal

  • BeBot Apprentice
  • ***
  • Posts: 77
  • Karma: +0/-0
[AO] XP, AXP and research module.
« on: August 19, 2009, 04:39:50 pm »
Most recent version I could find was for 0.4 and axp calculation seemed wrong to me.

So I updated it to work with 0.6, corrected AI calc and added LE research.

Xp.phps

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: [AO] XP, AXP and research module.
« Reply #1 on: August 19, 2009, 05:04:52 pm »
Nice one.

Just for reference, the command handling would benefit from being upgraded too when upgrading modules from 0.4
Code: [Select]
/*
Unified message handler
$source: The originating player
$msg: The actual message, including command prefix and all
$type: The channel the message arrived from. This can be either "tell", "pgmsg" or "gc"
*/
function command_handler($source, $msg, $origin)
{
//ALWAYS reset the error handler before parsing the commands to prevent stale errors from giving false reports
$this->error->reset();

//The default is to split the command to com, sub and args. If you want to split it some other way change the pattern for it
//parse_com() returns an array where the pattern is the keys and the values are split out from $msg
$com = $this->parse_com($msg, array('com', 'sub', 'args'));

$command = $vars[0];

switch($com['com'])
{
case 'command1':
return($this -> somefunction($name, $com));
break;
case 'command2':
return($this -> someotherfunction($name, $com));
default:
// Just a safety net to allow you to catch errors where a module has registered  a command, but fails to actually do anything about it
$this -> error -> set("Broken plugin, recieved unhandled command: $command");
return($this->error->message());
}
}
BeBot Founder and Fixer Kingpin

Offline Nogoal

  • BeBot Apprentice
  • ***
  • Posts: 77
  • Karma: +0/-0
Re: [AO] XP, AXP and research module.
« Reply #2 on: August 20, 2009, 02:26:34 pm »
Updated

Offline Waqu

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: [AO] XP, AXP and research module.
« Reply #3 on: August 11, 2011, 10:58:24 pm »
Is this mod still working and wtb install / usage instructions.

Offline Shelly

  • BeBot Apprentice
  • ***
  • Posts: 192
  • Karma: +0/-0
Re: [AO] XP, AXP and research module.
« Reply #4 on: August 14, 2011, 01:41:40 pm »
Is this mod still working and wtb install / usage instructions.
1. Download the Xp.phps from the 1st posting and save it in your "bot/custom/modules" folder.
2. Rename it to Xp.php
3. restart your bot

/tell <yourbot> !help xp
/tell <yourbot> !help axp
/tell <yourbot> !help lexp


 :)
Shelly

Offline Waqu

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: [AO] XP, AXP and research module.
« Reply #5 on: August 15, 2011, 11:49:16 am »
Loaded fine without any errors, but it doesnt work, all i get is: xp does not exist or you do not have access to it.

Offline Shelly

  • BeBot Apprentice
  • ***
  • Posts: 192
  • Karma: +0/-0
Re: [AO] XP, AXP and research module.
« Reply #6 on: August 16, 2011, 04:56:01 am »
check your "/tell <yourbot> !commands and look for the Xp. Set the access to member or guest... It is probably set too high.

Offline Waqu

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: [AO] XP, AXP and research module.
« Reply #7 on: August 17, 2011, 03:03:38 pm »
Hmmm its not on the list.

Offline Shelly

  • BeBot Apprentice
  • ***
  • Posts: 192
  • Karma: +0/-0
Re: [AO] XP, AXP and research module.
« Reply #8 on: August 18, 2011, 03:50:46 am »
Did you rename Xp.phps to Xp.php and place it in your <bothome>/custom/modules folder?

Does not seem like it is even loading.

Try "/tell <yourbot> modules" and see if Xp is listed. If it is not there, then it is not loading. You might have a corrupted module or something like that.

Might want to capture and post the startup spam from your bot and post it here... unless the first statement fixes your problem... :)

Offline Waqu

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: [AO] XP, AXP and research module.
« Reply #9 on: August 18, 2011, 06:58:24 pm »
Yes i have correctly renamed it and it shows on modules list, so no idea whats wrong with it.

Offline Nogoal

  • BeBot Apprentice
  • ***
  • Posts: 77
  • Karma: +0/-0
Re: [AO] XP, AXP and research module.
« Reply #10 on: August 19, 2011, 05:18:42 pm »
All my bots still use that module from 2009 without any problem.

Are you sure you don't have another (broken) module registering the same commands? Did you try !lexp ?

Offline Waqu

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: [AO] XP, AXP and research module.
« Reply #11 on: August 21, 2011, 08:18:32 pm »
I dont have any other mods installed besides alien waves counter and aigen and !lexp just returns /tell mybot !help.

Offline Shelly

  • BeBot Apprentice
  • ***
  • Posts: 192
  • Karma: +0/-0
Re: [AO] XP, AXP and research module.
« Reply #12 on: August 22, 2011, 04:48:36 am »
do "/tell <yourbot> !commands" from whatever toon is registered as the bot owner and see if you see:

!axp: [ AN | G | M | L | A | SA | O | D ]
!lexp: [ AN | G | M | L | A | SA | O | D ]
!xp: [ AN | G | M | L | A | SA | O | D ]

You will need to check for the different channels. If these are not there, then your database has not been updated with the commands. and thus they will not work.

Offline Waqu

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: [AO] XP, AXP and research module.
« Reply #13 on: August 24, 2011, 04:25:15 pm »
Alrighty, checked every channel and none of them lists any of those commands, how do i add them to my (Mysql 5 i think and have access to phpmyadmin and running on Linux if that makes any difference) db?
« Last Edit: August 24, 2011, 04:32:21 pm by Waqu »

Offline Waqu

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: [AO] XP, AXP and research module.
« Reply #14 on: August 25, 2011, 07:55:05 pm »
I solved the problem, the download of this mod got corrupted, so after re-download, its working perfectly.

 

* 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: 257
  • 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