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)

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2013, 12:04 AM
ChessyCats
Sarnak
 
Join Date: Jun 2010
Posts: 39
Default Client-side stat caps?

I managed to change the stat caps on the server, but the client will not display the correct stats/HP/mana etc. Obviously it is using its own stat cap formula.

Unfortunately, would I be correct to assume that the only way to fix this would be to alter the source code for the client itself?
Reply With Quote
  #2  
Old 07-06-2013, 12:12 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

#mystats Will display the stats correctly for you, as well as there being stat variables you can pull. Code below for a stats NPC.
Code:
sub EVENT_SAY 
{

	my $stats = quest::saylink("stats", 1);

		
    if($text=~/hail/i) 
	{
		plugin::Whisper("Hey there $name, I'm really good at guessing your $stats. Go on, try me!");
    } 
    elsif($text=~/stats/i) 
	{
		my $str = $client->GetSTR();
		my $sta = $client->GetSTA();
		my $agi = $client->GetAGI();
		my $dex = $client->GetDEX();
		my $wis = $client->GetWIS();
		my $intel = $client->GetINT();
		my $cha = $client->GetCHA();
		my $ac = $client->GetAC();
		my $atk = $client->GetATK();
		my $hp = $client->GetHP();
		my $hp2 = $client->GetMaxHP();
		my $mana = $client->GetMana();
		my $mana2 = $client->GetMaxMana();
		my $end = $client->GetEndurance();
		my $end2 = $client->GetMaxEndurance();
		my $aa = $client->GetAAPoints();
		my $aa2 = $client->GetSpentAA();
		plugin::Whisper("Current Health: $hp/$hp2");
		plugin::Whisper("Current Endurance: $end/$end2'");
		plugin::Whisper("Current Mana: $mana/$mana2");
		plugin::Whisper("Total AA Points: $aa Spent AA Points: $aa2");
		plugin::Whisper("Armor Class: $ac Attack: $atk");
		plugin::Whisper("Strength: $str Stamina: $sta Agility: $agi");
		plugin::Whisper("Dexterity: $dex Wisdom: $wis");
		plugin::Whisper("Intelligence: $intel Charisma: $cha");
	}
}

sub EVENT_ITEM 
{
	plugin::Whisper("I do not need this.");
	quest::givecash($copper,$silver,$gold,$platinum);
	plugin::return_items(\%itemcount);
}
Reply With Quote
  #3  
Old 07-06-2013, 01:55 AM
ChessyCats
Sarnak
 
Join Date: Jun 2010
Posts: 39
Default

Awesome, thank you! That may be a good alternative to this problem. As far as displaying the stats correctly in the client UI, would I be right to assume that can't happen?
Reply With Quote
  #4  
Old 07-06-2013, 03:00 AM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

The client needs to know about the stat cap increase somehow. A spell/AA effect is the most convenient way to do that from the server's pov.
Reply With Quote
  #5  
Old 07-06-2013, 03:27 AM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,447
Default

More specifically, the tribute code can be hacked up a bit. Tributes get sent to the client as an equipped item and you can add an item with a worn effect that increases the clients' stat cap. AAs also reference an effect like this.
Reply With Quote
  #6  
Old 07-06-2013, 03:28 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

AA Effect would be best, honestly, that way it's permanent and you can just raise the cap by like 2500 or something so that there's no way you can break it.
Reply With Quote
  #7  
Old 07-06-2013, 05:10 AM
ChessyCats
Sarnak
 
Join Date: Jun 2010
Posts: 39
Default

Awesome, thanks guys! I really appreciate the info.
Reply With Quote
Reply


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 07:31 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