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
  #4  
Old 08-24-2012, 06:11 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Well, you can use the following commands to train spells and disciplines:

quest::scribespells(50);
quest::traindiscs(50);

But, setting all skills to max for level 50 is a bit more complicated. There is a GM command to do it (#maxskills), but there isn't a perl function for setting all skills to max.

You would need to do a bit more scripting to set all skills to max. First, you would need to do a loop through each skill ID, which is 0 to 73 I think. Then for each iteration of the loop, you would use the $client->MaxSkill(skillid, class, level) command to find the max skill for that level of each skill. Then, you would need to set the skill to the value you got from that command using the $client->SetSkill(skill_num, value) command. It would be something like this:


Code:
sub EVENT_ENTERZONE {

	if ($ulevel < 50)
	{
		quest::level(50);
		quest::scribespells(50);
		quest::traindiscs(50);
		my $CharClass = $client->GetClass();
		for ($skillid = 0; $skillid < 74; $skillid++)
		{
			my $SkillValue = $client->MaxSkill($skillid, $CharClass, 50);
			$client->SetSkill($skillid, $SkillValue);
		}
	}

}
I haven't tested that, but I think it should be close to what you are wanting.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
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 06:10 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