Project 1999

Go Back   Project 1999 > Server Issues > Resolved Issues

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 01-17-2011, 07:41 PM
Aqua Aqua is offline
Scrawny Gnoll


Join Date: Oct 2009
Posts: 28
Default

This double response is because the "small service" and "perform a small service" overlap.

I'm guessing the current code looks something like this (slightly altered from the peqquests-Rev1751 version by removing the ^ before small service and the $ after):
Code:
  if($text=~/small service/i){

    quest::say("I am in need of pup and cub scaled wolf skins to create more [curscale armor]. Many Legionnaires have died in battle. The Baron demands more sssuits. I mussst have more ssskins or it is MY HIDE!! I shall reward pieces of the curscale armor to any who [perform a small service].");

  }

  #Gives the empty curscale pack.

  if($text=~/perform a small service/i){

    quest::say("Good. You take thisss pack and fill it all with scaled curskins. Only the pupsss and cubs of the scaled wolves shall do. They are not much for one sssuch as you. Combine all those ssskins and return the full curskin pack and I shall reward you with any available piece of curskin armor and a sssmall amount of coin. Mossst important is that you shall be proving your allegiance to all of Cabilisss.");

    quest::summonitem(17992);

  }
This may work a bit better by excluding any string with the word perform in it from the first match.
Code:
   if($text=~/^small service$/i && $text!~/perform/i){

    quest::say("I am in need of pup and cub scaled wolf skins to create more [curscale armor]. Many Legionnaires have died in battle. The Baron demands more sssuits. I mussst have more ssskins or it is MY HIDE!! I shall reward pieces of the curscale armor to any who [perform a small service].");

  }

  #Gives the empty curscale pack.

  if($text=~/perform a small service/i){

    quest::say("Good. You take thisss pack and fill it all with scaled curskins. Only the pupsss and cubs of the scaled wolves shall do. They are not much for one sssuch as you. Combine all those ssskins and return the full curskin pack and I shall reward you with any available piece of curskin armor and a sssmall amount of coin. Mossst important is that you shall be proving your allegiance to all of Cabilisss.");

    quest::summonitem(17992);

  }
For reference, here is an example of the issue.

[Mon Jan 17 16:10:14 2011] You say, 'Hail'
[Mon Jan 17 16:10:14 2011] Klok Mugruk says, 'Welcome to my shop, sss. Only the finessst I have. I make for you jussst as I make for the emperor's harem. Many [bristle silk] garmentsss do they need. Ssss.. Lucky man, the emperor isss.'
[Mon Jan 17 16:10:22 2011] You say, 'what bristle silk?'
[Mon Jan 17 16:10:22 2011] Klok Mugruk says, 'What is bristle silk?!! Huh? Where have you been living? Under the rocksss.. Nahh. I sssee. You are a broodling from the common ssstock. You could never afford bristle silk nor the affectionss of those who drape themselves with it. Still, commons have much ssservice to offer. Maybe you would like to earn some [curscale armor]. Hmm?'
[Mon Jan 17 16:10:45 2011] You say, 'what curscale armor?'
[Mon Jan 17 16:10:45 2011] Klok Mugruk says, 'Curscale armor? I make thisss crude armor from the broodlings of the scaled wolves. I use the ssskins of the pupsss and cubs. Those ssskins are ssstill young and thin and are bessst for the young adventurers. I sssupply them to the Legion of Cabilisss, but for a [small service] I shall make them available to you.'
[Mon Jan 17 16:11:01 2011] You say, 'what small service'
[Mon Jan 17 16:11:01 2011] Klok Mugruk says, 'I am in need of pup and cub scaled wolf skins to create more [curscale armor]. Many Legionnaires have died in battle. The Baron demands more sssuits. I mussst have more ssskins or it is MY HIDE!! I shall reward pieces of the curscale armor to any who [perform a small service].'
[Mon Jan 17 16:11:23 2011] You say, 'I will perform a small service'
[Mon Jan 17 16:11:23 2011] Klok Mugruk says, 'I am in need of pup and cub scaled wolf skins to create more [curscale armor]. Many Legionnaires have died in battle. The Baron demands more sssuits. I mussst have more ssskins or it is MY HIDE!! I shall reward pieces of the curscale armor to any who [perform a small service].'
[Mon Jan 17 16:11:23 2011] Klok Mugruk says, 'Good. You take thisss pack and fill it all with scaled curskins. Only the pupsss and cubs of the scaled wolves shall do. They are not much for one sssuch as you. Combine all those ssskins and return the full curskin pack and I shall reward you with any available piece of curskin armor and a sssmall amount of coin. Mossst important is that you shall be proving your allegiance to all of Cabilisss.'
 


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:59 PM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.