• 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!

[Mounts] GOD only? (PAYING TO FIX) Especially you cyko ;3

Peroxide

Gone since January 2018
Senator
Joined
Aug 22, 2008
Messages
10,477
Reaction score
2,421
Location
New Zealand
In my TFS Version for 8.70/+
I can only use mounts on a GOD character.

I want to be able to use them for normal characters aswell.

Here's my
mounts.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mounts>
        <mount id="1" clientId="368" name="Widow Queen" speed="20" premium="no" />
        <mount id="2" clientId="369" name="Racing Bird" speed="40" premium="no" />
        <mount id="3" clientId="370" name="War Bear" speed="20" premium="no" />
        <mount id="4" clientId="371" name="Black Sheep" speed="20" premium="no" />
        <mount id="5" clientId="372" name="Midnight Panther" speed="30" premium="no" />
        <mount id="6" clientId="373" name="Draptor" speed="40" premium="no" />
        <mount id="7" clientId="374" name="Titanica" speed="30" premium="no" />
        <mount id="8" clientId="375" name="Tin Lizzard" speed="30" premium="no" />
        <mount id="9" clientId="376" name="Blazebringer" speed="40" premium="no" />
        <mount id="10" clientId="377" name="Rapid Boar" speed="40" premium="no" />
        <mount id="11" clientId="378" name="Stampor" speed="40" premium="no" />
        <mount id="12" clientId="379" name="Undead Cavebear" speed="40" premium="no" />
</mounts>

Here's my CONFIG.LUA under the mounts section
Code:
-- Mounts
	useMounts = true
	mountCooldown = 2000
	unmountPlayerInPz = true

Now all I want is to be able to use them on normal characters. So if anyone can help me then thanks :D!

Will pay $3.00NZD to anyone who fix's this. (Paypal only)~
 
Last edited:
I believe this is what you are looking for: tameMonster(cid, item, itemEx, tame, run, broken), I don't know how to use it, but this could be helpful:

http://otland.net/f81/mount-system-same-functionality-real-tibia-122090/
http://otland.net/f81/mount-system-same-functionality-real-tibia-122090/index2.html (same topic, different script)
http://otland.net/f81/mount-system-quest-1-0-a-114795/#post1135488

Also, I guess you could simply create a talkaction to give free mounts with this: doPlayerAddMount(cid) <- this doesn't use tameMonster().

I am pretty sure that doPlayerAddMount() is what you are looking for.


: D
 
make it easier for yourself and players. add this somewhere in login.lua:
Lua:
--
	if not getPlayerMount(cid, 1) then
		for i = 1, 12 do
			doPlayerAddMount(cid, i)
		end
	end
 
because im getting this error:

[17:2:53.472] [Error - LuaInterface::loadFile] data/creaturescripts/scripts/logi
n.lua:61: 'end' expected (to close 'function' at line 6) near 'if'
[17:2:53.473] [Warning - Event::loadScript] Cannot load script (data/creaturescr
ipts/scripts/login.lua)
[17:2:53.477] data/creaturescripts/scripts/login.lua:61: 'end' expected (to clos
e 'function' at line 6) near 'if'


this is my Login.lua:

HTML:
local config = {
	loginMessage = getConfigValue('loginMessage'),
	useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}

function onLogin(cid)
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
		doPlayerAddBlessing(cid, 1)
		doPlayerAddBlessing(cid, 2)
		doPlayerAddBlessing(cid, 3)
		doPlayerAddBlessing(cid, 4)
		doPlayerAddBlessing(cid, 5)
		doPlayerAddPremiumDays(cid, 2)
		doPlayerSetPromotionLevel(cid, 1)
	end

	local accountManager = getPlayerAccountManager(cid)
	if(accountManager == MANAGER_NONE) then
		local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
		if(lastLogin > 0) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
			str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
		else
			str = str .. " Please choose your outfit."
			doPlayerSendOutfitWindow(cid)
		end

		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
	elseif(accountManager == MANAGER_NAMELOCK) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your 

character has been namelocked, what would you like as your new name?")
	elseif(accountManager == MANAGER_ACCOUNT) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to 

manage your account and if you want to start over then type 'cancel'.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to 

create an account or type 'recover' to recover an account.")
	end

	if(not isPlayerGhost(cid)) then
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	end

     registerCreatureEvent(cid, "kill")
     registerCreatureEvent(cid, "onPrepareDeath")
     registerCreatureEvent(cid, "PlayerLogout")
     registerCreatureEvent(cid, "onPrepareDeath")
     registerCreatureEvent(cid, "deathBroadcast")
     registerCreatureEvent(cid, "DeathBroadcast")

	registerCreatureEvent(cid, "Idle")
	if(config.useFragHandler) then
		registerCreatureEvent(cid, "SkullCheck")
	end

	registerCreatureEvent(cid, "ReportBug")
	registerCreatureEvent(cid, "onlogin")
	registerCreatureEvent(cid, "RainbowOutfit")
	return true

--
	if not getPlayerMount(cid, 1) then
		for i = 1, 12 do
			doPlayerAddMount(cid, i)
		end
	end

end
 
You placed it a little too low space ; )

I mean: move 'return true' before last end.

Now im getting this :S

[18:10:47.856] [Error - CreatureScript Interface]
[18:10:47.859] data/creaturescripts/scripts/login.lua:eek:nLogin
[18:10:47.862] Description:
[18:10:47.865] data/creaturescripts/scripts/login.lua:61: attempt to call global
'getPlayerMount' (a nil value)
[18:10:47.868] stack traceback:
[18:10:47.871] data/creaturescripts/scripts/login.lua:61: in function <data/cre
aturescripts/scripts/login.lua:6>
 
why you dont put an acces in the xml file?

like this: mounts.xml
PHP:
	<mount id="1" access="6" clientid="368" name="Widow Queen" speed="10"/>

not tested, gl:)

edit: sorry I understand that you want mounts only for gm, anyway test it putting acces="1"
 
Sadly, your server doesn't support mounts yet. At least there is no lua function getPlayerMount, so it may be not yet implemented. What distro did you used?
 
Back
Top