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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #22  
Old 02-10-2012, 11:49 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

WARNING: untested and I just got in from an after work meetup that involved a few beers..

Your logic is heavily flawed. If i have never turned in a single item, thus no quest global yet, i automatically get the item at half power. Additionally once I start turning in items it will go up in 10% increments from 0%. Also, there is no limit to how high the item will scale past 100%. Someone could easily exploit this to make the item much much more powerful.

Finally, you have more { than } so the script is in error and will never compile.
Code:
sub EVENT_SCALE_CALC {
	if (defined($qglobals{epic_scale})) {
		my $scale = $qglobals{epic_scale} / 10;
		if ($scale > 1) {
			$scale = 1;
		$questitem->SetScale($qglobals{$scale});
	} else {
		#I honestly don't know enough baout this section of code to 
		#know it this is required or not to zero out the item.
		$questitem->SetScale(0);
	}
}
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 05:24 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