SphereCommunity
Horse mount - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Horse mount (/Thread-Horse-mount)



Horse mount - djazraell - 03-02-2021 02:07 AM

Hello friends Bye
In this way, the horse is taken as an item, so when the staff double clicks, it gets on it
But when the player double-clicks, the horse comes out like a pentegram. Ranting
I want the player to board when double clicks Confused
Code:
[itemdef i_mt_halktan]
name Halkin Binegi
id i_pet_horse_brown_dk
type t_script
layer 25
tdata3 c_halktan

On=@Create
color 2061
attr 14

On=@DClick
if !((<src.body> == c_man) || (<src.body> == c_woman) || (<src.body> == c_man_gm))
    src.sysmessage once insan olki buna binebilesin yezid!
else
src.Events +e_halktan
src.newnpc c_halktan
src.new.p <src.p>
src.new.color <color>
src.new.hits 100
src.new.mount
remove
Return 1
endif

On=@PickUp_Ground
return 1
@PickUp_Ground Why doesn't it work?