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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 06-03-2003, 08:22 AM
krich
Hill Giant
 
Join Date: May 2003
Location: The Great Northwest
Posts: 150
Default Fix for period (.) screwing up Identifiers ($name, etc)

Yes, you could say that I'm on a bug hunt today. My goal, to kill all those little nitpicky bugs in the quest system that aggrevate me. :evil:

I'm a bit scared of this fix because of how simple it is. I can't find anything that it breaks, but perhaps some one else should eye this one closely.

The Problem:
When creating .qst files, putting a period (.) after an identifier will cause the quest to print NULL rather than the value of the identifier. For example this script will say NULL rather than your $name:

Quote:
EVENT_SAY {
if($1- =~ "Hail"){
SAY("Well met $name. I am Arianna Trueblade. Warlord of the Steel Warriors. I am personally in charge of all the training that our young warriors receive. I take pride in knowing that my teaching can help make the foundation of a Freeport Champion. If you are a [warrior] then we might just have something to talk about.")
}
The Fix:

Change line 1 of basic_functions.h from:
Code:
const char *notin = "() ,=!&|<>\"";
to:
Code:
const char *notin = "?.() ,=!&|<>\"";
Notice the period (.) at the beginning of the definition of notin.

Regards,

Krich
Reply With Quote
  #2  
Old 06-03-2003, 12:57 PM
krich
Hill Giant
 
Join Date: May 2003
Location: The Great Northwest
Posts: 150
Default

Updated code above to include a Question Mark.

Enjoy,

Krich
Reply With Quote
  #3  
Old 06-06-2003, 02:59 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Merged this in to CVS, should be available there now. Please certify.
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #4  
Old 06-11-2003, 11:09 AM
krich
Hill Giant
 
Join Date: May 2003
Location: The Great Northwest
Posts: 150
Default

Quote:
Originally Posted by Trumpcard
Merged this in to CVS, should be available there now. Please certify.
Confirmed. Lookin' good. :worship:

Regards,

krich
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 12:19 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