Guest User

Untitled

a guest
Jan 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. if ($Group == 1){
  2. if($text=~/Enter Group Trial/i || $text=~/Create Group Trial/i){
  3. #Group Type
  4. my $GETGROUP = plugin::GetGroupID();
  5. my $TYPE = $GETGROUP;
  6. my $space = "_";
  7. my $InstanceName = "INST";
  8. my $ZoneSN = $zonesn;
  9. if($GETGROUP){
  10. if (defined($qglobals{"$TYPE$space$InstanceName$space$ZoneSN"})) {
  11. plugin::SendToInstance("group", $zonesn, 1, $Cx, $Cy, $Cz, "INST", 7200);
  12. $client->Message(15, "Relocating to your assigned Group trial: [$zoneln]");
  13. }
  14. else{
  15. my $accountid = $client->AccountID();
  16. my $bankcredit = $qglobals{"BankCredit_$accountid"};
  17. my $cost = $GroupCost; ###Group Cost
  18. if ($bankcredit < $cost){
  19. $client->Message(315,"You need ". ($cost - $bankcredit) . " more plat!");
  20. }
  21. else{
  22. plugin::QCreditAccountPull("BankCredit", $cost);
  23. plugin::SendToInstance("group", $zonesn, 0, $Cx, $Cy, $Cz, "INST", 7200);
  24. }
  25. }
  26. }
  27. else{
  28. $client->Message(15, "You need a group to initiate a group trial!");
  29. }
  30. }
  31. }
Add Comment
Please, Sign In to add comment