View Single Post
  #2  
Old 07-19-2004, 05:58 PM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Here you go.
Code:
sub EVENT_SAY
{
if($text=~/Hail/i){quest::say("Greetings, $name. If you wish to follow the ways of discord, simply tell me you wish to be what we call [pvpon]. To follow the ways of Order and remove your "PvP" tag, simply chant the words, [pvpoff].");}
if($text=~/pvpon/i){quest::say("Good Choice. Destory the shackles of order, $name!!!");quest::pvp("on");}
if($text=~/pvpoff/i){quest::say("While you will regret putting yourself back under Order, I cannot refuse your request.");quest::pvp("off");}
}
Also, this is in a sticky although I redid it to your exact requests, so, next time look around a little =)
__________________
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