Jump to content

Mount horse Script python *Question


Martion69

Recommended Posts

Hey, i tried to make a script for the P-Server i'm playing on. But i can't Mount/Unmount my horse/pet through commands. I tried

 

//Nothing happens

net.SendChatPacket("/ride")
net.SendChatPacket("/mount")
net.SendChatPacket("/mount_horse")
net.SendChatPacket("/use_horse_ride ")

 

//Nothing happens either

player.SetSingleDIKKeyState(app.DIK_LCONTROL, 1)
player.SetSingleDIKKeyState(app.DIK_H, 1)
player.SetSingleDIKKeyState(app.DIK_LCONTROL, 0)
player.SetSingleDIKKeyState(app.DIK_H, 0)

 

//Spawns a white horse and i'm lying on the ground

chr.MountHorse()
chr.DismountHorse()

 

but none of them work.

Is there another way to do this ? 

 

Greets

Martion

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.