|
You last visited: Today at 21:57
Advertisement
[Python-Release]All Pm log
Discussion on [Python-Release]All Pm log within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
04/20/2012, 22:45
|
#1
|
elite*gold: 0
Join Date: Feb 2012
Posts: 31
Received Thanks: 46
|
[Python-Release]All Pm log
This is a very simple thing, maybe to be used in combination with another.I want them in a folder called "log" are written all pm that i receive.
That said, it acts in a simple, well follow the steps:
1) Create a folder "log" in the directory of the client.
2) Search: 3)Replace this :
Code:
def OnRecvWhisper(self, mode, name, line):
if mode == chat.WHISPER_TYPE_GM:
self.interface.RegisterGameMasterName(name)
chat.AppendWhisper(mode, name, line)
self.interface.RecvWhisper(name)
with my script :
Code:
def OnRecvWhisper(self, mode, name, line):
if mode == chat.WHISPER_TYPE_GM:
self.interface.RegisterGameMasterName(name)
chat.AppendWhisper(mode, name, line)
self.interface.RecvWhisper(name)
exsta=open("log/"+name+".txt","a")
exsta.write(line+"\n")
exsta.close()
RESULT:
In your folder you have all of the txt file with the names of all the pg that they send you pm, and within each txt logs of conversations.
Sorry for my bad english
|
|
|
04/20/2012, 22:51
|
#2
|
elite*gold: 2
Join Date: Mar 2009
Posts: 1,427
Received Thanks: 584
|
haha nice work
|
|
|
04/20/2012, 22:53
|
#3
|
elite*gold: 20
Join Date: Jun 2011
Posts: 2,901
Received Thanks: 3,341
|
Quote:
def OnRecvWhisper(self, mode, name, line):
if mode == chat.WHISPER_TYPE_GM:
self.interface.RegisterGameMasterName(name)
chat.AppendWhisper(mode, name, line)
self.interface.RecvWhisper(name)
exsta=open("log/"+name+".txt","a")
exsta.write(line+"\n")
exsta.close()
|
i would use this code:
Code:
def OnRecvWhisper(self, mode, name, line):
import os
try:
os.chdir(os.getcwd() + "/log")
except:
os.mkdir(os.getcwd() + "/log")
if mode == chat.WHISPER_TYPE_GM:
self.interface.RegisterGameMasterName(name)
chat.AppendWhisper(mode, name, line)
self.interface.RecvWhisper(name)
exsta=open("log/"+name+".txt","a")
exsta.write(line+"\n")
exsta.close()
then folder is created automatically on each players pc :P
but nice idea
|
|
|
04/20/2012, 23:21
|
#4
|
elite*gold: 0
Join Date: Sep 2009
Posts: 1,034
Received Thanks: 1,167
|
Hmmm. You are Exsta out of the Inf. Forum?
Because you said your script.....
Bad ENGLISH, i still know it!
|
|
|
04/21/2012, 17:32
|
#5
|
elite*gold: 0
Join Date: Feb 2012
Posts: 31
Received Thanks: 46
|
Yes why?
|
|
|
04/23/2012, 22:18
|
#6
|
elite*gold: 87
Join Date: Mar 2012
Posts: 1,545
Received Thanks: 600
|
Thanks for the Release
|
|
|
04/23/2012, 22:34
|
#7
|
elite*gold: 1
Join Date: Aug 2008
Posts: 7,744
Received Thanks: 3,605
|
#closed
|
|
|
 |
Similar Threads
|
[Python-Modul]EXP-Donator (kompatibel mit Python Loader)
11/23/2013 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 27 Replies
Moin,
da man mich danach gefragt hat und ich sowieso mal ein Beispiel für die Benutzung meines Python Loaders veröffentlichen wollte, habe ich die Gelegenheit genutzt und euch eben einen EXP-Spendebot geschrieben.
Man kann ihn einfach mit dem oben verlinkten Python Module Loader laden und ihn mit F5 aktivieren/deaktivieren.
Sobald ihr mehr als 99 Erfahrungspunkte habt (man kann nur in 100er Schritten spenden), werden alle Erfahrungspunkte an eure Gilde gespendet.
Wer Lust hat und...
|
[Python Release]Bonusswitcher v1.1
02/09/2013 - Metin2 PServer Guides & Strategies - 303 Replies
Habe neulich etwas recht altes wieder auf meinem Rechner bei Aufräumarbeiten gefunden, meinen alten Switchbot v1.1.
Da ich inzwischen meine Version 2.0 habe und somit die alte überhaupt nicht mehr brauchen kann und von meinem Rechner löschen werde nach dem Release, stelle ich ihn nun public(unter anderem dank dem positiven Einfluss xCPx's Abganges =) ).
Das Script war noch eines meiner ersten Scripts überhaupt, welches nicht nur Modifizierungen von Orginal Scripts waren.
Hab gerade eben...
|
[RELEASE]Addition in Python
04/01/2012 - Metin2 PServer Guides & Strategies - 19 Replies
Am 1. April wollte ich auch mal kuhl sein und hab mir gedacht ich release hier mal ne kuhle Addition xD
(Idee des Freds hier basiert auf dem hier:
http://www.elitepvpers.com/forum/quotes/1798403-x cpx-prohacker.html#post15957212)
Sind btw globale funcs, d.h. ihr könnt wenn ihr die Datei importet direkt callen ;)
Script:
import math
NumberList =
|
[Python Release]Bonusswitcher v1.1<---- LOL?
01/28/2012 - Metin2 Private Server - 4 Replies
Hey... ich kapiere das nicht...
Wen ich das Downloade sind da 2 Ordner root und uiscript
was muss ich dan machen? LoL spiele auf Pandora2...
|
[Release]Python Vack[BMR]
05/19/2008 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 151 Replies
Done
|
All times are GMT +1. The time now is 22:00.
|
|