Emmeric
10-13-2011, 06:09 PM
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:
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?
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:
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?