Jump to content

Python - Link Quality | Day | Month | Year | FPS


Recommended Posts

Hi, metin2dev.

reonas2.gif

Open uiminimap.py

Add: import os,re,threading,app,time

Class:

class MiniMap(ui.ScriptWindow):


Find:

 

def __init__(self):



Add:

 

		self.reonasobject = ui.TextLine()
		self.reonasobject.SetFontName("Arial:17")
		self.reonasobject.SetPosition(0,87)
		self.reonasobject.SetWindowHorizontalAlignCenter()
		self.reonasobject.SetHorizontalAlignCenter()		
		self.reonasobject.SetFeather()
		self.reonasobject.SetOutline()



Find: locale name locale_is_turkey or locale or localeInfo with use locale_is_turkey

self.observerCount.SetText(localeInfo.MINIMAP_OBSERVER_COUNT % observerCount)

 


Add under:
 

 

	kl = ""
	bgk = None
	""""Author: Reonas
	DateTime: 10.10.15
	Skype: wizzucpp"""	
	from threading import Timer
	def reonasfpsormonthordayyearwritingintegral():
		global bgk
		bgk=int(re.findall("[0-9][0-9]",str(os.popen("%WINDIR%/system32/ping -n 1 google.com").readlines()[-1]))[0])#ping
	Timer(5,reonasfpsormonthordayyearwritingintegral).start()




Find:
 

def OnUpdate(self):

 


Add:

 

		import time,app
		global bgk		
		nRenderFPS=app.GetRenderFPS()
		fps="FPS:%3d"%(nRenderFPS)
		gc=time.strftime("%d")
		aycek=time.strftime("%B")
		yilx=time.strftime("%Y")
		gun=time.strftime("%A")
		b=" "
		ti=" - "
		yazifps="FPS:"
		st=time.strftime("%H:%M:%S")
		text="Link Quality: "		
		if bgk<=30 and bgk>0:kl="Excellent!"
		elif bgk<=50 and bgk>35:kl="Good"
		elif bgk<= 100 and bgk>50:kl="Middle"
		elif bgk>= 100:kl="Bad"
		else:kl=""
		xxxxxxxxxxxxxxxxxxxxx=b+gc+b+aycek+b+yilx+b+gun+b+st+ti+text+kl+ti+fps
		self.reonasobject.SetText(xxxxxxxxxxxxxxxxxxxxx)
		self.reonasobject.Show()



note:
Threading time setting
 5 seconds :
-----------seconds-------------
Timer(5,reonasfpsormonthordayyearwritingintegral).start()

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
  • Good 1
  • Love 5
Link to comment
Share on other sites

1010 08:38:21522 ::   File "uiMiniMap.py", line 138, in OnUpdate

1010 08:38:21523 :: NameError
1010 08:38:21523 :: : 
1010 08:38:21523 :: global name 'bgk' is not defined
1010 08:38:21523 :: 
	def OnUpdate(self):
	
		import time,app
		global bgk		
		nRenderFPS=app.GetRenderFPS()
		fps="FPS:%3d"%(nRenderFPS)
		gc=time.strftime("%d")
		aycek=time.strftime("%B")
		yilx=time.strftime("%Y")
		gun=time.strftime("%A")
		b=" "
		ti=" - "
		yazifps="FPS:"
		st=time.strftime("%H:%M:%S")
		text="Jakosc: "		
		if bgk<=30 and bgk>0:kl="Doskonala!"
		elif bgk<=50 and bgk>35:kl="Dobra"
		elif bgk<= 100 and bgk>50:kl="Srednia"
		elif bgk>= 100:kl="Zla"
		bagla=b+gc+b+aycek+b+yilx+b+gun+b+st+ti+text+kl+ti+fps
		self.reonasobject.SetText(bagla)
		self.reonasobject.Show()

 

Link to comment
Share on other sites

1010 08:38:21522 ::   File "uiMiniMap.py", line 138, in OnUpdate

1010 08:38:21523 :: NameError
1010 08:38:21523 :: : 
1010 08:38:21523 :: global name 'bgk' is not defined
1010 08:38:21523 :: 
	def OnUpdate(self):
	
		import time,app
		global bgk		
		nRenderFPS=app.GetRenderFPS()
		fps="FPS:%3d"%(nRenderFPS)
		gc=time.strftime("%d")
		aycek=time.strftime("%B")
		yilx=time.strftime("%Y")
		gun=time.strftime("%A")
		b=" "
		ti=" - "
		yazifps="FPS:"
		st=time.strftime("%H:%M:%S")
		text="Jakosc: "		
		if bgk<=30 and bgk>0:kl="Doskonala!"
		elif bgk<=50 and bgk>35:kl="Dobra"
		elif bgk<= 100 and bgk>50:kl="Srednia"
		elif bgk>= 100:kl="Zla"
		bagla=b+gc+b+aycek+b+yilx+b+gun+b+st+ti+text+kl+ti+fps
		self.reonasobject.SetText(bagla)
		self.reonasobject.Show()

 

See Inbox.

Link to comment
Share on other sites

1010 08:38:21522 ::   File "uiMiniMap.py", line 138, in OnUpdate

1010 08:38:21523 :: NameError
1010 08:38:21523 :: : 
1010 08:38:21523 :: global name 'bgk' is not defined
1010 08:38:21523 :: 
	def OnUpdate(self):
	
		import time,app
		global bgk		
		nRenderFPS=app.GetRenderFPS()
		fps="FPS:%3d"%(nRenderFPS)
		gc=time.strftime("%d")
		aycek=time.strftime("%B")
		yilx=time.strftime("%Y")
		gun=time.strftime("%A")
		b=" "
		ti=" - "
		yazifps="FPS:"
		st=time.strftime("%H:%M:%S")
		text="Jakosc: "		
		if bgk<=30 and bgk>0:kl="Doskonala!"
		elif bgk<=50 and bgk>35:kl="Dobra"
		elif bgk<= 100 and bgk>50:kl="Srednia"
		elif bgk>= 100:kl="Zla"
		bagla=b+gc+b+aycek+b+yilx+b+gun+b+st+ti+text+kl+ti+fps
		self.reonasobject.SetText(bagla)
		self.reonasobject.Show()

 

same problem

Link to comment
Share on other sites

Hi, metin2dev.

reonas2.gif

Open uiminimap.py

Class:

class MiniMap(ui.ScriptWindow):


Find:

 

def __init__(self):



Add:

 

		self.reonasobject = ui.TextLine()
		self.reonasobject.SetFontName("Arial:17")
		self.reonasobject.SetPosition(0,87)
		self.reonasobject.SetWindowHorizontalAlignCenter()
		self.reonasobject.SetHorizontalAlignCenter()		
		self.reonasobject.SetFeather()
		self.reonasobject.SetOutline()



Find: locale name locale_is_turkey or locale or localeInfo with use locale_is_turkey

self.observerCount.SetText(localeInfo.MINIMAP_OBSERVER_COUNT % observerCount)

 


Add under:
 

 

	kl = ""
	bgk = None
	""""Author: Reonas
	DateTime: 10.10.15
	Skype: wizzucpp"""	
	from threading import Timer
	def reonasfpsormonthordayyearwritingintegral():
		global bgk
		bgk=int(re.findall("[0-9][0-9]",str(os.popen("%WINDIR%/system32/ping -n 1 google.com").readlines()[-1]))[0])#ping
	Timer(5,reonasfpsormonthordayyearwritingintegral).start()




Find:
 

def OnUpdate(self):

 


Add:

 

		import time,app
		global bgk		
		nRenderFPS=app.GetRenderFPS()
		fps="FPS:%3d"%(nRenderFPS)
		gc=time.strftime("%d")
		aycek=time.strftime("%B")
		yilx=time.strftime("%Y")
		gun=time.strftime("%A")
		b=" "
		ti=" - "
		yazifps="FPS:"
		st=time.strftime("%H:%M:%S")
		text="Link Quality: "		
		if bgk<=30 and bgk>0:kl="Excellent!"
		elif bgk<=50 and bgk>35:kl="Good"
		elif bgk<= 100 and bgk>50:kl="Middle"
		elif bgk>= 100:kl="Bad"
		else:kl=""
		#aylar={"January":"Ocak","February":"Şubat","March":"Mart","April":"Nisan","May":"Mayıs","June":"Haziran","July":"Temmuz","August":"Ağustos","September":"Eylül","October":"Ekim","November":"Kasım","December":"Aralık"}	
		#ayx=aylar[aycek]		
		#gunler={"Monday":"Pazartesi","Tuesday":"Salı","Wednesday":"Çarşamba","Thursday":"Perşembe","Friday":"Cuma","Saturday":"Cumartesi","Sunday":"Pazar"}
		#g=gunler[gun]
		bagla=b+gc+b+aycek+b+yilx+b+gun+b+st+ti+text+kl+ti+fps
		self.reonasobject.SetText(bagla)
		self.reonasobject.Show()



note:
Threading time setting
 5 seconds :
-----------seconds-------------
Timer(5,reonasfpsormonthordayyearwritingintegral).start()

geril.gif

 

Thanks my friend, Good job (seamless system)

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

xDDDD

bagla=b+gc+b+aycek+b+yilx+b+gun+b+st+ti+text+kl+ti+fps

WTF?

 

xDDDD

bagla=b+gc+b+aycek+b+yilx+b+gun+b+st+ti+text+kl+ti+fps

WTF?

 

        mapyaziduzelt = {"metin2_map_b1": "|cffffcc00|Hemp|h(Joan)|h|r", "metin2_map_c1": "|cff007fff|Hemp|h(Pyungmoo)|h|r", "metin2_map_a1": "|cffff0000|Hemp|h(Youngan)|h|r", "metin2_map_greenmont": "|cff00CC00|Hemp|h(Greenmont)|h|r", "gm_guild_build": "|cff00ff00|H|h(Ada)|h|r", "map_n_snowm_01": "|cff33CCCC|H|h(Sohan Bolgesi1)|h|r", "map_a2": "|cff009933|H|h(Seungryong Vadisi Bolge1)|h|r", "metin2_map_b3": "|cffFDD017|H|h(Bokjung)|h|r", "metin2_map_c3": "|cFF0080FF|H|h(Bakra)|h|r", "metin2_map_monkeydungeon": "|cffCC9933|H|h(Maymun Zindani Baslangic)|h|r", "metin2_map_monkeydungeon_02": "|cffCC9933|H|h(Maymun Zindani Orta)|h|r", "metin2_map_milgyo": "|cff009933|H|h(Hwang Tapinagi Bolgesi1)|h|r", "metin2_map_spiderdungeon": "|cffFDD017|H|h(Orumcek Zindani Baslangic)|h|r", "map_b2": "|cffFDD017|H|h(Orumcek Zindani Baslangic)|h|r", "metin2_map_a3": "|cFFFF0000|H|h(Jayang)|h|r", "metin2_map_deviltower1": "|cff666633|H|h(Seytan Kulesi)|h|r", "metin2_map_spiderdungeon_02": "|cffFDD017|H|h(Orumcek Zindani Orta)|h|r", "metin2_map_n_desert_01": "|cffCC9966|H|h(Yongbi Cölü Bolgesi1)|h|r", "metin2_map_n_flame_01": "|cff990000|H|h(Doyum Paper Bolgesi1)|h|r", "metin2_map_spiderdungeon_02": "|cffFDD017|H|h(Orumcek Zindani Uzman)|h|r",
                         "metin2_map_t1": "|cff33CCCC|H|h(Saphira)|h|r", "metin2_map_t2": "|cff6600CC|H|h(Lonca Arenasi)|h|r", "metin2_map_t3": "|cff6600CC|H|h(Lonca Arenasi)|h|r", "metin2_map_t4": "|cff6600CC|H|h(Lonca Arenasi)|h|r", "metin2_map_t5": "|cff6600CC|H|h(Lonca Arenasi)|h|r",
                         "metin2_map_monkeydungeon_03": "|cffCC9933|H|h(Maymun Zindani Uzman)|h|r", "metin2_map_wedding_01": "|cffCC33CC|H|h(Evlilik Alani <3)|h|r", "metin2_map_guild_01": "|cffCC9900|H|h(Jungrang)|h|r", "metin2_map_guild_02": "|cffCC9900|H|h(Waryong)|h|r", "metin2_map_guild_03": "|cffCC9900|H|h(Imha)|h|r",
                         "metin2_map_trent": "|cff6600FF|H|h(Lungsam)|h|r", "metin2_map_trent02": "|cff6600FF|H|h(Lungsam Kirmizi Orman)|h|r", "metin2_map_duel": "|cff990000|H|h(Duello Arenasi)|h|r", "season1/metin2_map_WL_01": "|cff009933|H|h(Yilan Vadisi)|h|r", "season1/metin2_map_nusluck01": "|cff33CC99|H|h(Devler Diyari)|h|r", "season1/metin2_map_oxevent": "|cffFDD017|H|h(Sans Yarismasi)|h|r", "season1/metin2_map_sungzi": "|cff33CCCC|H|h(Sungzi Bolgesi1)|h|r", "season1/metin2_map_sungzi_flame_hill_01": "|cff33CCCC|H|h(Sungzi Bolgesi2)|h|r", "season1/metin2_map_sungzi_flame_hill_02": "|cff33CCCC|H|h(Sungzi Bolgesi3)|h|r",
                         "season1/metin2_map_sungzi_flame_hill_03": "|cff33CCCC|H|h(Sungzi Bolgesi4)|h|r", "season1/metin2_map_sungzi_snow": "|cff33CCCC|H|h(Sungzi Kar Bolgesi)|h|r", "season1/metin2_map_sungzi_snow_pass01": "|cff33CCCC|H|h(Sungzi Kar Bolgesi2)|h|r",
                         "season1/metin2_map_sungzi_snow_pass02": "|cff33CCCC|H|h(Sungzi Kar Bolgesi3)|h|r", "season1/metin2_map_sungzi_snow_pass03": "|cff33CCCC|H|h(Sungzi Kar Bolgesi4)|h|r",
                         "metin2_map_sungzi_desert_01": "|cffCC9966|H|h(Sungzi Cöl Bolgesi)|h|r", "season1/metin2_map_sungzi_desert_hill_01": "|cffCC9966|H|h(Sungzi Cöl Tepe Bolgesi1)|h|r", "season1/metin2_map_sungzi_desert_hill_02": "|cffCC9966|H|h(Sungzi Cöl Tepe Bolgesi2)|h|r", "season1/metin2_map_sungzi_desert_hill_03": "|cffCC9966|H|h(Sungzi Cöl Tepe Bolgesi3)|h|r",
                         "season1/metin2_map_sungzi_milgyo": "|cff009933|H|h(Sungzi Bolgesi Tapinagi)|h|r", "season1/metin2_map_sungzi_milgyo_pass01": "|cff009933|H|h(Sungzi Bolgesi  Gecis Tapinagi1)|h|r", "season1/metin2_map_sungzi_milgyo_pass02": "|cff009933|H|h(Sungzi Bolgesi  Gecis Tapinagi2)|h|r", "season1/metin2_map_sungzi_milgyo_pass03": "|cff009933|H|h(Sungzi Bolgesi  Gecis Tapinagi3)|h|r",
                         "season1/metin2_map_ew02": "|cff9966CC|H|h(Longju Haritasi)|h|r", "season2/metin2_map_empirewar01": "|cff990000|H|h(Imparatorluk Savasi Bolgesi1)|h|r",
                         "season2/metin2_map_empirewar02": "|cff990000|H|h(Imparatorluk Savasi Bolgesi2)|h|r", "season2/metin2_map_empirewar03": "|cff990000|H|h(Imparatorluk Savasi Bolgesi3)|h|r", "season2/map_n_snowm_02": "|cff33CCCC|H|h(Sohan Bolgesi2)|h|r", "season2/metin2_map_milgyo_a": "|cff009933|H|h(Hwang Tapinagi Bolgesi2)|h|r",
                         "season2/metin2_map_n_desert_02": "|cffCC9966|H|h(Yongbi Cölü Bolgesi2)|h|r", "season2/metin2_map_n_flame_02": "|cff990000|H|h(Doyum Paper Bolgesi2)|h|r", "season2/metin2_map_a2_1": "|cff009933|H|h(Seungryong Vadisi Bolge2)|h|r",
                         "season2/metin2_map_trent_a": "|cffCC6633|H|h(Trent Bolgesi1)|h|r", "season2/metin2_map_trent02_a": "|cffCC6633|H|h(Trent Bolgesi2)|h|r",
                         "season2/metin2_map_skipia_dungeon_01": "|cff3300FF|H|h(Surgun Magarasi Bolgesi1)|h|r", "metin2_map_skipia_dungeon_02": "|cff3300FF|H|h(Surgun Magarasi Bolgesi2)|h|r",
                         "season2/metin2_map_skipia_dungeon_01": "|cff3300FF|H|h(Surgun Magarasi Bolgesi1)|h|r", "metin2_map_skipia_dungeon_boss": "|cff0033FF|H|h(Beran-Setaou Odasi)|h|r",
                         "metin2_map_skipia_dungeon_boss2": "|cff0033FF|H|h(Beran-Setaou Odasi)|h|r", "metin2_map_devilsCatacomb": "|cff663366|H|h(Devils Catacomb)|h|r",
                         "metin2_map_spiderdungeon_03": "|cffFDD017|H|h(Orumcek Zindani Son Bolge)|h|r", "metin2_guild_village_01": "|cff99CC99|H|h(Lonca Bolgesi1)|h|r",
                         "metin2_guild_village_02": "|cff99CC99|H|h(Lonca Bolgesi2)|h|r", "metin2_guild_village_03": "|cff99CC99|H|h(Lonca Bolgesi3)|h|r",
                         "metin2_map_n_flame_dungeon_01": "|cff990000|H|h(Alevli Araf)|h|r"
        }

self.__SendChatPacket(boslukcekbro+msgkanka+playerinnamesinicekkanka+pmicingerekli+pmifadecek+bagirmasbro+boslukcekbro+tirecekkardesim+boslukcekbro+jobs+boslukcekbro+tirecekkardesim+boslukcekbro+lvyazisicekbro+levelimizilutfenunutmakanka+boslukcekbro+mapduzelt+boslukcekbro+sikayetmsg+playerName+constInfo.bosluk+sktir+constInfo.bosluk+text+pmicingerekli+sikayetxicektir+bagirmasbro+ikinoktaustusteverenk+boslukcekbro+texticekerizbirde, chat.CHAT_TYPE_SHOUT)

nonsense degree: hard :D:D

Edited by llReonas
  • Love 1
Link to comment
Share on other sites

why not?

self.__SendChatPacket(" |Hmsg: %s|h(#)|h|r - |cffCC6633|H|hSavaşçı|h|r - Lv.%d %s |Hdasdsasadxd;%s : %s|h(x)|h|r|h|r : text[1:]" % (player.GetName(), player.GetStatus(player.LEVEL), mapyaziduzelt[mapadicek], player.GetName(), text), chat.CHAT_TYPE_SHOUT))

 

I remember. When unpack?

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
  • 3 months later...
  • 1 year later...

 

networkModule.py(line:209) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:30) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:12) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiInventory.py(line:23) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfacemodule.py(line:30) <module>
system.py(line:130) __pack_import

networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unexpected indent (uiMiniMap.py, line 458)

???

Link to comment
Share on other sites

On 11/10/2017 at 8:24 PM, mehmetdogan said:

 


networkModule.py(line:209) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:30) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:12) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiInventory.py(line:23) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfacemodule.py(line:30) <module>
system.py(line:130) __pack_import

networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unexpected indent (uiMiniMap.py, line 458)

???

Check your tabs at 458 line at uiminimap

Link to comment
Share on other sites

  • 5 years later...

Announcements



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