PDA

View Full Version : Retrieving Skill points


Sylaei
11-09-2008, 11:10 PM
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?

trevius
11-10-2008, 12:35 AM
You would just need to use a quest object to get the skill value. Something like this:

$client->GetRawSkill(skill_id);

or

$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:
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.php?wakka=QuestObjects

Sylaei
11-10-2008, 12:51 AM
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.