What's wrong with this quest?
I just modified one of my old quests to work as a teleporter. The npc doesn't respond to hails or when you give him money. I did enable quest globals for him.
Code:
sub EVENT_SAY{ |
Did you reload the quests?
|
You are missing a ; after each occurrence of quest::selfcast
|
thank you, that's what I get for copy/pasting.
|
hashes are now used instead of the old $porter restricted vars. Consider using $qglobals{porter} as the old method is deprecated. Using the new way does not require you to use all of the $porter = undef; as there are many potential errors when using that.
example: Code:
if ($qglobals{porter} >= 50) { |
Ok, I have a new problem. I am trying to make a quest that checks the persons class. I have tried all formats I can think of and it will not check the class properly. Right now it is just an extremely simple quest because I am trying to figure out what's wrong with it. Knowing me, I probably just have something out of order.
Code:
sub EVENT_SAY{ if ($class = "shadowknight"){ if ($class = 'shadowknight'){ if ($class == 'shadowknight'){ if ($class eq "shadowknight"){ if ($class eq 'shadowknight'){ |
Have you tried $class eq "Shadowknight" ? I think they are capitalized.
|
Nice, that fixed it. Thanks
|
New problem. I am trying to make a monster spawn adds at 75% and 25% and on death, but the only time one spawns is on death. This is the monsters quest
Code:
sub EVENT_SPAWN{ |
Are you using quest::setnexthpevent()?
|
Here is an example from a simple script on my server:
Code:
my $x; |
Code:
sub EVENT_SPAWN{ |
Probably something to do with your script. Looks like you have this:
Code:
if ($hpevent <=25){ Code:
if ($hpevent == 25){ |
I am making a quest where killing monsters will give you a global credit, and then you can hail someone in PoK for your epic. Here are their two quests:
Code:
sub EVENT_DEATH{ Code:
sub EVENT_SAY{ |
If I were you, I would do a task rather than mess with globals in the death event.
|
All times are GMT -4. The time now is 04:59 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.