Class Specific Headaches
Trying to figure out whats wrong with this. Sorry to ask so many questions lately about quests. I am slowly learning though :( Anyways for this quest she responds to the hail. As soon as you hand the item in she just eats it and says nothing. It is supposed to hand you your epic and Ding you to lvl 51.
Code:
sub EVENT_SAY { |
Found one small syntax error. Fixed it, script still broken though :(
Changed to: Code:
sub EVENT_SAY { |
OK after deciding I was trying to be too complex with this quest for my small knowledge of perl I completely rewrote it. This is about the ugliest way I could possibly have written it probably, but it is also very simple. This is what I have now. Can someone tell me why she hands me every epic instead of just one? I used an SK to test btw.
Code:
sub EVENT_SAY { |
OK realized how noob some of the mistakes in that quest were. This is what I'm tinkering with now. For some reason it hands me the cleric epic no matter what class I am. ( Which is the first epic on the list.
Code:
sub EVENT_SAY { |
You need to define class first:
Code:
if ($class eq 'Warrior' || $class eq 'Rogue' || $class eq 'Monk' || $class eq 'Berserker' || $class eq 'Shadowkight' || $class eq 'Paladin' || $class eq 'Ranger' || $class eq 'Bard' || $class eq 'Beastlord' || $class eq 'Cleric' || $class eq 'Druid' || $class eq 'Shaman' || $class eq 'Wizard' || $class eq 'Mage' || $class eq 'Enchanter' || $class eq 'Necromancer') { http://www.eqemulator.net/forums/showthread.php?t=24321 |
Thank you Trev, I really do appreciate all the help you have given me on quests. I swear I'm slowly learning :)
|
Added the line in and it still just hands me the cleric epic /sigh
Code:
sub EVENT_SAY { |
Giving up for tonight before I throw my computer out the window. Still gives me a cleric epic :(
Code:
sub EVENT_SAY { |
You were closer with your first format. I haven't tested this for you, but something like this should work:
Code:
sub EVENT_SAY { |
Thank you again trev, man I hate when I have to keep posting wrong stuff. I feel dumber with every post :(
Just tested and it appears to work great now. I swear about 5 more minutes with this one and I was gonna throw my computer out the window. |
Quote:
|
from what I can see the the primary problem all along was that you kept using
$class == "Wizard" instead of $class eq 'Warrior' |
Quote:
And ya, if you aren't using a numeric value, you have to use eq instead of ==. |
Using the last code you posted Trevius, I can't seem to figure out why but...
Shadowknight = Quest works 100% Druid = Nothing happens, Eats the item Warrior = You get the first reward on the list for Warriors Every other class tested = eats the item...tested Ranger, Mage, Necro |
fixed using my earlier version of the quest, replaced all of the == with eq and it works fine.
|
All times are GMT -4. The time now is 11:58 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.