Created
December 28, 2015 08:25
-
-
Save Natureknight/442ffaf9046079ff58a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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