Jump to content
  • 0

Mount horse Script python *Question


Martion69

Question

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 post

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



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