EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Bots (https://www.eqemulator.org/forums/forumdisplay.php?f=676)
-   -   Perl Bots (https://www.eqemulator.org/forums/showthread.php?t=30467)

RichardoX 02-01-2010 11:56 AM

Perl Bots
 
It's been a dream of mine for a while to have bots placed throughout the world (almost like hired mercenaries) that could join your group until a timer expired, bot died or you zoned out.

It would even prove more beneficial if it could respond to commands from the group leader in group chat as well rather than typing physical #bot commands. Would this be a possibility in the future?

Here's an example of what I mean.


(Level 30 Druid Bot at the WC entrance of Kith)

sub EVENT_SAY {
if($text=~/hail/i && $ulevel >= 30) {
quest::say("Greetings traveler! These dense woods can become quite dangerous by yourself! I could [come] with you considering I dont want to go alone.");
}
if($text=~/come/i && $ulevel >= 30) {
quest::botjoin(); #Bot joins group
quest::gsay("Thanks for the invitation. Keep your guard up!"); #bot group chat
}
if($text=~/leave/i && $groupleader == 1){ #checks for group status
quest::botdisband();
quest::say("Ok then, good luck!");
quest::depop();
}}

Vexira 02-11-2010 02:27 PM

How difficult would this be to write?

Vexira 02-11-2010 02:28 PM

Sorry, duplicate post.


All times are GMT -4. The time now is 11:47 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.