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 11-09-2008, 11:10 PM
Sylaei
Hill Giant
 
Join Date: Jan 2007
Posts: 124
Default Retrieving Skill points

I want to have a quest that checks to see if a certain tradeskill is high enough. Something like tailoring needs to be above 50 to proceed to the next phase of the quest.

I haven't found any way to determine what a given skill is at. Can it be done currently or would the code need to be changed?
__________________
Syl

"The significant problems we have cannot be solved at the same level of thinking with which we created them."
Albert Einstein
Reply With Quote
  #2  
Old 11-10-2008, 12:35 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

You would just need to use a quest object to get the skill value. Something like this:

Code:
$client->GetRawSkill(skill_id);
or

Code:
$client->GetSkill(skill_id);
And then just put one of the following numbers in place of "skill_id" to pull the character's skill level:
56 Make Poison
57 Tinkering
58 Research
59 Alchemy
60 Baking
61 Tailoring
63 Blacksmithing
64 Fletching
65 Brewing
68 Jewelry Making
69 Pottery

To use it to check for a certain value, you would need to do something like this:
Code:
sub EVENT_SAY {

my $blacksmithskill = $client->GetSkill(63);

  if ($text =~ /skill check/i) {
    if ($blacksmithskill >= 100) {
      quest::say("Yep, you are a blacksmith alright!");
    }
    if ($blacksmithskill < 100) {
      quest::say("You are not yet worthy!");
    }
  }

}

There are a ton of useful quest objects in the wiki. Just search for what you want and then you will just need to figure out the proper way to use it. Here is the link:

http://www.eqemulator.net/wiki/wikka...a=QuestObjects
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!

Last edited by trevius; 11-10-2008 at 08:40 AM..
Reply With Quote
  #3  
Old 11-10-2008, 12:51 AM
Sylaei
Hill Giant
 
Join Date: Jan 2007
Posts: 124
Default

Thanks, Trev
This is awesome, I have been wondering if there was a list like this. Hadn't found anything (not that I tried real hard).

Way cool. Thanks again.
__________________
Syl

"The significant problems we have cannot be solved at the same level of thinking with which we created them."
Albert Einstein
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 10:16 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