Different Classes Get Different Messages
I'm working on a quest right now that all classes can do. However, after turning in the final item to the quest giver, if you are a Shadowknight, he:
1) Gives you the item back 2) Gives you experience 3) Tells you to find another NPC BUT, if you are any other class, he: 1) Says some stuff 2) Gives you experience Then, the next NPC that you are sent to if you are a sk, if you hand him the item as a sk, he: 1) Gives the item back 2) Says some text to begin another quest Any other class just gets text. For the first quest mob, here's what I've got for the turn-in: Code:
if (($itemcount{8911} == 1)&&($uclass = 5)) { Code:
elsif (($itemcount{8911} == 1)&&($uclass = <class #'s>)) So basically, for either npc, how would I get them to respond differently to a Shadowknight than any other class? |
The variable for the player's class is actually $class rather than $uclass. $class stores the name of the player's class as a string,
so if you wanted to check if the player was a shadowknight in your example, the first line would be: Code:
if (($itemcount{8911} == 1) && $class eq "Shadowknight") |
I changed the line to look like this:
Code:
if (($itemcount{8911} == 1)&&($class eq = "Shadowknight")) { |
This should take care of your handin problems. Using eq "Shadowknight" for the shadowknight part of the handin and ne "Shadowknight" for everyone else. In the skickies there should be links to the perl system here to make things easier.
Trevius has some good links to look at here: http://www.eqemulator.net/forums/showthread.php?t=26075 Code:
sub EVENT_ITEM { |
All times are GMT -4. The time now is 04:09 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.