Bvural41 1
Bvural41
Mt2Hizmet 1
Mt2Hizmet
xranzei 1
xranzei
quickxd 1
quickxd
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Scarlet 1
Scarlet
Hikaye Ekle

Pazar Geçmişi Log Sistemi

  • Konuyu başlatan Konuyu başlatan Nivahost
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 2
  • Görüntüleme Görüntüleme 3K
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

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!

Merhaba Arkadaşlar :

Bu Zamanlarda En Çok Aranan Sistem Haline Gelen Pazar Geçmişi Logunu Sizlerle Paylaşacağım. Pazarınızda ki İtemi Kimin Aldığını Hangi Saatte Aldığını Ve Ne Zaman Aldığını Görebilirsiniz. Pazar Geçmişi Logu Tablosunu Açmak Ve Kayıtları Görmek İçin Pazar Panelinizde ki Kayıtlar Kısmına Basmanız Yeterlidir. Bu Sayede Kimin Ne Zaman Hangi Saatte Hangi İtemi Aldığını Görebilirsiniz.

Anlatım :

uiscript/shopdialog.py dosyasını açın.

Code:

{
"name" : "LogsButton",
"type" : "button",

"x" : 120,
"y" : 295,

"width" : 61,
"height" : 21,

"text" : "Kayitlar",

"default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
"over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
"down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
},

Yukarıda Vermiş Olduğum Kodu En Alta Ekleyin.

uishop.py dosyasını açın.

Code:

import time
import gameInfo


İmportların Arasına Ekleyin.

bcac5f0979.png


Code:

class ShopDialog(ui.ScriptWindow):
def __init__(self):

Aratın.

Code:

self.kisi = ""
self.pazar = 0

Altına Ekleyin.

faf1dc1cf9.png


Code:

def LoadDialog(self):

Aratın.

Code:

self.btnLogs = GetObject("LogsButton")

Altına Ekleyin.

d77c5f66d1.png


Code:

self.btnClose.SetEvent(ui.__mem_func__(self.AskClo sePrivateShop))

Aratın.

Code:

self.btnLogs.SetEvent(ui.__mem_func__(self.AskLogs PrivateShop)) ##koray- shop - log

Altına Ekleyin.

Code:

if chr.IsNPC(vid):

Bulun.

Code:

if chr.IsNPC(vid):
self.pazar = 0
isPrivateShop = FALSE
self.kisi = chr.GetNameByVID(vid)
else:
self.kisi = chr.GetNameByVID(vid)
self.pazar = 1
isPrivateShop = TRUE

Kodu Tamamen Değiştirin.

d08dadee5b.png


Bulun.

Code:

isMainPlayerPrivateShop = TRUE

self.btnBuy.Hide()
self.btnSell.Hide()
self.btnClose.Show()


else:


isMainPlayerPrivateShop = FALSE


self.btnBuy.Show()
self.btnSell.Show()
self.btnClose.Hide()

Değiştirin.

Code:

isMainPlayerPrivateShop = TRUE

self.btnBuy.Hide()
self.btnSell.Hide()
self.btnLogs.Show()
self.btnClose.Show()


else:


isMainPlayerPrivateShop = FALSE


self.btnBuy.Show()
self.btnSell.Show()
self.btnClose.Hide()
self.btnLogs.Hide()

4c1b03bc87.png


Bulun.

Code:

def Close(self):


Fonksiyonun Altına Ekleyin.

Code:

def AskLogsPrivateShop(self):
self.Board = ui.BoardWithTitleBar()
self.Board.SetSize(376+108+12+130, 306+35)
self.Board.SetCenterPosition()
self.Board.AddFlag('movable')
self.Board.AddFlag('float')
self.Board.SetTitleName('Alışveriş Kayıtların')
self.Board.SetCloseEvent(self.Kapat)
self.Board.Show()

self.ThinBoard = ui.SlotBar()
self.ThinBoard.SetParent(self.Board)
self.ThinBoard.SetSize(351+110+12+130, 260+35)
self.ThinBoard.SetPosition(10, 34)
self.ThinBoard.Show()

self.ListBox=ui.ListBoxScroll()
self.ListBox.SetParent(self.Board)
self.ListBox.SetPosition(10, 34)
self.ListBox.SetSize(345+110+12+130, 255+35)
self.ListBox.Show()

if len(gameInfo.PV_SHOP_LOG) != 0:
for i in xrange(0, len(gameInfo.PV_SHOP_LOG)):
self.ListBox.InsertItem(i, str(gameInfo.PV_SHOP_LOG.split("#")[1]) + ' adlı oyuncu -> ' + str(gameInfo.PV_SHOP_LOG.split("#")[2]) + ' -> ' + localeInfo.NumberToMoneyString(str(gameInfo.PV_SHO P_LOG.split("#")[3])) + "'a satın aldı. " + str(gameInfo.PV_SHOP_LOG.split("#")[4]))
else:
self.ListBox.InsertItem(0, "Henuz bu pazardan item satin alinmadi.")


94ffa9c623.png


Bulun.

Code:

def OnClosePrivateShop(self):


Altına Ekleyin.

Code:

def Kapat(self):
self.Board.Hide()
self.ThinBoard.Hide()
self.ListBox.Hide()

ecc7a4c217.png


Code:

itemBuyQuestionDialog.SetAcceptEvent(lambda arg=True: self.AnswerBuyItem(arg))
itemBuyQuestionDialog.SetCancelEvent(lambda arg=False: self.AnswerBuyItem(arg))


Bulun.

Code:

itemBuyQuestionDialog.SetAcceptEvent(lambda arg=TRUE: self.AnswerBuyItem(arg, itemName, itemPrice, 1))
itemBuyQuestionDialog.SetCancelEvent(lambda arg=FALSE: self.AnswerBuyItem(arg, itemName, item


Değiştirin.

Code:

def AnswerBuyItem(self, flag):


Bulun.

Code:

def AnswerBuyItem(self, flag, itemAdi, itemFiyati, durum):
if flag:
pos = self.itemBuyQuestionDialog.pos
net.SendShopBuyPacket(pos)
##koray- shop - log
if self.kisi != "" and durum == 1 and player.GetElk() > itemFiyati:
net.SendWhisperPacket(self.kisi, '#'+str(itemAdi)+'#'+str(itemFiyati)+'#'+str(time. strftime("[%d:%m:%Y, %H:%M:%S]"))+'#_satin_aldi#')

self.itemBuyQuestionDialog.Close()
self.itemBuyQuestionDialog = None


Fonksiyonu Bununla Değiştirin.

ce8ef957a5.png


Code:

def OnUpdate(self):


Bulun.

Code:

if self.pazar == 1:
self.GetChild("TitleName").SetText(str(self.kisi) + " - Dükkan")
else:
self.GetChild("TitleName").SetText("Dükkan")


En Altına Ekleyin.

afff30fc76.png


gameInfo.py oluşturun.

Code:

PV_SHOP_LOG = []

Yukarıda ki Kodu Ekleyip Kaydedin.

game.py açın.

Code:

import gameInfo

İmportların Arasına Ekleyin.

Code:

def OnRecvWhisper(self, mode, name, line):

Aratın.

Code:

if line.find("#_satin_aldi#") != -1:
bol = line.split('#')
chat.AppendChat(chat.CHAT_TYPE_INFO, name + ' adlı oyuncu -> ' + bol[1] + ' -> ' + localeInfo.NumberToMoneyString(bol[2]) + "'a satın aldı " + str(bol[3]))
gameInfo.PV_SHOP_LOG.append("#"+name+'#'+bol[1]+'#'+bol[2]+'#'+bol[3]+'#')
return

Yukarıdaki Kodu Fonksiyona Ekleyin.

df3aff009e.png


ui.py açın.

Code:

elif Type == "listbox":
parent.Children[Index] = ListBox()
parent.Children[Index].SetParent(parent)
self.LoadElementListBox(parent.Children[Index], ElementValue, parent)

Aratın.

Code:

elif Type == "listbox_scroll":
parent.Children[Index] = ListBoxScroll()
parent.Children[Index].SetParent(parent)
self.LoadElementListBox(parent.Children[Index], ElementValue, parent)

Altına Ekleyin.

Code:

class ScriptWindow(Window):

Arayın.

Code:

class ListBoxScroll(ListBox):
def __init__(self):
ListBox.__init__(self)

self.scrollBar = ScrollBar()
self.scrollBar.SetParent(self)
self.scrollBar.SetScrollEvent(self.__OnScroll)
self.scrollBar.Hide()


def SetSize(self, width, height):
ListBox.SetSize(self, width - ScrollBar.SCROLLBAR_WIDTH, height)
Window.SetSize(self, width, height)

self.scrollBar.SetPosition(width - ScrollBar.SCROLLBAR_WIDTH, 0)
self.scrollBar.SetScrollBarSize(height)


def ClearItem(self):
ListBox.ClearItem(self)
self.scrollBar.SetPos(0)


def _LocateItem(self):
ListBox._LocateItem(self)

if self.showLineCount < len(self.itemList):
self.scrollBar.SetMiddleBarSize(float(self.GetView ItemCount())/self.GetItemCount())
self.scrollBar.Show()
else:
self.scrollBar.Hide()


def __OnScroll(self):
scrollLen = self.GetItemCount()-self.GetViewItemCount()
if scrollLen < 0:
scrollLen = 0
self.SetBasePos(int(self.scrollBar.GetPos()*scroll Len))

Üstüne Ekleyin.

Yapamayanlar İçin Hazır Dosyalar : İndirme Linki:


Virüs Total:
Dip Not: Her Zaman Serverinizin Orjinal Pack Dosyalarını Kullanmanızda Fayda Var. Hazır Dosyalar Hata Verebilir. Ve Videoda İtem İsimleri Yabancı Olduğu İçin Sistem Kayıtlarında Yabancı Olarak Gözüküyor O Sistemden Değil Arkadaşın Serverinden Kaynaklanıyor. Sistem Tamamen Türkçe'dir.

Bir RepYeter Turkmmo
<span style="color: rgb(51, 51, 51); font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 14px; line-height: 19.6000003814697px; text-align: center; font-weight: bold;"><span style="color: rgb(153, 51, 51);">
Ailesi
smile.png
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst