I posted earlier with regard to a typo in Dargon McPherson's "deliver an elixir to young warriors" quest and it seems there is more wrong with this quest than first appeared. I appologize for starting another thread, but I didn't think my request for help would be noticed with the other post's topic.
After I gave Kylan ODanos the note, I went over to Dargon McPherson and got the elixir quest, so I could work on faction. I proceeded to Everfrost to do my first turn-in to Talin ODonal and when I gave him the elixir, nothing happened.
So, I set out to try to fix my first quest and I need a little guidance, if anyone is willing. I am not a programmer, but I am willing to learn, just like everyone else.
With that in mind, could you please take a look at what I have toward's the bottom of this post and give me some advice as to why this turn-in does not work?
Looking at the original code, it is obvious why the turn-in doesn't work. Talin wasn't programmed to accept anything or do anything else except say "Brrrrrr!! Grr.. Grreetings. It is freezing out here!!"
Original Code Was:
Code:
sub EVENT_SAY {
if($text=~/Hail/i){
quest::say("Brrrrrr!! Grr.. Grreetings. It is freezing out here!!"); }
}
#END of FILE Zone:everfrost ID:4881 -- Talin_ODonal
I took a look at the example quests on this page :
http://www.eqemulator.net/wiki/wikka...SimpleExamples
The bone chip turn-in seemed like the perfect example, but it did not work as planned. I just cut and pasted the example and edited to suit the quest.
I changed the Itemcount, faction, and summonitem variables, with information I gathered about the quest.
I assume the
itemcount variable needs to be the
elixir ID, the
faction ID was taken from the ID I got from Kylan for turning in the note, and I got the
summonitem ID from looking at the Dargon_McPherson.pl file, because the item was first summoned in that quest. I verified that the
summonitem ID is correct by doing the command
#summonitem 13241 in the game console and obtained an elixir.
If your not familiar with this quest, you are supposed to run around and give each NPC a drink of the elixir and when you do, they thank you and return the elixir to you. You receive faction, and experience when this happens. Then they tell you the approximate location of the next NPC that might need some of the tonic's warming effects. After running around doing the turn-in's to several NPC's, you are to return to Dargon McPherson for the quest completion and the reward of faction, experience, and an item.
Please note, that when I hail Talin, he doesn't even reply, let alone take the elixir, give me exp, and hand it back.
This piece of code should be all I need to fix the quest to completion. I'll just duplicate it for each of the NPC's.
Here's My Code:
Code:
sub EVENT_SAY {
if($text=~/Hail/i){
quest::say("Brrrrrr!! Grr.. Grreetings. It is freezing out here!!");
}
}
sub EVENT_ITEM
{
if ($itemcount{13241} == 1){quest::say("Thank you! I think what's her name needs some too, she can be found.....");
quest::exp(125);
quest::faction(10103,1);
quest::summonitem(13241);}
}
#END of FILE Zone:everfrost ID:4881 -- Talin_ODonal
I greatly appreciate any help that you can offer and I'll try to help others if I can, once I learn it, that is.
Hamarabi