Verdiğim linklerden
işaretli olan butona tıklayarak kodları indirin kopyalayın hata alma oranınız azalacaktır.(her kodun ayrı linki var)
28.02.2015 01:09 Güncelleme > Pm atmama, gui göstermeme sorunu giderildi.Root game.py aratılır;
Kod:
from _weakref import proxy
Kod:
##Oyuna girdi## #bildirimler = 0 kisi = "" oyunagirdi = 0 oyunagirdibeklemesuresi = 2 oyunagirdiglobaltimesuresi = app.GetTime() - 2 ##Oyuna girdi##
Kod:
def Open(self):
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Kod:
##Oyuna girdi## self.interface.ToggleMessenger() self.interface.ToggleMessenger() self.GirdiButton = ui.Button() self.GirdiButton.SetParent(self) self.GirdiButton.SetUpVisual("onlineboard.tga") self.GirdiButton.SetOverVisual("onlineboard.tga") self.GirdiButton.SetDownVisual("onlineboard.tga") self.GirdiButton.SetPosition(wndMgr.GetScreenWidth() - 150 - 100 + 30, wndMgr.GetScreenHeight() - 100 - 100 + 85 - 30 - 5) self.TextLines = ui.TextLine() self.TextLines.SetParent(self.GirdiButton) self.TextLines.SetPosition(40,17) self.TextLines.SetText("@Vectors") self.TextLines.Show() self.GirdiKapat = ui.Button() self.GirdiKapat.SetParent(self.GirdiButton) self.GirdiKapat.SetUpVisual("d:/ymir work/ui/public/close_button_01.sub") self.GirdiKapat.SetOverVisual("d:/ymir work/ui/public/close_button_02.sub") self.GirdiKapat.SetDownVisual("d:/ymir work/ui/public/close_button_03.sub") self.GirdiKapat.SetPosition(185-9-5-2,1+4) self.GirdiKapat.SetEvent(self.LanKapat) ##Oyuna girdi##
Kod:
def OnRecvWhisper(self, mode, name, line):
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Kod:
def OnRecvWhisper(self, mode, name, line): ##Oyuna girdi## global kisi global oyunagirdi if line.find('oyunagirdi||') != -1: if constInfo.bildirimler == 0: oyunagirdi = 1 self.GirdiButton.Show() kisi = name self.TextLines.Show() self.GirdiKapat.Show() self.TextLines.SetText(name + " oyuna girdi.") self.Bekle = app.GetTime() else: pass return else: pass ##Oyuna girdi## if mode == chat.WHISPER_TYPE_GM: self.interface.RegisterGameMasterName(name) chat.AppendWhisper(mode, name, line) self.interface.RecvWhisper(name) def LanKapat(self): global kisi global oyunagirdi if kisi == "": pass else: self.GirdiButton.Hide() oyunagirdi = 0 def GirdiKapat(self): self.GirdiButton.Hide() ##Oyuna girdi##
Kod:
def OnUpdate(self):
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Kod:
##Oyuna girdi## global oyunagirdibeklemesuresi global oyunagirdiglobaltimesuresi global oyunagirdi if oyunagirdi == 1: if app.GetTime() < self.Bekle + 4: pass else: self.GirdiButton.Hide() oyunagirdi = 0 else: pass ##Oyuna girdi##
Kod:
def OnLogin(self, groupIndex, key, name=None):
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Kod:
def OnLogin(self, groupIndex, key, name=None): if not name: name = key group = self.groupList[groupIndex] member = self.__AddList(groupIndex, key, name) member.SetName(name) member.Online() self.OnRefreshList() import constInfo import net if constInfo.bildirimler == 0: if not name in constInfo.aciklar: constInfo.aciklar.append(name) net.SendWhisperPacket(name, "oyunagirdi||") else: pass
Kod:
aciklar = [*] bildirimler = 0 yolla = 0
Güncelleme > Oyun Seçenekleri Menüsü
...
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Bu resmi
Kod:
onlineboard.tga
178.20.225....
xx Arkadaşınız Oyuna Girdi (Gui-Time Eklentisi) / Riot2
Metin2 özel sunucularında oyuncuların birbirleriyle olan etkileşimini artırmak, aynı zamanda oyun içi deneyimi daha keyifli ve dinamik hale getirmek için birçok geliştirici, kullanıcı arayüzüne özel eklentiler eklemeyi tercih eder. Bu eklentilerden biri olan xx Arkadaşınız Oyuna Girdi (Gui-Time Eklentisi) / Riot2, oyuncuların arkadaşlarının oyun içine giriş yaptığında onları bilgilendiren ve oyun içi zamanı gösteren etkileyici bir özelliktir. Bu yazıda, bu modülün ne olduğunu, nasıl çalıştığını ve Metin2 özel sunucularında nasıl entegre edileceğini detaylıca ele alacağız.
Gui-Time ve Arkadaş Bildirimi Nedir?
Gui-Time, genellikle Metin2 özel sunucularında kullanılan bir Python GUI (Py Root) tabanlı sistemdir. Oyun başlatıldığında sağ alt köşede ya da kullanıcıya özel konumlandırılmış bir panelde hem mevcut saat hem de oyunda geçen süreyi gösterir. Aynı zamanda, oyuncu listesindeki bir arkadaşınız oyun girdiğinde bunu anlık olarak bildirim şeklinde gösteren bir yapıya sahiptir. Bu sayede, arkadaşınızın online olduğunu fark edip hemen sohbete katılabiliyor veya birlikte maceralara çıkabiliyorsunuz.
Neden Kullanılmalı?
Özel sunucularda rekabetçi ortamlar, PvP sistemleri ve guild savaşları gibi unsurlar oyunun çekiciliğini artırır. Ancak oyuncuların birbirleriyle olan bağlantısı da oldukça önemlidir. Gui-Time eklentisi, sadece zaman gösterimi açısından değil, arkadaş bildirimi özelliğiyle de sunucuda kalıcı bir topluluk hissi yaratır. Özellikle aktif olmayan oyuncularla tekrar bağlantı kurmak isteyen oyuncular için bu eklenti büyük kolaylık sağlar.
Kurulum ve Entegrasyon
Bu eklentinin doğru çalışması için bazı dosyaların düzenlenmesi gerekir. Genellikle root, locale, uiscript, game, client_src gibi klasörlerde değişiklik yapılması gerekir. Gui-Time, Python GUI (PyUI) ile entegre çalıştığı için Py Root dosyalarında uyumlu bir yapıya sahip olması gerekir. Ayrıca, sunucu tarafında bir olay tetiklendiğinde bu bildirimi gerçekleştirecek olan sistem de auth veya game sunucusuna entegre edilmelidir.
Faydaları[/BR][/BR]- Arkadaşların oyuna giriş yaptığında anında bildirim
- Oyun içi saat takibi
- Kullanıcı dostu arayüz tasarımı
- Kolay entegrasyon süreci
- Sunucu sadakatini artırma potansiyeli
Metin2lobby.com ile İlişki[/BR][/BR]Metin2lobby.com, Metin2 özel sunucu geliştirme konusunda kapsamlı kaynaklar, C++ sistemler, Python GUI örnekleri, Py Root modülleri ve paket sistemleri sunmaktadır. Bu tür eklentilerin geliştirilmesi ve entegrasyonu için ideal bir platformdur. Gui-Time eklentisi gibi modüller, sitemizdeki kaynaklar yardımıyla kolayca geliştirilebilir ve test edilebilir.
Sonuç
Gui-Time ve arkadaş bildirimi eklentisi, Metin2 özel sunucularında kullanıcı deneyimini ciddi anlamda artıran küçük ama etkili sistemlerden biridir. Geliştiriciler için basit, oyuncular için ise keyifli bir eklentidir. Metin2lobby.com üzerinden erişebileceğiniz kaynaklar sayesinde bu tür modüllerin kurulumu ve özelleştirilmesi oldukça kolay hale gelmektedir.
xx Friend Joined Game (Gui-Time Add-on) / Riot2
In order to enhance player interactions and make the gaming experience more enjoyable and dynamic, many developers in Metin2 private servers prefer to add custom extensions to the user interface. One such extension, xx Friend Joined Game (Gui-Time Add-on) / Riot2, notifies players when their friends enter the game and displays the in-game time. In this article, we will examine what this module is, how it works, and how to integrate it into Metin2 private servers in detail.
What is Gui-Time and Friend Notification?
Gui-Time is a Python GUI (Py Root)-based system commonly used in Metin2 private servers. When the game starts, it displays both the current time and the elapsed in-game time in a panel located in the bottom-right corner or at a custom location within the game window. Additionally, it shows a real-time notification whenever a friend from your friend list joins the game. This way, you can immediately notice when your friend is online and join them in chat or adventures together.
Why Should You Use It?
Competitive environments, PvP systems, and guild wars enhance the appeal of private servers. However, the connection between players is also very important. The Gui-Time add-on not only provides in-game time tracking but also creates a sense of community by notifying players when their friends are online. This feature is particularly useful for reconnecting with inactive players.
Installation and Integration
For this add-on to function correctly, certain files need to be modified. Typically, modifications must be made in folders like root, locale, uiscript, game, client_src. Since Gui-Time integrates with Python GUI (PyUI), the Py Root files must be compatible. Moreover, the event-triggering system that sends these notifications must be integrated into the auth or game server.
Benefits[/BR][/BR]- Instant notification when a friend enters the game
- In-game time tracking
- User-friendly interface design
- Easy integration process
- Potential to increase server loyalty
Relation to Metin2lobby.com[/BR][/BR]Metin2lobby.com offers comprehensive resources for Metin2 private server development, including C++ systems, Python GUI examples, Py Root modules, and package systems. It serves as an ideal platform for developing and testing such add-ons. Modules like Gui-Time can easily be developed and tested using the resources available on our site.
Conclusion
The Gui-Time and friend notification add-on is one of the small but effective systems that significantly enhances user experience in Metin2 private servers. It is simple for developers and fun for players. Thanks to the resources provided via Metin2lobby.com, installing and customizing such modules has become much easier.
