Jump to content

Mount horse Script python *Question


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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.