ekoo 8 Posted November 6, 2014 Share Posted November 6, 2014 hi developers i have two questions about pythonfirst 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 Share on other sites More sharing options...
Rumor 2607 Posted November 6, 2014 Share Posted November 6, 2014 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) 1 Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted November 6, 2014 Premium Share Posted November 6, 2014 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. Link to comment Share on other sites More sharing options...
Rumor 2607 Posted November 6, 2014 Share Posted November 6, 2014 import player? Link to comment Share on other sites More sharing options...
ekoo 8 Posted November 8, 2014 Author Share Posted November 8, 2014 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 Share on other sites More sharing options...
Management Karbust 4884 Posted November 9, 2014 Management Share Posted November 9, 2014 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... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now