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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
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
 

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 05:07 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