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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2003, 04:59 AM
herkimer
Fire Beetle
 
Join Date: Apr 2003
Posts: 24
Default question re multiple quest rewards

Say I want to have the same NPC give different items for different quests. Is there a way to combine them into one .qst file? I've made one where you go and fetch 5 different items (to be turned in at different times), and put each turn-in under EVENT_ITEMS. The first 2 work, but I can't seem to get the 3rd through 5th. Also, any way to have items given based on percentages from a random number?
Thanks in advance for any insight and keep up the good work!
Reply With Quote
  #2  
Old 04-26-2003, 08:28 PM
fnemo's Avatar
fnemo
Discordant
 
Join Date: Dec 2002
Posts: 354
Default

I know that on live, Sergent **** (cant remember his name) in Skyshrine does 2 quests. But not at the same time. He has to be killed to repop with the other quest.
__________________
Nemo
Administrator and coder for the World Alkora Server
Reply With Quote
  #3  
Old 04-28-2003, 12:19 PM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

Yes you can have more than 1 quest in a given file.

Actually you HAVE to put all the quests you want a given NPC to do in a single file.
__________________
Please read the forum rules and look at reacent messages before posting.
Reply With Quote
  #4  
Old 04-28-2003, 01:34 PM
Bigpull
Discordant
 
Join Date: Feb 2003
Posts: 305
Default

the fact the first two work leads me to think you have a typo in the last couple or you've exceeded the buffer.

The skyshrine multi quests from an npc you'd handle with duplicate npc_type entrys on the same spawngroup. if that makes any sense =)
Reply With Quote
  #5  
Old 04-29-2003, 12:11 AM
herkimer
Fire Beetle
 
Join Date: Apr 2003
Posts: 24
Default

Thanks to all for your responses. Regarding the last, how would one know if the buffer were exceeded? As to NPC_TYPE, are you saying I should duplicate the NPC? And not to be repetitive, but anyone know of a way to give an item from a list by using random numbers/percentages?

Thanks!
Reply With Quote
  #6  
Old 04-30-2003, 11:27 AM
just_add_water
Hill Giant
 
Join Date: Mar 2002
Location: //say $network
Posts: 138
Default

(Not $rand isn't in yet)
Code:
%r = "$rand(0,10)"; 

EVENT_ITEM { 
if( $itemcount(1001) == 1 && %r >= "5") { say("Thanks heres your reward.") summonitem("1010") } 
if( $itemcount(1001) == 1 && %r >= "8" && %r < "5" ) { say("Thanks heres your reward.") summonitem("1011") } 
if( $itemcount(1001) == 1 && %r <= "9" ) { say("Thanks heres your reward.") summonitem("1012") } 
}
Reply With Quote
  #7  
Old 04-30-2003, 10:46 PM
Drawde
Dragon
 
Join Date: Jan 2002
Posts: 521
Default

The best way to prevent exceeding the buffer size with large .qst files is to create several EVENT_SAY groups, each with around 6-8 ( depending on length) text triggers.
Reply With Quote
  #8  
Old 04-30-2003, 11:42 PM
herkimer
Fire Beetle
 
Join Date: Apr 2003
Posts: 24
Default

OK. The lines in question are not EVENT_SAY lines, though, They are just EVENT_ITEM lines, each fairly short (if ($item1=="1001")} summonitem("1002"), etc. so I don't think its a buffer prob - Its not a typo either - JAW, when you say "Not $Rand.." do you mean I can't use this function yet? Thanks again for all your help everyone!
Reply With Quote
  #9  
Old 05-07-2003, 10:19 AM
Bigpull
Discordant
 
Join Date: Feb 2003
Posts: 305
Default

He ment to type "note" i think not "not".

You should and could just post the quest that doesn't work and someone will probably spot whats wrong
Reply With Quote
  #10  
Old 05-07-2003, 12:48 PM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

If you're using cvs, just use $itemcount - $item# checks a specific trade slot iirc, itemcount checks how many of the item is turned in for the whole trade.
__________________
Xeldan
Lead Content Designer
Shards of Dalaya
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:16 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3