• 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

Quickshot

Member
Joined
Nov 8, 2008
Messages
595
Reaction score
8
this scripts makes you able to use all the dif mounts on 8.7(tfs v0.2.9(mystic spirit))



talkactions.xml
XML:
    <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, 1000000) == 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
        doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
         doCreatureSay(cid, "not enough money, need 100cc", TALKTYPE_ORANGE_1)
       end
   return true
end
 
Last edited by a moderator:
you've made an epic param fail
Code:
function [B][COLOR="blue"]onSay[/COLOR][/B][COLOR="red"][B](cid, item, fromPosition, itemEx, toPosition)[/B][/COLOR]

Lua:
function onSay(cid, words, param)
	for i = 1, 12 do     
	   doPlayerAddMount(cid, i)
	end
	return true
end
better? :p
 
edited it a little added a magic effect. i would also like to add a effect that only allows you to use it once
 
bugvoj.jpg


:(
 
post the line you used in your talkactions.xml. also what distro you using. works perfectly fine for me
 
Last edited:
Lua:
function onSay(cid, words, param)
	for i = 1, 12 do     
	   doPlayerAddMount(cid, i)
         end
	doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
	return true
end

Better, to prevent the magic effect 12 times
 
Back
Top