Ok, I can do a basic quest to setup an instance, that's easy. My question will be for something a little bit more involved, unless I'm just completely missing something simple. I'm still learning daily in perl, so I have to look at examples for some of the things I want to do, but here is what I've got so far just for testing purposes.
Code:
sub EVENT_SAY {
if ($text =~/Hail/i){
quest::say ("Good day to you, $name. Are you ready for a [test]?"); }
if ($text =~/test/i){
quest::CreateInstance(guildhall, 0, 300);
quest::GetInstanceID(guildhall, 0);
quest::AssignToInstance(1);
quest::say ("Ok do you want to go now?");
}
if ($text =~/go/i){
quest::MovePCInstance(345, 1, 0, 1, 2.7, 0);
}
}
This is a very simple thing to just load into an instance and I'm obviously assigning them to instance id 1, just because I know that's going to be the next id available. What I want to do is if I set this up to bring someone to a zone, and there might be potentially be more than 1 instance running, how would I use the getinstanceId command to assign that person to their particular instance. I would like to also expand this to allow guilds to have their own guildhall at some point, but my knowledge in perl is lacking on how to do that with these commands. (I know these aren't all the instance commands.) Anyway, any help would be much appreciated!