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-25-2011, 06:17 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default Check if item exist

I may end up having to change the source myself, but before I go to the trouble I wanted to ask.

Is there any way to check in Perl for the existence of an item ? I need a simple bool response on if an item exist.

Also, maybe some of the powers that be can also answer this one. If I am changing the source, do you absolutely have to recompile every time to test ?
Reply With Quote
  #2  
Old 11-25-2011, 07:12 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

If an item exists where? In the database, a player's inventory, their bank?

If you are changing the C++ source you must recompile, stop your server, copy the executables to where your server is run from, and start your server every time.
Reply With Quote
  #3  
Old 11-25-2011, 07:14 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

In the database.
Reply With Quote
  #4  
Old 11-25-2011, 07:58 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

So far, most of this is making a fair amount of sense. There is one thing in perlparser.cpp that is not making sense, this line.

Code:
 int	class_id = (int)SvIV(ST(0));
Class_id is something I am using, then everything to the right is a mystery.
Reply With Quote
  #5  
Old 11-25-2011, 08:13 PM
revloc02c's Avatar
revloc02c
Hill Giant
 
Join Date: Aug 2010
Location: UT
Posts: 215
Default

I asked this same question once here, hopefully the solution there will work for you.

As far as changing the source and compiling, yeah you have to compile every time you change something.
Reply With Quote
  #6  
Old 11-25-2011, 09:59 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

That is definitely going to help, I kind of had gotten all of that from the comments on the top of one of the files, which was also invaluable.

I think my problem was just not understanding the structure changes coming from C#.

Like this

if (condition)
my_action();
my_second_action();


I figured that the second action would fire, but come to find out if you have two actions, you have to encase them in {}. I kind of found that reading further into the code, I saw where that happened. It will just be a learning curve, I will not pick it all up in one night.
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 08:14 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3