Thread: Instances.
View Single Post
  #15  
Old 01-21-2013, 05:50 PM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

I implemented this into the zone Karnor's Castle and the players are saying it's sending them to different instances even if they're in the same group. Script below:

EDIT: Also wondering about the more advanced version of the script with buttons and everything, where could I find that?

Code:
sub EVENT_SAY
{
	
	my $Solo = quest::saylink("Solo", 1);
	my $Group = quest::saylink("Group", 1);
	my $Guild = quest::saylink("Guild", 1);
	my $NPCName = $npc->GetCleanName();
	
	
	
	if($text=~/Hail/i)
	{
		$client->Message(315, "$NPCName whispers to you, 'Do you want to create an instance? If so, $Solo, $Group, or $Guild?'");
	}
	if($text=~/Solo/i)
	{
		plugin::SendToInstance("solo", "karnor", 0, 314.4, 24.8, 4.5, "EXP", 604800);
	}
	if($text=~/Group/i)
	{
		plugin::SendToInstance("group", "karnor", 0, 314.4, 24.8, 4.5, "EXP", 604800);
	}
	if($text=~/Guild/i)
	{
		plugin::SendToInstance("guild", "karnor", 0, 314.4, 24.8, 4.5, "EXP", 604800);
	}
}
Reply With Quote