Tipologie server:pvm
*Resursă folosită: de la fbi
*ServerFiles utilizat: service secret shit
*Syserr:
*Detalii suplimentare: de unde provine eficienta de a rafina, ca sa stiu pe unde sa ma uit. multumesc
uidragonsoul.pybebedani scrie:Nimeni ma?
[ Postat de pe Android ]
Cod: Selectaţi tot
ITEM_FLAG_APPLICABLE = 1 << 14Cod: Selectaţi tot
GET_PAGE_INDEX = 0
GET_DK_INDEX = 0Cod: Selectaţi tot
def __init__(self):Cod: Selectaţi tot
self.doAllRefineButton = None
self.wndMoney = None
self.bAutoRefine = False
self.autoRefineCount = 0
self.autoRefineTime = 0.0Cod: Selectaţi tot
self.doRefineButton = self.GetChild("DoRefineButton")Cod: Selectaţi tot
self.doAllRefineButton = self.GetChild("DoAllRefineButton")Cod: Selectaţi tot
self.doRefineButton.SetEvent(self.__PressDoRefineButton)Cod: Selectaţi tot
self.doAllRefineButton.SetEvent(self.__PressDoAllRefineButton)Cod: Selectaţi tot
def __PressDoRefineButton(self):Cod: Selectaţi tot
def __GetItemPos(self, local_slot_pos):
global GET_DK_INDEX
global GET_PAGE_INDEX
return (GET_DK_INDEX * 5 * player.DRAGON_SOUL_PAGE_SIZE) + GET_PAGE_INDEX * player.DRAGON_SOUL_PAGE_SIZE + local_slot_pos
def __PressDoAllRefineButton(self):
self.bAutoRefine = True
self.autoRefineTime = float(app.GetTime())
self.autoRefineCount = 0Cod: Selectaţi tot
def OnUpdate(self):Cod: Selectaţi tot
def OnUpdate(self):
if self.bAutoRefine is False:
return
if self.autoRefineTime + 0.2 > float(app.GetTime()):
return
if self.autoRefineCount > 16:
return
if uiPrivateShopBuilder.IsBuildingPrivateShop():
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.MOVE_ITEM_FAILURE_PRIVATE_SHOP)
self.bAutoRefine = False
return
add_item = {0:0, 1:0}
num = 0
for i in xrange(33):
if i == 32:
self.bAutoRefine = False
break
slotNumber = self.__GetItemPos(i)
itemVnum = player.GetItemIndex(player.DRAGON_SOUL_INVENTORY, slotNumber)
if ((add_item[0] == 1) and (add_item[1] == 1)):
break
if not itemVnum:
continue
add_item[num] = 1
num += 1
self.AutoSetItem((player.DRAGON_SOUL_INVENTORY, slotNumber), 1)
player.SendDragonSoulRefine(DragonSoulRefineWindow.DS_SUB_HEADER_DIC[self.currentRefineType], self.refineItemInfo)
add_item = {0:0, 1:0}
num = 0
self.autoRefineCount += 1
self.autoRefineTime = float(app.GetTime())Cod: Selectaţi tot
"name" : "DoRefineButton",Cod: Selectaţi tot
## Do AllRefine Button
{
"name" : "DoAllRefineButton",
"type" : "button",
"x" : 188-90,
"y" : 200,
"default_image" : "d:/ymir work/ui/dragonsoul/l_button01.tga",
"over_image" : "d:/ymir work/ui/dragonsoul/l_button02.tga",
"down_image" : "d:/ymir work/ui/dragonsoul/l_button03.tga",
"children" :
(
{
"name" : "DoAllRefineButtonTitle",
"type" : "text",
"x" : 0,
"y" : 0,
"text" : uiScriptLocale.DO_ALL_REFINE,
"all_align" : "center",
},
),
},Cod: Selectaţi tot
DO_ALL_REFINE Rafinare totalăAm sa incerc cand ajung acas, revin cu edit.6Daemon9 scrie:uidragonsoul.pybebedani scrie:Nimeni ma?
[ Postat de pe Android ]
Caută :Adaugă sub :Cod: Selectaţi tot
ITEM_FLAG_APPLICABLE = 1 << 14Caută :Cod: Selectaţi tot
GET_PAGE_INDEX = 0 GET_DK_INDEX = 0Adaugă în acea funcție:Cod: Selectaţi tot
def __init__(self):Caută:Cod: Selectaţi tot
self.doAllRefineButton = None self.wndMoney = None self.bAutoRefine = False self.autoRefineCount = 0 self.autoRefineTime = 0.0Adaugă sub el :Cod: Selectaţi tot
self.doRefineButton = self.GetChild("DoRefineButton")Caută :Cod: Selectaţi tot
self.doAllRefineButton = self.GetChild("DoAllRefineButton")Adaugă sub :Cod: Selectaţi tot
self.doRefineButton.SetEvent(self.__PressDoRefineButton)Caută :Cod: Selectaţi tot
self.doAllRefineButton.SetEvent(self.__PressDoAllRefineButton)Adaugă sub el :Cod: Selectaţi tot
def __PressDoRefineButton(self):Caută :Cod: Selectaţi tot
def __GetItemPos(self, local_slot_pos): global GET_DK_INDEX global GET_PAGE_INDEX return (GET_DK_INDEX * 5 * player.DRAGON_SOUL_PAGE_SIZE) + GET_PAGE_INDEX * player.DRAGON_SOUL_PAGE_SIZE + local_slot_pos def __PressDoAllRefineButton(self): self.bAutoRefine = True self.autoRefineTime = float(app.GetTime()) self.autoRefineCount = 0Schimbă toată funcția cu asta :Cod: Selectaţi tot
def OnUpdate(self):Du-te în dragonsoulrefinewindow.py și caută :Cod: Selectaţi tot
def OnUpdate(self): if self.bAutoRefine is False: return if self.autoRefineTime + 0.2 > float(app.GetTime()): return if self.autoRefineCount > 16: return if uiPrivateShopBuilder.IsBuildingPrivateShop(): chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.MOVE_ITEM_FAILURE_PRIVATE_SHOP) self.bAutoRefine = False return add_item = {0:0, 1:0} num = 0 for i in xrange(33): if i == 32: self.bAutoRefine = False break slotNumber = self.__GetItemPos(i) itemVnum = player.GetItemIndex(player.DRAGON_SOUL_INVENTORY, slotNumber) if ((add_item[0] == 1) and (add_item[1] == 1)): break if not itemVnum: continue add_item[num] = 1 num += 1 self.AutoSetItem((player.DRAGON_SOUL_INVENTORY, slotNumber), 1) player.SendDragonSoulRefine(DragonSoulRefineWindow.DS_SUB_HEADER_DIC[self.currentRefineType], self.refineItemInfo) add_item = {0:0, 1:0} num = 0 self.autoRefineCount += 1 self.autoRefineTime = float(app.GetTime())Adaugă sub toată funcția asta :Cod: Selectaţi tot
"name" : "DoRefineButton",
Du-te în locale_interface și adaugă :Cod: Selectaţi tot
## Do AllRefine Button { "name" : "DoAllRefineButton", "type" : "button", "x" : 188-90, "y" : 200, "default_image" : "d:/ymir work/ui/dragonsoul/l_button01.tga", "over_image" : "d:/ymir work/ui/dragonsoul/l_button02.tga", "down_image" : "d:/ymir work/ui/dragonsoul/l_button03.tga", "children" : ( { "name" : "DoAllRefineButtonTitle", "type" : "text", "x" : 0, "y" : 0, "text" : uiScriptLocale.DO_ALL_REFINE, "all_align" : "center", }, ), },Cod: Selectaţi tot
DO_ALL_REFINE Rafinare totală

Utilizatori ce ce navighează pe acest forum: Baidu [Spider] și 168 vizitatori