View Single Post
  #2  
Old 07-07-2008, 07:02 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

Try this:

Code:
sub EVENT_ITEM { 
	if ($itemcount{17} == 1) {
		if ($class eq "Paladin" || $class eq "Bard") {
			quest::summonitem(18);
			quest::shout("Congratulations $name");
		}
	} else {
		plugin::return_items(\%itemcount);
		quest::say("WRNG ITMZ FTWZ!!1");
	}
}
You could also do it this way (all on 1 line):

Code:
sub EVENT_ITEM {
	if ($itemcount{17} == 1 && ($class eq "Paladin" || $class eq "Bard")) {
		quest::summonitem (18);
		quest::shout("Congratulations $name");
	}
}
Hope this helps.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote