Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

Two questions about Python


ekoo

Question

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

5 answers to this question

Recommended Posts

  • 0

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
  • 0
  • 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
  • 0

 

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
  • 0
  • Premium

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...

QJ0orbR.png

Metin2 Icon Database

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 0

      Visual Studio 2010 Ultimate

    2. 1

      Reduce server memory usage

    3. 31

      Metin2 Project - How to create à Metin2 private server on virtual machine

    4. 1

      Use BeltInventory slots without Belt

    5. 47

      Paid service - Vegas Projects

    6. 44

      Changelogs

    7. 79

      3D Shop - Mark Service

  • Recently Browsing

    • No registered users viewing this page.

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.