Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-17-2012, 11:09 AM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

there are multiple instances in brother dremel's script (holy crap it's huge!) where you are looking to match exactly the same text in more than one condition. it will always stop at the first match it finds in the chain.

in the following example, if a client says "I require a Carved Sedgewood 1-Cam Bow, good sir!", he will always respond with "Sorry, I do not have that..."
Code:
elsif($text=~/Carved Sedgewood 1-Cam Bow/i){quest::say("Sorry, I do not have that...");}
elsif($text=~/Carved Sedgewood 1-Cam Bow/i){quest::say("I do have a Carved Sedgewood 1-Cam Bow, but I need a Golden Long Spear...");}
elsif($text=~/Carved Sedgewood 1-Cam Bow/i){quest::say("I do have a Carved Sedgewood 1-Cam Bow, but I need a Platinum Bastard Sword...");}
elsif($text=~/Carved Sedgewood 1-Cam Bow/i){quest::say("I do have a Carved Sedgewood 1-Cam Bow, but I need a Berserker Leggings...");}
it'll still exchange the correct items, but the player won't know what those are without looking through the perl script, which kind of defeats the purpose of the dialog in those cases.

additionally, he'll eat anything you give him, regardless of whether or not it was something he had requested for exchange since you're not using the check_handin() and return_items() plugins.
Reply With Quote
  #2  
Old 12-17-2012, 11:56 AM
djeryv's Avatar
djeryv
Hill Giant
 
Join Date: Apr 2008
Posts: 237
Default

You are correct. I found quite a few duplicate named items that I have to figure out how to deal with. Brother Dremel does give back items that he does not want now though...as I just updated the zip file for that function.

With the duplicate items...I wonder how people figure out which Ancient Coin (for example) they need to do their crafting with (as there are many different ones in the database with the same exact name)? Without seeing the ID numbers...or being told you don't have the right ingredients...how would one figure it out "in game"?
Reply With Quote
Reply

Thread Tools
Display Modes

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 09:13 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