View Single Post
  #2  
Old 08-15-2004, 09:06 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Try this.
Code:
sub EVENT_SAY
{
if($text=~/hail/i)
  {
  quest::say("What business do you have in my realm?  I did not request your presence!  Has [somebody] sent you to me?");
  }
if($text=~/somebody/i)
  {
  quest::say("Who told you to speak with me?  Speak their name!");
  }
if($text=~/phexor/i)
  {
  quest::say("Oh you you are here on the matter of Father Time.  Well before I waste my time helping you, I expect you to pass a [test].  If you are indeed a worthy soldier, you will have no problem passing this test.");
  }
if($text=~/test/i)
  {
  quest::say("Yes, I will summon forth some of my most honorable soldiers.  Fight them and return to me each of there gems. Let me know when you are [ready] to start.");
  }
if($text=~/ready/i)
  {
  quest::say("Very Well, Hand me 500 pieces of platinum to start.");
  }
}
sub EVENT_ITEM
{
if($platinum == "500")
  {
  quest::say("Below me is four soldiers.  Fight them and bring me there symbol's as proof of your actions.");
  quest::spawn(281234,0,0,-170,2438,463); 
  quest::spawn(281234,0,0,-170,2311,466); 
  quest::spawn(281234,0,0,180,2283,463); 
  quest::spawn(281234,0,0,180,2431,463);
  }
if($itemcount{69117} == "4")
  {
  quest::say("Very well $name, I see you have the will of a noble soldier.  Take this Symbol as proof of our meeting. Now you must venture to Paludal Caverns where you will meet The Duke of Below.");
  quest::summonitem(69113);
  }
}
After looking at my formatted code compared to yours, I noticed a very simple problem. You didn't close EVENT_SAY. Remember to READ the output of zone.exe and it will usually tell you exactly what is wrong.

~Cisyouc
__________________
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