class and level specific quest.. not working at all
I am in the proccess of trying to make a quest for every class to get spells every 4, 9 or how ever many levels they are able to get spells. I know I could make a spell scriber quest, but I don't want some spells to be used, and I want the spells they do use to be earned.
What I've been trying to sets a level range for the quest, in this one I was trying to make it if the player is equal to or greater than 4, and less than or equal to level 7, and the player must be a wizard. To my dismay, nothing works. The npc just stands there and eats the items. I think I may be making it over complicated or just flat out doing everything wrong.. lol. Hopefully someone has some suggestions :D. Code:
#Spell Scriber - level And Class Specific - Wizard |
Try this
For the text, it's your "eq" and "else" statements. I rearranged it so you could add in any specific class by using "elsif" statements later. As for the turn-in, I am not sure if you will need to split up the items and the gold. I've never dealt with turning in both before. You could try this and see if it works:
Code:
#Spell Scriber - level And Class Specific - Wizard |
Making Porgress
He definitely responds to hails now, but both if statements fire off.
When you hail him he says, "Ah, $name..." followed directly by a "I knew you would be interested." Even though I never said teach. I copy pasted the code from above and made sure it all looked okay in George S. Quest Editor. Code:
sub EVENT_SAY Thanks for the help so far! |
Ah
Oh, he is probably picking up the "teach" in his own text. Here is a fix:
Code:
sub EVENT_SAY |
hmm
Elsif definitely stopped him from firing off both strings of text, but now when you tell him "teach" he simply says the first if repeatedly.
I changed sub EVENT_ITEM to: Code:
sub EVENT_ITEM |
from my experience if quest plugin check involves both cash and items- you must be EXTRA specific with it.
for once i belvie they have to be inside same If statement, and what si important if you give him 15 gold and 1 copper - he will just eat the items cuase the cash specified did not match overall- AVOID using cash give in at all, cuase plugin return does not work for wrong cash given also you may want to check for items BEFORE you check if he is wizard, cuase otherwise he will eat the items first, determine that you nto wizard and wihout plugin return- you won't get anything back |
oh yeah i think you have a missing parentesis. like A LOT of them
Code:
|
Copy/Paste Bug
There seems to be something wrong with the way we are pasting the code in to your .pl file. You are getting extra spaces (possibly CRs). Try this text for the say event and after you paste it in, try to make it look like it does on the board.
Code:
sub EVENT_SAY { |
Part 2
Ok, so you can try this. You might just consider the 15 gold as a donation if they are not wizard or they turn in the wrong item... That's what they get for trying to buck the system!!
Code:
sub EVENT_ITEM { |
hmn
The text part is working great now :).
|
sub EVENT_ITEM
Seems like I might of had a plugin problem, I grabbed updated versions and placed them in EQemu\plugins.
I then reduced sub EVENT_ITEM all the way him just wanting the item and then work my way up from there, but he still just eats everything, even if it's the right item. Code:
sub EVENT_ITEM { #1 open |
!
It seems the elsif was breaking the sub EVENT_ITEM!
|
Quote:
|
Removing Gold
From my last item event, if you want to remove the gold part, try this:
Code:
sub EVENT_ITEM { |
using your last code
Using your last EVENT_ITEM he simply just stands there as always what I did was used your code with the exception of one bracket I took out.
Code:
sub EVENT_ITEM { Since you posted I've tried: Code:
elsif (plugin::check_handin(\%itemcount, 1079 => 1)) { Code:
if (plugin::check_handin(\%itemcount, 1079 => 1)) { Everything else works. This is what I have in the .pl right now for sub EVENT_ITEM for the time being. Code:
sub EVENT_ITEM { I thought I had to completely reboot the server everytime I tried a new script... no wonder my first script took 6 hours lol! |
All times are GMT -4. The time now is 10:48 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.