• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TalkAction Mounts

this scripts makes you able to use all the dif mounts on 8.7(tfs v0.2.9(mystic spirit))



talkactions.xml
Code:
	<talkaction words="!mount" script="mount.lua"/>
free
mount.lua
Lua:
function onSay(cid, words, param)
	for i = 1, 12 do     
	   doPlayerAddMount(cid, i)
         end
	doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
	doCreatureSay(cid, "you now have all the mounts", TALKTYPE_ORANGE_1)
   return true
end
costs money
mount.lua
Lua:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 10000) == TRUE then
for i = 1, 12 do     
doPlayerAddMount(cid, i)
end
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
doCreatureSay(cid, "you now have all the mounts", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "You do not have enough money", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return true
end


some of the credits go out to CyberM


Hello, can you remake this so when you open a chest you will get all mounts? :D
 
Hello, can you remake this so when you open a chest you will get all mounts? :D

here dramix
Lua:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 5555 then
queststatus = getPlayerStorageValue(cid,368)
if queststatus == -1 or queststatus == 0 then
doPlayerSendTextMessage(cid,19,"Now you have all mounts")
for i = 1, 12 do     
doPlayerAddMount(cid, i)
end
setPlayerStorageValue(cid,368,1)
else
doPlayerSendTextMessage(cid,19,"The chest is empty.")
end
end
return true
end
 
Last edited:
here dramiz
Lua:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 5555 then
queststatus = getPlayerStorageValue(cid,368)
if queststatus == -1 or queststatus == 0 then
doPlayerSendTextMessage(cid,19,"Now you have all mounts")
for i = 1, 12 do     
doPlayerAddMount(cid, i)
end
setPlayerStorageValue(cid,368,1)
else
doPlayerSendTextMessage(cid,19,"The chest is empty.")
end
end
return true
end

thx, rep++
 
does it works for rev 4029? i test it but its not working and i ain't having any error logs on console
 
do you have your mounts turned on in your config(i heard that you could i dont have your tfs) and its 8.7 ?
 
let me check my config lol

EDIT: Where does that says -.- and yes it's 8.7 and i don't get any error logs either.
Mounts just doesn't shows up
 
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<mounts>
        <mount id="1" clientid="368" name="Widow Queen" speed="10" />
        <mount id="2" clientid="369" name="Racing Bird" speed="20" />
        <mount id="3" clientid="370" name="War Bear" speed="10" />
        <mount id="4" clientid="371" name="Black Sheep" speed="10" />
        <mount id="5" clientid="372" name="Midnight Panther" speed="15" />
        <mount id="6" clientid="373" name="Draptor" speed="20" />
        <mount id="7" clientid="374" name="Titanica" speed="15" />
        <mount id="8" clientid="375" name="Tin Lizzard" speed="15" />
        <mount id="9" clientid="376" name="Blazebringer" speed="20" />
        <mount id="10" clientid="377" name="Rapid Boar" speed="20" />
        <mount id="11" clientid="378" name="Stampor" speed="20" />
        <mount id="12" clientid="379" name="Undead Cavebear" speed="20" />
</mounts>
 
this is what i have
XML:
<talkaction words="!mount" script="mount.lua"/>
try this instead
XML:
<talkaction words="!mount" event="script" value="mount.lua"/>
probably not it but might as well give it a try



srry for the double post!!
 
Last edited:
Back
Top