Thread: coming soon
View Single Post
  #4  
Old 07-22-2004, 06:17 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

When I try and use this in my quests the npc does not revert to default as if there was an error, but whenever I try and trigger the setglobal() or targlobal() it doesnt work, and people in #support have said my quest is correct, so any thoughts?

What happens is if I have,
Code:
#281099.pl
sub EVENT_SAY
{
if($npcvari1 == 0 && $text=~/hail/i)
 {
 quest::say("Hello! Would you be interested in helping me?");
 }
if($npcvari1 == 1 && $text=~/helping/i)
 {
 quest::say("Thanks!");
 quest::targlobal("npcvari1","1","Y5",281099,$charid,26);
 quest::me("You have recieved a character flag!");
 }
}
When this is run, and you /say helping, the only thing that shows is "Thanks!" and on rehail I get the same "0" message, even after #reloadquest, logging, and zoning.

Any thoughts?
__________________
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