Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 09-22-2009, 03:46 AM
Shadow-Wolf
Dragon
 
Join Date: Oct 2003
Posts: 511
Default

Hmm, well there weren't any syntax errors to my knowledge, the only code I had besides the sub was $questitem->SetScale(1); and would change the input of that command to test it but it never scaled. I have however gotten it to work but it seems to update too slowly for my tastes. My current item quest looks like this:

Code:
sub EVENT_SCALE_CALC 
{
	
	my $skill = $client->GetSkill(66);
	$questitem->SetScale($skill/100);
}
The item in question is a charm that raises its stats based on how good the players alcohol tolerance skill is. I know 100 isn't the max for the skill, I did this on purpose cause I wanted it to go even further for those who max it out. I was hoping to base the item on how drunk the player was but there doesn't seem to be any perl objects that could return that information and I don't think it would work well with the how long the scale checks take.
__________________
How about the power to kill a yak from 200 yards away...WITH MIND BULLETS! thats telekinesis kyle.
Reply With Quote
  #2  
Old 09-22-2009, 09:21 AM
realityincarnate
Developer
 
Join Date: Dec 2007
Posts: 122
Default

The stat scaling should be updating every minute, but if you want to speed that up, it's an easy change in the source. You'd look for
Code:
charm_update_timer(60000),
(currently at line 169 of zone/client.cpp) and change the 60000 to the timing you would like (in milliseconds).

The player's drunkenness is only handled client side at the moment, so you won't be able to do anything with that until it's added to the server functionality.
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 04:14 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