Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Quests

Archive::Quests Archive area for Quests's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-04-2004, 10:12 AM
Cutter
Sarnak
 
Join Date: Sep 2004
Posts: 85
Default Returning a value in skills?

Is t here a way to return a value in a skill.. ex. fletching

if player fletching => 2 then the npc the player is interacting with will give him an item.. and give him more fletching skill..

if player fletching < 2 then take an item he is giving the npc.. and say sorry your fletching is not high enough try again later.. thanks for the loot btw..
Reply With Quote
  #2  
Old 10-04-2004, 03:07 PM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

You may have to make a custom variable, something like $getskill{"DUAL_WIELD"}...if that's even the proper syntax...I'm not a perl expert. Have that use the GetSkill() function to check the skill specified.
Reply With Quote
  #3  
Old 10-05-2004, 05:08 AM
m0oni9
Hill Giant
 
Join Date: Dec 2003
Posts: 166
Default

I introduced C callback examples for perl a while back. I haven't been on the scene too much as of late (school, etc), but I think the initial changes (ie: backbone) were merged in. I think this is the thread, if you are feeling adventurous: http://www.eqemulator.net/forums/viewtopic.php?t=13920

At this point I think you would just need to make a C function that would be called from perl, and elsewhere register it with the quest module so that it would be recognized. In the link I provided, see the third post -- the two things you should draw most attention to are inside the cperl.cpp/.h file (creating a function), and then later registering it with the newXS() call.

The hardest part is probably getting the cryptic XS stuff to make sense. For that you might want to view the thread previous to the above: http://www.eqemulator.net/forums/viewtopic.php?t=12393

This hasn't gotten a lot of attention, I suspect largely because it does not come off as being the easiest thing to work with at first. The new variable idea that killspree suggested will probably work just fine. However, IMO a lot of this data will end up being fetched in the manner I described. It seems like a good idea to deal with it now rather than later.
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 07:12 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3