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

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-20-2019, 06:33 PM
Xanathol
Sarnak
 
Join Date: Oct 2009
Posts: 52
Default Workaround for large race bash?

On TLPs, large races that get slam also get 2h bash out of the box. I'm trying to implement this via the global_player.pl file in the connect function but can't get it to fire (I've implemented some custom AAs here that do work but this is the only one race based). Here's the code, cut down to just the pertinent parts:

Code:
sub EVENT_CONNECT {
	# 2her bash 
	if( $race == "Ogre" or $race == "Troll" or $race == "Barbarian" )
	{	$client->GrantAlternateAdvancementAbility(79, 1);
	}

	# class based custom AA
	if( $class == "Warrior" )
	{	$client->GrantAlternateAdvancementAbility(30200, 1);
	}
}
Simply put, the first one doesn't work but the class based one does.

Any ideas? Is it possible the $race global isn't being set and if so, what would be the work around (I tried $client->GetRace( ) on a whim but no-go).
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 02:58 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3