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){ I know I could use 1804 == 1 1804 == 2 1804 == 3 1804 == 4 There an easier way? |
Remember that Perl and such are used outside of Eqemu, so the more you know how to program the more you can do. What you are thinking of are variables and what you might be interested in are arrays.
Code:
sub EVENT_ITEM |
Awesome, yes!
Thanks, it will take me several days to work my mind around the structure, but this is perfect. :D |
That worked wonderfully. In fact, I ended up combining her other quest into it because this was more efficient.
However, I experimented with different ways to return unwanted items. Code:
else { I tried inserting it after the if argument within the foreach and even after the foreach, but no luck. Is there a different command when using these different arguments? Something like if itemcount (does not equal?) @items... |
You should probably google "perl tutorial" or really any basic computer logical expression explanations. If you think an else can go after a foreach(not knocking you, we all start somewhere), then its going to be really frustrating for you to attempt to get things done. Most people spend a lot of time on the DB and spells, etc... spend a fraction of that time doing perl tutorials or C++ tutorials and in a few weeks you will be shocked.
Havent tested this, but may work. Code:
sub EVENT_ITEM |
All times are GMT -4. The time now is 01:58 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.