Skip to content

Instantly share code, notes, and snippets.

@Natureknight
Created December 28, 2015 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Natureknight/442ffaf9046079ff58a6 to your computer and use it in GitHub Desktop.
Save Natureknight/442ffaf9046079ff58a6 to your computer and use it in GitHub Desktop.
diff --git a/src/server/scripts/Custom/copyGearCommands.cpp b/src/server/scripts/Custom/copyGearCommands.cpp
index dac3e51..f3cbc68 100644
--- a/src/server/scripts/Custom/copyGearCommands.cpp
+++ b/src/server/scripts/Custom/copyGearCommands.cpp
@@ -98,6 +98,12 @@ public:
return false;
}
+ if (target->GetSession()->GetSecurity() >= 2)
+ {
+ handler->PSendSysMessage("You can't copy from GM.");
+ return false;
+ }
+
// Restrict copying from the opposite faction
if (player->GetTeam() != target->GetTeam())
{
@@ -161,6 +167,12 @@ public:
return false;
}
+ if (target->GetSession()->GetSecurity() >= 2)
+ {
+ handler->PSendSysMessage("You can't copy from GM.");
+ return false;
+ }
+
CopyTalents(player, target);
handler->PSendSysMessage("Successfuly copied talents of %s",
target->GetName());
@@ -209,6 +221,12 @@ public:
return false;
}
+ if (target->GetSession()->GetSecurity() >= 2)
+ {
+ handler->PSendSysMessage("You can't copy from GM.");
+ return false;
+ }
+
// Restrict copying from the opposite faction
if (player->GetTeam() != target->GetTeam())
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment