Jump to content

Recommended Posts

M2 Download Center

This is the hidden content, please
( Internal )

Someone asked me for cache chat messages. Here is the release

 

 constInfo.py

Add:

lastSentenceStack = []
lastSentencePos = 0

 

game.py

In def Open(self): add:

		if len(constInfo.lastSentenceStack) > 0:
			constInfo.lastSentencePos = 0

 

uiChat.py

remove:

		self.lastSentenceStack = []
		self.lastSentencePos = 0

 

All:

self.lastSentenceStack

Replace with:

constInfo.lastSentenceStack

 

All:

self.lastSentencePos

Replace with:

constInfo.lastSentencePos

 

That's all, enjoy ;)

  • Metin2 Dev 23
  • Eyes 1
  • Good 9
  • Love 29
Link to comment
https://metin2.dev/topic/23610-cache-chat-messages/
Share on other sites

  • 2 weeks later...

Why you reset the position in stack to 0 on game.py ?

This will reset the chat message to 32 messages back (if the stack is full, first message you typed anyway) and a user actualy need his last message, not 32 messages ago message.

Edited by Johnny69
  • Love 1
Link to comment
https://metin2.dev/topic/23610-cache-chat-messages/#findComment-127739
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.