Siema, chciałem podesłać tutaj gotowy kod, który umożliwi wsiadanie na mounta CTRL + G.
Pozdrawiam użytkowników <3
def PressGKey(self):
if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
if not player.IsMountingHorse():
inventory_size = player.INVENTORY_PAGE_SIZE * 4
ride_items = (71114, 71115)
for slot_index in range(inventory_size):
if player.GetItemIndex(slot_index) in ride_items:
net.SendItemUsePacket(slot_index)
return
net.SendChatPacket("/ride")
return
if self.ShowNameFlag:
self.interface.ToggleGuildWindow()
else:
app.PitchCamera(app.CAMERA_TO_POSITIVE)


Zasady eventów -








