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....