Jump to content

Recommended Posts

hi developers
i have two questions about python
first one : Can I replace chat text to picture ?
like replace s1 in chat text to smile like this ( :))
secondly: Can I post player level next to his name in whisper ?
i believe all of this is possible, but idk if is it need python only or c++ too ?

peace

Link to comment
https://metin2.dev/topic/3714-two-questions-about-python/
Share on other sites

Regarding the player level in pm.. I'm not sure if this works in the latest files but before you did it this way:

 

Find this in uiwhisper.py:

net.SendWhisperPacket(self.targetName, text)

Replace it with this:

net.SendWhisperPacket(self.targetName, "(Lv. " + str(player.GetStatus(player.LEVEL) )+ "):" + text)
  • Love 1
Link to comment
https://metin2.dev/topic/3714-two-questions-about-python/#findComment-24152
Share on other sites

  • Premium

 

Regarding the player level in pm.. I'm not sure if this works in the latest files but before you did it this way:

 

Find this in uiwhisper.py:

net.SendWhisperPacket(self.targetName, text)

Replace it with this:

net.SendWhisperPacket(self.targetName, "(Lv. " + str(player.GetStatus(player.LEVEL) )+ "):" + text)

 

Don't forget the import. ^^

 

I will do a tutorial. :D

Link to comment
https://metin2.dev/topic/3714-two-questions-about-python/#findComment-24165
Share on other sites

 

Regarding the player level in pm.. I'm not sure if this works in the latest files but before you did it this way:

 

Find this in uiwhisper.py:

net.SendWhisperPacket(self.targetName, text)

Replace it with this:

net.SendWhisperPacket(self.targetName, "(Lv. " + str(player.GetStatus(player.LEVEL) )+ "):" + text)

 

it works perfectly

thank you

what about first question

do you have any idea ?

 

Link to comment
https://metin2.dev/topic/3714-two-questions-about-python/#findComment-24295
Share on other sites

  • Management

Maybe in uichat if tou can, do this:

If detect some characters this show a picture, and you put the directory to the picture

I don't now if this is possible, and I don't now much about python to do something like this

I hope I can help you...

raw

raw

Link to comment
https://metin2.dev/topic/3714-two-questions-about-python/#findComment-24351
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.