Jump to content

Loteriada - click Posted ImageZasady eventów - click Posted ImageKiełbasa - click Posted ImageOdwiedź moje konto - click


Photo

Wsiadanie na mounta skrótem klawiszowym CTRL + G



  • Please log in to reply
No replies to this topic

#1 nem

nem

    Nowy

  • Użytkownik
  • Pip
  • 10 posts
  • Joined Wed, 23 Nov 22
  • Państwo: Country Flag
  • Nick w grze:goodinhead
  • Królestwo:Chunjo

Posted Today, 00:08 AM

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)

 


  • Tyrek and kazpi like this



nem was given a warning for this post by Admin: Bezsensowne posty





Also tagged with one or more of these keywords: Nowość

7 user(s) are reading this topic

1 members, 5 guests, 0 anonymous users


    Google (1), nem