Register for your free account! | Forgot your password?

You last visited: Today at 23:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HOW TO] Restrict GM drop items!

Discussion on [HOW TO] Restrict GM drop items! within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
lucy08's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 154
Received Thanks: 161
[HOW TO] Restrict GM drop items!

Hallo liebe community,

In this tutorial i will show you how to restrict GM's drop or trade items.

To restrict Drop, do this:
1. Open game.py and find this code:
Code:
def __SendDropItemPacket(self, itemVNum, itemCount):
2. Under that, add this code:
Code:
		# GM_DISABLE_ITEM_DROP
		char = player.GetMainCharacterName()
		GMMark= "["
		if char >= GMMark:
			chat.AppendChat(chat.CHAT_TYPE_INFO, locale.DROP_ITEM_FAILURE_GM)
			return
		# END_OF_GM_DISABLE_ITEM_DROP
3. Open locale_game.txt and add this:
Code:
DROP_ITEM_FAILURE_GM	GM can't drop items on the ground.
To restrict Trade, do this:
1. Open game.py and find this code:
Code:
def __PutItem(self, attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, dstChrID):
2. Under that, add this code:
Code:
		# GM_DISABLE_ITEM_SEND
		char = player.GetMainCharacterName()
		GMMark= "["
		if char >= GMMark:
			chat.AppendChat(chat.CHAT_TYPE_INFO, locale.SEND_ITEM_FAILURE_GM)
			return
		# END_OF_GM_DISABLE_ITEM_SEND
3. Open locale_game.txt and add this:
Code:
SEND_ITEM_FAILURE_GM	GM can't send items.

have fun, lucy08
lucy08 is offline  
Thanks
16 Users
Old 01/25/2013, 15:53   #2
 
Chikyou's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 114
Received Thanks: 72
Nice
But, how i suppost to do to restrict gm to negotiate?
Chikyou is offline  
Old 01/25/2013, 15:56   #3


 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,220
Received Thanks: 6,758
Nice idea, but it can't work how u did it.
#SoNiice is offline  
Old 01/25/2013, 15:59   #4

 
IgorGlock's Avatar
 
elite*gold: 1862
Join Date: Jan 2009
Posts: 3,725
Received Thanks: 7,671
It should work
But not the best way.
IgorGlock is offline  
Old 01/25/2013, 16:00   #5


 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,220
Received Thanks: 6,758
Quote:
Originally Posted by IgorGlock View Post
It should work
But not the best way.
Man kann in Python Strings mit "Größer / Gleich" abfragen? Habe ich noch nie getestet, daher behaupte ich mal, dass es nicht geht - Wäre auch irgendwie unlogisch.
#SoNiice is offline  
Old 01/25/2013, 17:28   #6
 
elite*gold: 0
Join Date: Apr 2012
Posts: 665
Received Thanks: 214
Selbst dann kann ein Gamemaster immer noch die Sachen ins Lager tun und sich nen anderen Char erstellen mit dem er es dann fallen lässt
LotusSky is offline  
Old 01/25/2013, 18:34   #7
 
elite*gold: 139
Join Date: Sep 2010
Posts: 583
Received Thanks: 546
Quote:
Originally Posted by SoNiice View Post
Man kann in Python Strings mit "Größer / Gleich" abfragen? Habe ich noch nie getestet, daher behaupte ich mal, dass es nicht geht - Wäre auch irgendwie unlogisch.
glaub ich auch nicht das macht keinen sinn einfach mit if char.find("[") != -1:
.XXShuzZzle is offline  
Old 01/25/2013, 19:44   #8


 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,220
Received Thanks: 6,758
Quote:
Originally Posted by ShuzZzle View Post
glaub ich auch nicht das macht keinen sinn einfach mit if char.find("[") != -1:
Damit würde es schon eher gehen, aber definitiv nicht so, wie der Threadersteller es postete!
#SoNiice is offline  
Old 01/25/2013, 19:48   #9
 
lucy08's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 154
Received Thanks: 161
@Chikyou
INCOMING!

@SoNiice
yes, it's possible
edit: try it, it's not hard work to do!

@ShuzZzle
that's incorect in this context
lucy08 is offline  
Old 01/25/2013, 19:50   #10
 
.NoThx's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,146
Received Thanks: 583


already released.
#closerequest
.NoThx is offline  
Old 01/25/2013, 20:28   #11
 
lucy08's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 154
Received Thanks: 161
i updated tutorial
lucy08 is offline  
Old 01/25/2013, 22:11   #12
 
elite*gold: 0
Join Date: Jan 2013
Posts: 7
Received Thanks: 0
It should work
But not the best way.))
chrisicek is offline  
Old 01/26/2013, 17:22   #13
 
Chikyou's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 114
Received Thanks: 72
Quote:
Originally Posted by lucy08 View Post
To restrict Trade, do this:
1. Open game.py and find this code:
Code:
def __PutItem(self, attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, dstChrID):
2. Under that, add this code:
Code:
		# GM_DISABLE_ITEM_SEND
		char = player.GetMainCharacterName()
		GMMark= "["
		if char >= GMMark:
			chat.AppendChat(chat.CHAT_TYPE_INFO, locale.SEND_ITEM_FAILURE_GM)
			return
		# END_OF_GM_DISABLE_ITEM_SEND
3. Open locale_game.txt and add this:
Code:
SEND_ITEM_FAILURE_GM	GM can't send items.

have fun, lucy08
This is not working '-'
Chikyou is offline  
Old 01/29/2013, 10:19   #14
 
lucy08's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 154
Received Thanks: 161
have you even tried?
give it a chance if you need it, it's sample... :P
lucy08 is offline  
Thanks
1 User
Old 01/29/2013, 20:54   #15
 
elite*gold: 12
Join Date: Jan 2013
Posts: 79
Received Thanks: 508
Ich habe für diese gesucht seit Jahren!
.Wildfire is offline  
Thanks
6 Users
Reply


Similar Threads Similar Threads
[Ganz Einfach]HowTo GM Items & Neue Waffen & Drachengott Items implementieren
08/01/2012 - Metin2 PServer Guides & Strategies - 31 Replies
Hey Com, ich weiß zwar, dass es schon einige solcher Threads gibt ABER diesen bestimmt noch nicht.... Also ich habe mal eine Query(Erklär ich gleich) für euch reingeschreiben, mit der man übelst einfach GM,Drachengott und neue Waffen entbuggt :) Also so gehts :1. Navicat öffnen 2. in die Datenbank "player" 3. die Tabelle "item_proto" öffnen 4. Links oben auf File
Mani Admin Plugin (Restrict Weapons Frage)
11/02/2011 - Counter-Strike - 4 Replies
Also mein Problem ist, wenn ich waffen vebiete, hebt sich das beim nächsten mapchange wieder auf, also die waffen die vorher verboten waren kann man dann wieder benutzen -.-. und das nervt. wie kann ich das einstellen das das permanent so bleibt?
NIGHTCLUB CHEAT!! Clone all owned items even Facebook Credits Items 100%Working!!
08/21/2010 - Facebook - 2 Replies
Require Tools * Charles * Firefox * NotePad++ (not required but it makes your job easier) Credits: Kingrj123,Botete0030 Steps@pwnthis to cloning items even Facebook Credits items:



All times are GMT +1. The time now is 23:32.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.