|
You last visited: Today at 23:31
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.
01/25/2013, 13:34
|
#1
|
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
|
|
|
01/25/2013, 15:53
|
#2
|
elite*gold: 0
Join Date: Oct 2012
Posts: 114
Received Thanks: 72
|
Nice 
But, how i suppost to do to restrict gm to negotiate?
|
|
|
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.
|
|
|
01/25/2013, 15:59
|
#4
|
elite*gold: 1862
Join Date: Jan 2009
Posts: 3,725
Received Thanks: 7,671
|
It should work 
But not the best way.
|
|
|
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
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.
|
|
|
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
|
|
|
01/25/2013, 18:34
|
#7
|
elite*gold: 139
Join Date: Sep 2010
Posts: 583
Received Thanks: 546
|
Quote:
Originally Posted by SoNiice
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:
|
|
|
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
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!
|
|
|
01/25/2013, 19:48
|
#9
|
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
|
|
|
01/25/2013, 19:50
|
#10
|
elite*gold: 0
Join Date: Jun 2010
Posts: 3,146
Received Thanks: 583
|
already released.
#closerequest
|
|
|
01/25/2013, 20:28
|
#11
|
elite*gold: 0
Join Date: Jul 2009
Posts: 154
Received Thanks: 161
|
i updated tutorial
|
|
|
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.  ))
|
|
|
01/26/2013, 17:22
|
#13
|
elite*gold: 0
Join Date: Oct 2012
Posts: 114
Received Thanks: 72
|
Quote:
Originally Posted by lucy08
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 '-'
|
|
|
01/29/2013, 10:19
|
#14
|
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
|
|
|
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!
|
|
|
 |
|
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.
|
|