Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 05-26-2006, 01:48 PM
ylosh
Sarnak
 
Join Date: Jan 2006
Posts: 39
Default

hollissa - here is the plugin FNW created for class gm's to take tomes and train the players. copy this into a file called guildmasters.pl and place this into your plugins folder.

Code:
    #looks through the items haded in for discipline tomes,
    #processing them as we find them.
    sub try_tome_handins {
    	my $itemcount = shift;
    	my $isclass = shift;
    	my $expectclass = shift;
    	
    	my @tomes = ();
    	foreach my $i(keys %{$itemcount}) {
    		if(quest::isdisctome($i)) {
    			push(@tomes, $i);
    			delete $itemcount->{$i};
    		}
    	}
    	if(@tomes > 0) {
    		if($isclass eq $expectclass) {
    			foreach my $i(@tomes) {
    				quest::traindisc($i);
    			}
    		} else {
    			quest::say('You are not a member of my guild. I will not train you!');
    			foreach my $i(@tomes) {
    				$itemcount->{$i} = 1;
    			}
    		}
    	}
    }
    
    1;
then put these few lines into the sub EVENT_ITEM section of the .pl file for the guildmasters you want to be able take tome handins. replace 'Ranger' with the name of the class being trained. also assumes you have the check_handin/return_items plugin but you can get that from cvs if you don't already.

Code:
   #do all other handins first with plugin, then let it do disciplines
   plugin::try_tome_handins(\%itemcount, $class, 'Ranger');
   plugin::return_items(\%itemcount);
Reply With Quote
 


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 10:15 AM.


 

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