L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 12:59:30 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Research plugin
Pages: 1 [2]   Go Down
« previous next »
Print
Author Topic: Research plugin  (Read 936 times)
0 Members and 1 Guest are viewing this topic.
nebhyper
Rookie
**
Offline Offline

Gender: Male
Posts: 62


Re: Research plugin
« Reply #15 on: February 12, 2007, 03:22:13 PM »

Quote from: Malosar on January 25, 2007, 10:44:52 AM
I guess the cool way to do it would be to get the level of the person requesting the info and refine the values returned to either xp or sk  Smiley Might actually do that....


in my tokens.php I have done just this and also ported it over to !level !lvl and a made a new one called !me that has basically the same thing as !lvl but displays in a blob instead of spamming chat.


Anyways, here is the code from !tokens I used to get the persons level.

Code:
//Find player lvl
$result = $this -> bot -> db -> select("SELECT level FROM members WHERE id = " . $this -> bot -> aoc -> get_uid($name));
if (empty($result))
{
$result = $this -> bot -> db -> select("SELECT level FROM whois WHERE id = " . $this -> bot -> aoc -> get_uid($name));
$lvl = $result[0][0];
}
else
{
$lvl = $result[0][0];
}

if (empty($lvl))
{
return "Unable to find your level.  Please manually enter it. <pre>help tokens";
}
else
{
  return $this -> ShowTokens($lvl, $info[1], $info[2]);
}
Logged

Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.
Pages: 1 [2]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Research plugin
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[November 21, 2008, 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 18
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 13
Total: 14
xlDanek

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.38 seconds with 29 queries. (Pretty URLs adds 0.027s, 4q)
Loading...