View Single Post
  #2  
Old 08-28-2009, 10:15 PM
Shadow-Wolf
Dragon
 
Join Date: Oct 2003
Posts: 511
Default

Doesn't really work, something to do with the way instances are created IDK.

Code:
sub EVENT_SAY 
{
	if (($text =~/Guild/i) && ($uguild_id > 0))
	{
		quest::say("Just a moment...");
		$instGuild = quest::GetInstanceID("guildhall", $uguild_id);
		if($instGuild < 1)
		{
			quest::say("creating instance and sending you");
			$instGuild = quest::CreateInstance("guildhall", $uguild_id, -1);
			quest::AssignToInstance($instGuild);
			quest::MovePCInstance(345, $instGuild, 0, 0, 0);			
		}
		else
		{
			quest::say("sending to existing instance");
			quest::AssignToInstance($instGuild);
			quest::MovePCInstance(345, $instGuild, 0, 0, 0);
		}
	}
		
}
Redid it a little, it only allows the first player to get in. After that I don't know why but it ignores the check to see if the instance already exists and creates a second one anyways. Really frustrating....
__________________
How about the power to kill a yak from 200 yards away...WITH MIND BULLETS! thats telekinesis kyle.
Reply With Quote