Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bots

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-20-2011, 04:31 PM
Congdar
Developer
 
Join Date: Jul 2007
Location: my own little world
Posts: 751
Default

on my server i have customized some enchanter guildmasters .pl to handle this sort of thing for the bots. they usually require you to supply the ingredients plus some plat.
__________________
The Realm
Reply With Quote
  #2  
Old 07-20-2011, 05:59 PM
Criimson
Hill Giant
 
Join Date: Sep 2006
Posts: 172
Default

Quote:
Originally Posted by Congdar View Post
on my server i have customized some enchanter guildmasters .pl to handle this sort of thing for the bots. they usually require you to supply the ingredients plus some plat.
Any chance you can send the script change to me? I am not familiar with perl and would basically add it to a GM in PoK.

Thank you
Criimson
Reply With Quote
  #3  
Old 07-21-2011, 05:46 AM
Congdar
Developer
 
Join Date: Jul 2007
Location: my own little world
Posts: 751
Default

Perl scripting for the emu is probly easier than c++ to figure out. Here's the general idea for the pok enchanter guildmaster
Code:
sub EVENT_SAY { 
	if($text=~/enchant silver/i or $text=~/enchanted silver/i) {
		quest::say("Oh! You are interested in enchanted silver bars!  I only charge 100 platinum and Four regular Silver Bars for this service. I make them Four at a time.");
	}
	if($text=~/thicken mana/i or $text=~/viscous mana/i) {
		quest::say("Oh! You are interested in a vial of Viscous Mana!  I only charge 100 platinum and a poison vial and a pearl for this service. I make them one at a time.");
	}
}

sub EVENT_ITEM {
	if($platinum == 100 && plugin::check_handin(\%itemcount, 16500 => 4)) {
		quest::say("Ahh, here you are then.");
		quest::summonitem(16504, 4);
	}
	elsif($platinum == 100 && plugin::check_handin(\%itemcount, 10024 => 1, 16965 => 1)) {
		quest::say("Ahh, here you are then.");
		quest::summonitem(10250);
	}
        else {
           quest::say("I don't need this."); #text made up
           plugin::return_items(\%itemcount);
           if($platinum != 0 || $gold !=0 || $silver != 0 || $copper != 0) {
              quest::givecash($copper, $silver, $gold, $platinum);
           }
        }
}
__________________
The Realm
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:02 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3