View Single Post
  #2  
Old 07-19-2009, 10:45 PM
Sion
Fire Beetle
 
Join Date: Jun 2008
Location: -
Posts: 14
Default

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")
Reply With Quote