View Single Post
  #6  
Old 08-13-2004, 07:00 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Quote:
Originally Posted by hypershadow66
i have mine working heres the code if you want it


Code:
sub EVENT_SAY  
{  
if ($text=~/hail/i) { quest::say("Would you like ALL of your spells [scribe]d?"); } 
if ($text=~/scribe/i) { quest::scribespells(65); }  
}
and if you dont want it, then forget what i just posted =P

EDIT
Oh and be shore not to make the NPC's Name have Scribe in it
I believe the syntax is,
Code:
if($text=~/scribe/i){quest::scribespells();}
__________________
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