mount or dismount horse by python?

01/16/2013 16:34 xike20#1
hi everyone.
I try this:
Code:
              if not player.IsSkillActive(3):
                        if player.IsMountingHorse():
                                myVid = player.GetMainCharacterIndex()
                                chr.SelectInstance(myVid)
                                chr.DismountHorse()
                        else:
                                myVid = player.GetMainCharacterIndex()
                                chr.SelectInstance(myVid)
                                chr.MountHorse()
and the game close automate when I load this code.

Is there someway to mount(dismount) horse by python?
Thanks.
01/16/2013 18:25 noahrmal#2
Try it with:

Code:
net.SendChatPacket("/user_horse_ride")
Code:
net.SendChatPacket("/unmount")
01/16/2013 18:44 [uLow]Beni#3
to adjure a Horse do this:
PHP Code:
import net
net
.SendItemUsePacket(PlaceWhereTheHorsePictureIs
01/17/2013 05:14 xike20#4
Hi 123klo,!BENI!
Thanks for help.
It works perfect now.