Adaiga un buton pe taskbar cu care poti chema mount / cal, apasandu-l.
*Poze / Video:
*Link download / Code:
Deschidem uitaskbar.py si cautam:
Code:
toggleButtonDict[TaskBar.BUTTON_CHAT]=self.GetChild("ChatButton")
Va arata asa:
![[Py] Buton Mount / Cal in Taskbar - Mesaj 1 - Imagine 1 [Py] Buton Mount / Cal in Taskbar - Mesaj 1 - Imagine 1](https://i.hizliresim.com/6l7P0E.jpg)
Cautam:
Code:
BUTTON_CHAT = 4
Va arata asa:
![[Py] Buton Mount / Cal in Taskbar - Mesaj 1 - Imagine 2 [Py] Buton Mount / Cal in Taskbar - Mesaj 1 - Imagine 2](https://i.hizliresim.com/7VEg3L.jpg)
Deschidem interfacemodule.py si cautam:
Code:
self.wndTaskBar.SetToggleButtonEvent(uiTaskBar.Tas kBar.BUTTON_CHAT, ui.__mem_func__(self.ToggleChat))
Cautam:
Code:
def __IsChatOpen(self):
return TRUE
Va arata asa :
![[Py] Buton Mount / Cal in Taskbar - Mesaj 1 - Imagine 3 [Py] Buton Mount / Cal in Taskbar - Mesaj 1 - Imagine 3](https://i.hizliresim.com/bgADmG.jpg)
Acum intram in constInfo.py si cautam :
Code:
PVPMODE_PROTECTED_LEVEL = 105
Va arata asa :
![[Py] Buton Mount / Cal in Taskbar - Mesaj 1 - Imagine 4 [Py] Buton Mount / Cal in Taskbar - Mesaj 1 - Imagine 4](https://i.hizliresim.com/RbLk5n.jpg)
Intram in game.py si cautam :
Code:
"mall" : self.__InGameShop_Show,
Adauga pe ultimul rand in game.py :
Deschidem taskbar.py si cautam:
Code:
"down_imag": ROOT + "din bara de activități / ınventory_button_03.sub",
},
Exemplu quest care sa mearga cu butonul:
Code:
quest horse_button begin
state start begin
when login begin
cmdchat("horse_button "..q.getcurrentquestindex())
end
when button begin
if pc.get_map_index() != 28 then
if horse.is_summon() then
horse.unsummon()
else
horse.summon()
end
end
if pc.getqf("at_p") == 0 then
pc.set_skill_level(131,50)
pc.setqf("at_p",1)
end
end
end
end