Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-13-2011, 06:09 PM
Emmeric
Sarnak
 
Join Date: Aug 2011
Posts: 72
Default Suggestions for Quest Shortcuts?

I am interested in learning a shortcut or two. Let me describe what I have...

A quest npc hands Neriak tokens of 4 different grades equal to the number of skulls turned in. 1 skull = copper token, 2 skulls = silver token, etc.

Another quest npc accepts these tokens for faction. I know I could combine it all and skip a step - faction for skulls, but I wanted something a little more complex.

This shortcut issue is this: with a turn in of say copper tokens, the quest npc hands out faction. However, she hands it out if the turn-in is 1 token or 4 (using the =>1 ). I would like to use some form of command that allows a multiplicative quest reward. Double reward for two tokens, triple for three, etc.

Here is my current second-stage npc - I only included the pertinent part, she has another turn-in quest of her own as well:

Code:
elsif ($itemcount{1804} => 1){
    quest::faction(69,5);
    quest::faction(70,5);
    quest::faction(87,5);
    quest::faction(88,5);
    quest::faction(117,5);
    quest::faction(137,5);
    quest::faction(155,5);
    quest::faction(177,5);
    quest::faction(256,5);
    quest::faction(260,5);
    quest::faction(268,5);
    quest::faction(322,5);
    quest::faction(331,5);
    quest::exp(4000);
    quest::ding;
	quest::say("I see you have been skulking about for Noble Villifar. You are wise to aid us and your effort shall not go unnoticed, $name.");	
	quest::givecash("0","0","8","0");	
}

elsif ($itemcount{1805} => 1){
    quest::faction(69,10);
    quest::faction(70,10);
    quest::faction(87,10);
    quest::faction(88,10);
    quest::faction(117,10);
    quest::faction(137,10);
    quest::faction(155,10);
    quest::faction(177,10);
    quest::faction(256,10);
    quest::faction(260,10);
    quest::faction(268,10);
    quest::faction(322,10);
    quest::faction(331,10);
    quest::exp(6000);
    quest::ding;
	quest::say("I see you have been skulking about for Noble Villifar. You are wise to aid us and your effort shall not go unnoticed, $name.");	
	quest::givecash("0","0","8","0");	
}

elsif ($itemcount{1806} => 1){
    quest::faction(69,15);
    quest::faction(70,15);
    quest::faction(87,15);
    quest::faction(88,15);
    quest::faction(117,15);
    quest::faction(137,15);
    quest::faction(155,15);
    quest::faction(177,15);
    quest::faction(256,15);
    quest::faction(260,15);
    quest::faction(268,15);
    quest::faction(322,15);
    quest::faction(331,15);
    quest::exp(8000);
    quest::ding;
	quest::say("I see you have been skulking about for Noble Villifar. You are wise to aid us and your effort shall not go unnoticed, $name.");	
	quest::givecash("0","0","8","0");	
}

elsif ($itemcount{1807} => 1){
    quest::faction(69,20);
    quest::faction(70,20);
    quest::faction(87,20);
    quest::faction(88,20);
    quest::faction(117,20);
    quest::faction(137,20);
    quest::faction(155,20);
    quest::faction(177,20);
    quest::faction(256,20);
    quest::faction(260,20);
    quest::faction(268,20);
    quest::faction(322,20);
    quest::faction(331,20);
    quest::exp(10000);
    quest::ding;
	quest::say("I see you have been skulking about for Noble Villifar. You are wise to aid us and your effort shall not go unnoticed, $name.");	
	quest::givecash("0","0","8","0");	
}
In this, 4 different items (1804, 1805, 1806 and 1807) produce a faction result. How would I go about scaling the reward to the number turned in without resorting to 4 entries for each item (16 total entries)? Or is that possible?

I know I could use 1804 == 1
1804 == 2
1804 == 3
1804 == 4

There an easier way?
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:53 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