Siegh
Thronar Developer
Hello, I have this script wich is a spell that should only work when a specific mount is being used, in this case id 2.
But it isnt working, seems like Im not using the function getPlayerMount correctly... I searched for similar scripts on the forum but couldnt find exactly what I wanted so, can someone please tell me how to make this work?
Thanks in advance.
But it isnt working, seems like Im not using the function getPlayerMount correctly... I searched for similar scripts on the forum but couldnt find exactly what I wanted so, can someone please tell me how to make this work?
Code:
function onCastSpell(cid, var)
if getPlayerMount(cid) == 2 then
doCombat(cid, combat, var)
else
doPlayerSendTextMessage(cid, 22, "You must be mounted!")
return false
end
return true
end
Thanks in advance.