EVET ARKADAŞLAR SORUNSUZ DUELLO ATARKEN RAKİP CAN GÖSTERME SİSTEMI DENENDI.
[h=2][/h]ConstInfo.py açıyoruz ve bu kodu ekliyoruz :
INPUT_IGNORE = 0
VID = 0
STHX = 0
HPXD = 0
PLAYER_HP = 0
PLAYER_MAX_HP = 0
PLAYER_SP = 0
PLAYER_MAX_SP = 0
PLAYER_NAME = ""
Resim:
ConstInfo.py İle İşimiz Bitti Kaydetip Çıkalım.
Sonra Game.py Açıyoruz İmport Bölümünün En Altına Bu Kodu Ekliyoruz.
Kod:
import uiHealth
Resim :
Kodu Aratıyoruz :
Kod:
def __ServerCommand_Build(self):
Müsait Bir Bölümüne Bu Kodları Yapıştırıyoruz.
Kod:
#wskaznikiHP
"super_quest" : self.Tabulejtor,
"pvp_zdruwko" : self.Mozart,
#inputpowerdziwko
"get_input_value" : self.GetInputValue,
"get_input_start" : self.GetInputOn,
"get_input_end" : self.GetInputOff,
Resim :
Game.py'nin En Alt Kısmına Bu Kodu Eklicez :
Kod:
def Mozart(self, data):
dane = data.split("|")
constInfo.PLAYER_NAME = str(dane[0])
constInfo.PLAYER_HP = int(dane[1])
constInfo.PLAYER_MAX_HP = int(dane[2])
constInfo.PLAYER_SP = int(dane[3])
constInfo.PLAYER_MAX_SP = int(dane[4])
def Tabulejtor(self, id):
constInfo.STHX = int(id)
def GetInputOn(self):
constInfo.INPUT_IGNORE = 1
def GetInputOff(self):
constInfo.INPUT_IGNORE = 0
def GetInputValue(self):
net.SendQuestInputStringPacket(str(constInfo.VID))
def OpenQuestWindow(self, skin, idx):
if constInfo.INPUT_IGNORE == 1:
return
else:
self.interface.OpenQuestWindow(skin, idx)
Resim :
Game.py İle İşimiz Bitti Kaydetip Çıkalım.
--------------------------------------------------------------------------------------
UiTarget.py'i Açalım Ve İmport Bölümüne Şu Kodları Ekleyelim :
Kod:
import uiHealth
import constInfo
import event
-----------------------------------------------------------------------------------------
Şu Kodu Aratalım :
Kod:
def OnUpdate(self):
Kodun Tamamını Bu Kod İle Değiştirin.
Kod:
def OnUpdate(self):
if self.isShowButton:
exchangeButton = self.buttonDict[locale.TARGET_BUTTON_EXCHANGE]
distance = player.GetCharacterDistance(self.vid)
if distance < 0:
return
if exchangeButton.IsShow():
if distance > self.EXCHANGE_LIMIT_RANGE:
self.RefreshButton()
else:
if distance < self.EXCHANGE_LIMIT_RANGE:
self.RefreshButton()
if exchangeButton.IsShow():
if distance > self.EXCHANGE_LIMIT_RANGE:
self.RefreshButton()
else:
if distance < self.EXCHANGE_LIMIT_RANGE:
self.RefreshButton()
import event
import constInfo
if player.IsPVPInstance(self.vid):
constInfo.VID = self.vid
event.QuestButtonClick(constInfo.STHX)
if not self.healthBoard.IsShow() and self.vid != 0:
self.healthBoard.Show()
else:
self.healthBoard.Hide()
if self.isShowButton:
exchangeButton = self.buttonDict[locale.TARGET_BUTTON_EXCHANGE]
distance = player.GetCharacterDistance(self.vid)
if distance < 0:
return
else:
if distance < self.EXCHANGE_LIMIT_RANGE:
self.RefreshButton()
Resim :
-----------------------------------------------------------------------------------------
Şu Kodu Aratalım :
Kod:
def __init__(self):
Altına Bu Kodu Ekleyelim :
Kod:
self.healthBoard = uiHealth.HealthBoard()
-----------------------------------------------------------------------------------------
Şu Kodu Aratalım :
Kod:
def Close(self):
Şu Kod İle Değiştirelim :
Kod:
def Close(self):
self.__Initialize()
self.
[h=2][/h]ConstInfo.py açıyoruz ve bu kodu ekliyoruz :
INPUT_IGNORE = 0
VID = 0
STHX = 0
HPXD = 0
PLAYER_HP = 0
PLAYER_MAX_HP = 0
PLAYER_SP = 0
PLAYER_MAX_SP = 0
PLAYER_NAME = ""
Resim:
ConstInfo.py İle İşimiz Bitti Kaydetip Çıkalım.
Sonra Game.py Açıyoruz İmport Bölümünün En Altına Bu Kodu Ekliyoruz.
Kod:
import uiHealth
Resim :
Kodu Aratıyoruz :
Kod:
def __ServerCommand_Build(self):
Müsait Bir Bölümüne Bu Kodları Yapıştırıyoruz.
Kod:
#wskaznikiHP
"super_quest" : self.Tabulejtor,
"pvp_zdruwko" : self.Mozart,
#inputpowerdziwko
"get_input_value" : self.GetInputValue,
"get_input_start" : self.GetInputOn,
"get_input_end" : self.GetInputOff,
Resim :
Game.py'nin En Alt Kısmına Bu Kodu Eklicez :
Kod:
def Mozart(self, data):
dane = data.split("|")
constInfo.PLAYER_NAME = str(dane[0])
constInfo.PLAYER_HP = int(dane[1])
constInfo.PLAYER_MAX_HP = int(dane[2])
constInfo.PLAYER_SP = int(dane[3])
constInfo.PLAYER_MAX_SP = int(dane[4])
def Tabulejtor(self, id):
constInfo.STHX = int(id)
def GetInputOn(self):
constInfo.INPUT_IGNORE = 1
def GetInputOff(self):
constInfo.INPUT_IGNORE = 0
def GetInputValue(self):
net.SendQuestInputStringPacket(str(constInfo.VID))
def OpenQuestWindow(self, skin, idx):
if constInfo.INPUT_IGNORE == 1:
return
else:
self.interface.OpenQuestWindow(skin, idx)
Resim :
Game.py İle İşimiz Bitti Kaydetip Çıkalım.
--------------------------------------------------------------------------------------
UiTarget.py'i Açalım Ve İmport Bölümüne Şu Kodları Ekleyelim :
Kod:
import uiHealth
import constInfo
import event
-----------------------------------------------------------------------------------------
Şu Kodu Aratalım :
Kod:
def OnUpdate(self):
Kodun Tamamını Bu Kod İle Değiştirin.
Kod:
def OnUpdate(self):
if self.isShowButton:
exchangeButton = self.buttonDict[locale.TARGET_BUTTON_EXCHANGE]
distance = player.GetCharacterDistance(self.vid)
if distance < 0:
return
if exchangeButton.IsShow():
if distance > self.EXCHANGE_LIMIT_RANGE:
self.RefreshButton()
else:
if distance < self.EXCHANGE_LIMIT_RANGE:
self.RefreshButton()
if exchangeButton.IsShow():
if distance > self.EXCHANGE_LIMIT_RANGE:
self.RefreshButton()
else:
if distance < self.EXCHANGE_LIMIT_RANGE:
self.RefreshButton()
import event
import constInfo
if player.IsPVPInstance(self.vid):
constInfo.VID = self.vid
event.QuestButtonClick(constInfo.STHX)
if not self.healthBoard.IsShow() and self.vid != 0:
self.healthBoard.Show()
else:
self.healthBoard.Hide()
if self.isShowButton:
exchangeButton = self.buttonDict[locale.TARGET_BUTTON_EXCHANGE]
distance = player.GetCharacterDistance(self.vid)
if distance < 0:
return
else:
if distance < self.EXCHANGE_LIMIT_RANGE:
self.RefreshButton()
Resim :
-----------------------------------------------------------------------------------------
Şu Kodu Aratalım :
Kod:
def __init__(self):
Altına Bu Kodu Ekleyelim :
Kod:
self.healthBoard = uiHealth.HealthBoard()
-----------------------------------------------------------------------------------------
Şu Kodu Aratalım :
Kod:
def Close(self):
Şu Kod İle Değiştirelim :
Kod:
def Close(self):
self.__Initialize()
self.
