Quote:
Originally Posted by Akkadius
As far as the script, make a file for the shortname. And then insert the appropriate script quoted earlier into player.pl and then #reloadpl in game to clear the memory cache.
If you take the NPC route and put that same instance function on an NPC, make sure you enable Qglobals for the NPC using the script mentioned above:
Code:
sub EVENT_SAY {
if ($text =~/hail/i)
{
quest::say("Hello $name, would you like to be transfered to your [GuildHall]?");
}
if($text =~/Guildhall/i)
{
quest::say("Let me see...");
if($uguild_id > 0)
{
if (defined($qglobals{"GuildInstance_$uguild_id"}))
{
my $QGlobalValue = $qglobals{"GuildInstance_$uguild_id"};
quest::AssignToInstance($qglobals{"GuildInstance_$uguild_id"});
quest::MovePCInstance(345, $QGlobalValue, 0, 0, 0);
quest::say("Moving you to the instance now");
}
else
{
quest::say("No instance existed, so creating one");
my $instanceID = quest::CreateInstance("guildhall", 0, -1);
quest::AssignToInstance($instanceID);
quest::setglobal("GuildInstance_$uguild_id",$instanceID,7,"M60");
quest::MovePCInstance(345, $instanceID, 0, 0, 0);
quest::say("Moving you to the instance now");
}
}
else
{
quest::say("I am sorry but you are not part of a guild");
}
}
}
The Guild Bank ZONE ID is set in Rules_Values:
Code:
INSERT INTO `rule_values` (`ruleset_id`, `rule_name`, `rule_value`, `notes`) VALUES (1, 'World:GuildBankZoneID', '345', 'ID of zone the Guild Bank works in. Default 345, guildhall');
The reason for this is: as quoted by Derision
Hope that helps!
|
Hrmm, well sorry but this actually didn't help, I know your trying to help inform, but you've only stated more things I already knew.
I understand the guild bank can only be located in a single zone. I want it ONLY located in pok, to remove the pointless zone after zone just to get to the guild bank.
I can easily change the zoneid of the guild bank in the database, but how do I then access the guild bank from pok. I will need to create an NPC players can use to access it right?
Thats the part I don't know how to do.
I currently have it setup so the guild lobby door goes strait to the guild hall(not instanced, I can't get instancing to work for the life of me, but each guild can access their guild bank, they just share the zone), to eliminate a pointless zone. It's still another zone away non-the-less.
P.S. I know that's not what this thread was originally about, but that's what I'm trying to do at this point.