View Single Post
  #1  
Old 07-19-2009, 10:08 PM
merb
Sarnak
 
Join Date: Jul 2005
Location: Ohio
Posts: 72
Default 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)) {
  quest::say("Very good, but maybe you should keep this. I believe you will have more use for it than I. Maybe Dsarrik can help you.");
  quest::exp(10000);
  quest::summonitem("8911");
 }
 elsif ($itemcount{8911} == 1) {
  quest::say("Well now look at that! I believe you, $name, have done a great deed this day!");
  quest::exp(10000);
 }
}
I know on the "elsif" line, I should probably change it to something like:

Code:
elsif (($itemcount{8911} == 1)&&($uclass = <class #'s>))
However, I inserted all class numbers in the "$uclass =" line except 5, and any other class still returns the line as if you WERE a shadowknight.

So basically, for either npc, how would I get them to respond differently to a Shadowknight than any other class?
__________________
Building Server
Legends of Time - Full Custom/Legit Roleplay, need devs
Reply With Quote