- Katılım
- 9 Haz 2017
- Konular
- 2
- Mesajlar
- 4
- Reaksiyon Skoru
- 3
- Altın Konu
- 0
- TM Yaşı
- 9 Yıl 6 Gün
- Başarım Puanı
- 7
- Yaş
- 32
- MmoLira
- 0
- DevLira
- 0
HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!
Ping Sistemi Arkadaşlar Resimdeki Gibidir.
Root.epk-Root.eix Packlarınızı Herhangi Bir Pack Açıcı Programı ile Açmalısınız.
Game.py Açılır
testAlignment = 0
arat altına kodu yapıştır
def __init__(self, stream): Aratılır
en altınada bu kodları yapştır
Bu Komutun altınada
En Alda Bu Kod Bulunmaktadır.
Bilgi Olsun Diye Bunun Bi Gereği yok
def OnUpdate(self):
arat içine
app.UpdateGame() Arat ve alt kısma
Ekle
def UpdateGameInfo(self): Arat ve Alt Kısmına Bu Komutun içine Değil
ekleyin.
def Open(self):
aratılır
Aratılır
Altına Eklenir.
Adında Boş Belge Oluşturulur Root içine Atılır.
Son Olarak
Durum.php Adında Belge Olurulup açılır
Index.php Adında Belge Oluştur aç
Panher Adında Klasör Oluştur Aç içine config.php Boş metin Oluştur Aç
Root.epk-Root.eix Packlarınızı Herhangi Bir Pack Açıcı Programı ile Açmalısınız.
Game.py Açılır
Kod:
import time
import re
import urllib
import thread
arat altına kodu yapıştır
Kod:
kalite = ""
pingg = None
sayi = None
bugungiren = None
def koray():
global pingg, sayi, bugungiren
while 1 == 1:
pingg = int(re.findall("[0-9][0-9]", str(os.popen("%WINDIR%/system32/ping -n 1 google.com").readlines()[-1]))[0])
sayi = urllib.urlopen("http://local.domain/xxx/index.php").read()
bugungiren = urllib.urlopen("http://local.domain/xxx/durum.php").read()
time.sleep(5)
thread.start_new_thread(koray, ())
en altınada bu kodları yapştır
Kod:
self.playerGauge = uiPlayerGauge.PlayerGauge(self)
self.playerGauge.Hide()]
Kod:
## PING-FPS
self.koray_board = ui.BoardWithTitleBar()
self.koray_board.SetPosition(wndMgr.GetScreenWidth() - 350, 0)
self.koray_board.SetSize(200, 145)
self.koray_board.AddFlag('movable')
self.koray_board.AddFlag("float")
self.koray_board.Show()
self.PrintFps = ui.TextLine()
self.PrintFps.SetDefaultFontName()
self.PrintFps.SetParent(self.koray_board)
self.PrintFps.SetPosition(75, 33)
self.PrintFps.Show()
self.PrintOyuncu = ui.TextLine()
self.PrintOyuncu.SetDefaultFontName()
self.PrintOyuncu.SetParent(self.koray_board)
self.PrintOyuncu.SetPosition(55, 50)
self.PrintOyuncu.Show()
self.PrintBugun = ui.TextLine()
self.PrintBugun.SetDefaultFontName()
self.PrintBugun.SetParent(self.koray_board)
self.PrintBugun.SetPosition(30, 70)
self.PrintBugun.Show()
self.PrintPing = ui.TextLine()
self.PrintPing.SetDefaultFontName()
self.PrintPing.SetParent(self.koray_board)
self.PrintPing.SetPosition(27, 90)
self.PrintPing.Show()
self.PrintSaat = ui.TextLine()
self.PrintSaat.SetDefaultFontName()
self.PrintSaat.SetParent(self.koray_board)
self.PrintSaat.SetPosition(20, 110)
self.PrintSaat.Show()
## PING-FPS //
Kod:
def __del__(self):
def OnUpdate(self):
arat içine
app.UpdateGame() Arat ve alt kısma
Kod:
if self.isShowGameInfo:
self.UpdateGameInfo()
def UpdateGameInfo(self): Arat ve Alt Kısmına Bu Komutun içine Değil
Kod:
def UpdateGameInfo(self):
global pingg, sayi, bugungiren
nUpdateFPS = app.GetUpdateFPS()
fbs = "FPS: %3d" % (nUpdateFPS)
gun = time.strftime("%d")
ay = time.strftime("%B")
yil = time.strftime("%Y")
aylar = {"January": "Ocak", "Feburary": "Subat", "March": "Mart",
"April": "Nisan", "May": "Mayis", "Jun": "Haziran",
"July": "Temmuz", "August ": "Agustos", "September": "Eylul",
"October": "Ekim", "November ": "Kasim", "December": "Aralik"
}
ayyeni = aylar[ay]
saat = "Saat: " + time.strftime("%H.%M.%S") + " Tarih: " + gun + "." + ayyeni + "." + yil
aktif = str(sayi) + " oyuncu aktif"
bugunkac = "Bugun: " + str(bugungiren) + " kisi oyuna girdi"
if pingg <= 30 and pingg > 0: kalite = "Mukemmel"
elif pingg <= 60 and pingg > 30: kalite = "Orta"
elif pingg <= 100 and pingg > 60: kalite = "Kotu"
elif pingg >= 100: kalite = "Cok Kotu"
else: kalite = "Bilinmiyor"
self.PrintFps.SetText(fbs)
self.PrintSaat.SetText(saat)
self.PrintOyuncu.SetText(aktif)
self.PrintBugun.SetText(bugunkac)
self.PrintPing.SetText("Ping: " + str(pingg) + " Baglanti Kalitesi: " + kalite)
def Open(self):
aratılır
Kod:
self.ShowNameFlag = FALSE
Kod:
self.isShowGameInfo = TRUE
Kod:
Pinng.py
Kod:
import re, os
kalite = ""
pingg = None
pingg = int(re.findall("[0-9][0-9]", str(os.popen("%WINDIR%/system32/ping -n 1 google.com").readlines()[-1]))[0])
while kalite != kalite:
if pingg > 30: kalite = "Mukemmel"
if pingg > 70: kalite = "Orta"
if pingg > 110: kalite = "Kotu"
else: kalite = "Berbat"
if kalite == "": kalite = "None"
while pingg - pingg > 10 or pingg - pingg < 10:
pingg = pingg
Durum.php Adında Belge Olurulup açılır
PHP:
<?php
require_once("./Panher/config.php");
$exe = @mysql_query("SELECT COUNT(*) as count FROM account.account WHERE last_play LIKE '%".date("Y-m-d")."%' ");
$player_online = @mysql_fetch_object($exe)->count;
echo $player_online * 1;
?>
PHP:
<?php
require_once("./Panher/config.php");
mysql_select_db("player");
$exe = mysql_query("SELECT COUNT(*) as count FROM player WHERE DATE_SUB(NOW(), INTERVAL 10 MINUTE) < last_play;");
$player_online = mysql_fetch_object($exe)->count;
echo "$player_online"
?>
PHP:
<?php
$conn=mysql_connect ("ServerIP", "root", MysqlŞifre");
?>
- Katılım
- 4 Ağu 2016
- Konular
- 65
- Mesajlar
- 1,625
- Çözüm
- 2
- Online süresi
- 5d 4h
- Reaksiyon Skoru
- 982
- Altın Konu
- 2
- TM Yaşı
- 9 Yıl 10 Ay 15 Gün
- Başarım Puanı
- 254
- MmoLira
- 1,590
- DevLira
- 18
Teşekkürler.
- Katılım
- 9 Nis 2016
- Konular
- 157
- Mesajlar
- 1,729
- Çözüm
- 59
- Online süresi
- 2mo 26d
- Reaksiyon Skoru
- 836
- Altın Konu
- 0
- TM Yaşı
- 10 Yıl 2 Ay 7 Gün
- Başarım Puanı
- 224
- MmoLira
- 4,315
- DevLira
- 51
teşekkürler
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 13
- Görüntüleme
- 1K
- Cevaplar
- 2
- Görüntüleme
- 270
- Cevaplar
- 8
- Görüntüleme
- 692
- Cevaplar
- 4
- Görüntüleme
- 81
- Cevaplar
- 4
- Görüntüleme
- 143





