Instrucţiuni:game.py:
Unde sunt toate importurile:
Cod: Selectaţi tot
import uiHabilidadesCod: Selectaţi tot
self.playerGauge = uiPlayerGauge.PlayerGauge(self)
self.playerGauge.Hide() Cod: Selectaţi tot
self.habis = uiHabilidades.Habilidades()
self.habis.Close() Cod: Selectaţi tot
# ITEM_MALL
"CloseMall" : self.CommandCloseMall,
"ShowMeMallPassword" : self.AskMallPassword,
"item_mall" : self.__ItemMall_Open,
# END_OF_ITEM_MALL Cod: Selectaţi tot
# HABILIDADES
"HABILIDADES" : self.__Habilidades,
# END_OF_HABILIDADES Cod: Selectaţi tot
### HABILIDADES ###
def __Habilidades(self, cmd):
shang = cmd.split("|")
if shang[0] == "RAZA":
self.habis.Open(int(shang[1]))
elif shang[0] == "GRUPO":
net.SendQuestInputStringPacket(str(constInfo.Habilidades["HABSTR"]))
constInfo.Habilidades["HABSTR"] = ""
elif shang[0] == "QID":
constInfo.Habilidades["qid"] = int(shang[1])
### END_HABILIDADES ### constInfo.py:
Sub:
Cod: Selectaţi tot
isItemDropQuestionDialog = 0Cod: Selectaţi tot
Habilidades = {
"HABSTR" : "",
"qid" : 0,
} Download:

Eu doar am găsit acest tutorial şi mi s-a părut interesant!
Nu răspund de eventualele bug-uri sau altele!



