Intrăm în root/uiinventory.py şi căutăm :
self.costumeButton = self.GetChild2("CostumeButton")
Exact ca aici : Intrăm in root/costinfo.py şi la inceput adăugăm :
self.costumeButton = self.GetChild2("CostumeButton")
Cod:
Sub el adăugăm:
self.Telep = self.GetChild2("Telep")
Tot aici căutăm :
# Costume Button
if self.costumeButton:
self.costumeButton.SetEvent(ui.mem_func(self.ClickCostumeButton))
Şi sub el adăugăm :
#Telep
if self.Telep:
self.Telep.SetEvent(ui.mem_func(self.ClickTelep))
Căutăm tot aici :
def ClickCostumeButton(self):
print "Click Costume Button"
if self.wndCostume:
if self.wndCostume.IsShow():
self.wndCostume.Hide()
else:
self.wndCostume.Show()
else:
self.wndCostume = CostumeWindow(self)
self.wndCostume.Show()
Şi sub el adăugăm :
#Telep
def ClickTelep(self):
import event
qid = constInfo.Telepqin
event.QuestButtonClick(qid)
Intrăm în root/game.py şi căutăm :
# ITEM_MALL
"CloseMall" : self.CommandCloseMall,
"ShowMeMallPassword" : self.AskMallPassword,
"item_mall" : self.__ItemMall_Open,
# END_OF_ITEM_MALL
Şi sub el adăugăm :
#Telep
"Telep" : self.__MakeTelep,
Tot aici căutăm :
self.serverCommander=stringCommander.Analyzer()
for serverCommandItem in serverCommandList.items():
self.serverCommander.SAFE_RegisterCallBack(
serverCommandItem[0], serverCommandItem[1]
)
Şi sub punem :
def __MakeTelep(self, qid):
constInfo.Telepqin= int(qid)
Exact ca aici : Intrăm in root/costinfo.py şi la inceput adăugăm :
Cod:
Telepqin = 0
-------------------------------------------------------------
Quest inel tp :
quest NEWTP begin
state start begin
when login begin
cmdchat("Telep "..q.getcurrentquestindex())
end
when button or info begin
local x
local y
local t
local e = pc.get_empire()
say_title ( "Metin2-Online" )
say_title ( "Teleport:" )
say ( "Salut," )
say ( "Unde vrei sa te duci?" )
local main_set = select ("PvP MAP (MOMENTAN)","DESERTUL","GROTA (V3) INCEPUT","Urmatoarea Pagina")
if main_set == 1 then
pc.warp ( 972800 , 153600 )
elseif main_set == 2 then
pc.warp ( 344000 , 502500 )
elseif main_set == 3 then
pc.warp ( 0 , 1203200 )
elseif main_set == 4 then
local main_set2 =select ("MAP 1 ALBASTRI","MAP 2 ALBASTRI","MAP 1 GALBENI","MAP 2 GALBENI","MAP 1 ROSI","MAP 2 ROSI","Nu mai vreau, multumesc.")
if main_set2 == 1 then
pc.warp ( 959600 , 269700 )
elseif main_set2 == 2 then
pc.warp ( 863800 , 246000 )
elseif main_set2 == 3 then
pc.warp ( 63200 , 166700 )
elseif main_set2 == 4 then
pc.warp ( 145700 , 239800 )
elseif main_set2 == 5 then
pc.warp ( 473900 , 954600 )
elseif main_set2 == 6 then
pc.warp ( 352300 , 882700 )
elseif main_set2 == 7 then
return
end
end
end
end
end
-----------------------------------------------
Intrăm în locale/inventorywindow şi căutăm :
## CostumeButton
{
"name" : "CostumeButton",
"type" : "button",
"x" : 78,
"y" : 5,
"tooltip_text" : uiScriptLocale.COSTUME_TITLE,
"default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
"over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
"down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
},
Şi sub adăugăm :
## Inel Teleport
{
"name" : "Telep",
"type" : "button",
"x" : 5,
"y" : 119,
"tooltip_text" : "Inel Teleport",
"default_image" : "d:/ymir work/ui/game/9.tga",
"over_image" : "d:/ymir work/ui/game/10.tga",
"down_image" : "d:/ymir work/ui/game/10.tga",
},
Ultima editare de un moderator: