Thread: coming soon
View Single Post
  #27  
Old 07-23-2004, 11:41 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Quote:
Originally Posted by Cisyouc
Quote:
Code:
quest::targlobal("Var",$charid + 1,"D1",$mobid,$charid,$zoneid);

This makes sure that Character 1 will have a value of 2, and character 2 will have a value of 3, thus when you check to see if they have the correct value you put.
WOW! I didn't try it yet, but that is very clever Thanks =)
After looking at it, its still not probably going to work. Well, ill try it anyway. Heres what I have.
Code:
sub EVENT_SAY
 {
if($text=~/hail/i)
  {
   if($solusek == "")
    {
    quest::say("Hello, would you like to [help] me? (NEW)");
    }
    elsif($solusek == $charid + 1)
     {
     quest::say("Thanks for assisting me!");
     }
    }
if($text=~/help/i)
 {
  if($solusek == "")
   {
   quest::targlobal("solusek",$charid + 1,"Y5",$mobid,$charid,$zoneid);
   quest::me("You have recieved a character flag!");
   }
   elsif($solusek == $charid + 1)
    {
    quest::say("You've already assisted me!!");
    }
   }
  }
Update Didnt work!!!
__________________
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