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:
2. Under that, add this code:
3. Open locale_game.txt and add this:
To restrict Trade, do this:
1. Open game.py and find this code:
2. Under that, add this code:
3. Open locale_game.txt and add this:
have fun, lucy08 :D
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):
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
Code:
DROP_ITEM_FAILURE_GM GM can't drop items on the ground.
1. Open game.py and find this code:
Code:
def __PutItem(self, attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, dstChrID):
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
Code:
SEND_ITEM_FAILURE_GM GM can't send items.
have fun, lucy08 :D