Thread: $race related
View Single Post
  #6  
Old 09-21-2004, 07:08 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Quote:
Originally Posted by Magoth78
Hello Cisyouc and thanks for your answer. I've tried your script but it always returns me 'Your are a human' even if I m an other race (just tested whit a dark elf)
Code:
sub EVENT_SAY 
{ 
if($text~/hail/i) 
  { 
  $xrace = ($race);
  if($xrace == "Human") 
    { 
    quest::say("You are a human."); 
    } 
   else 
    { 
    quest::say("FOOL! You are a $xrace not a human!"); 
    } 
  } 
}
Dont know if this will improve anything but try this?
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote