Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($Group == 1){
- if($text=~/Enter Group Trial/i || $text=~/Create Group Trial/i){
- #Group Type
- my $GETGROUP = plugin::GetGroupID();
- my $TYPE = $GETGROUP;
- my $space = "_";
- my $InstanceName = "INST";
- my $ZoneSN = $zonesn;
- if($GETGROUP){
- if (defined($qglobals{"$TYPE$space$InstanceName$space$ZoneSN"})) {
- plugin::SendToInstance("group", $zonesn, 1, $Cx, $Cy, $Cz, "INST", 7200);
- $client->Message(15, "Relocating to your assigned Group trial: [$zoneln]");
- }
- else{
- my $accountid = $client->AccountID();
- my $bankcredit = $qglobals{"BankCredit_$accountid"};
- my $cost = $GroupCost; ###Group Cost
- if ($bankcredit < $cost){
- $client->Message(315,"You need ". ($cost - $bankcredit) . " more plat!");
- }
- else{
- plugin::QCreditAccountPull("BankCredit", $cost);
- plugin::SendToInstance("group", $zonesn, 0, $Cx, $Cy, $Cz, "INST", 7200);
- }
- }
- }
- else{
- $client->Message(15, "You need a group to initiate a group trial!");
- }
- }
- }
Add Comment
Please, Sign In to add comment