Back Reply to topic
Garlic 
(started thread)
Blue-Ribbon Chicken 
Topics: 1
Posts: 1
Playing:  AoC
 
Years registered: * * * * * * * * * * * * * * * * *
Some questions Posted: Post 11:47 Mon - Oct 13, 2008

Hi there,

I learned about this Bot some days ago, and I really like it, since i used to play AO previous to AoC, where i learned the conviniences about chatbots. Although my PHP-skills tend to zero, I tried to write my own Plugins. Unfortunately I've met my first barrier quiet early...
Therefore I have some questions:

First one is about the $args variable used in plugins. Within Buddy-Plugins, it contains information about the current playfield of a player. Is it possible to get this information for the plugins of the tell- or guild-type? Meaning the bot knows the location of a player, that has sent a command, respectively of a player given by argument of a command.
For example:
Code:
To [Bot]: !xyz
[Bot]: You are in Old-Tarantia/PF 1234567

or
Code:
To [Bot]: !whereis player
[Bot]: Player is in Old-Tarantia/PF 1234567


Similar to shift+rightclick on a playername in the ooc channel

Second one is about the output in the command-shell. It produces a warning over and over again:
PHP Notice: Undefined index: in botfolder\bot_callback.php on line 151
respectively
PHP Notice: Undefined offset: 0 in botfolder\bot_callback.php on line 151
instead of the debug-messages from the say(...) command, inside the plugins and other bot-code. (at least i think it should give these messages)

Aside from this, the bot runs w/o problems.

thx & best regards
Reply with quote


Back Reply to topic