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

[Mount System]

thalesvasc

New Member
Joined
Sep 28, 2010
Messages
42
Reaction score
1
Hello guys, well...All server that I've ever seen until now is having the same problem...When player buy premium, all the mounts are available lol.
So...what should I do to gain the mounts one by one using the taming items?

REP + :p
 
mount.lua
Lua:
local t = {
	[5907] = {'Bear', 3},
	[13226] = {'Black Sheep', 4},
	[13224] = {'Midnight Panther', 5},
	[13229] = {'Terror Bird', 2},
	[13178] = {'Boar', 10},
	[13236] = {'Crustacea Gigantica', 7},
	[13222] = {'Undead Cavebear', 12},
	[13238] = {'Wailing Widow', 1},
	[13225] = {'Draptor', 6}
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isMonster(itemEx.uid) then
		local v = t[item.itemid]
		if v and v[1] == getCreatureName(itemEx.uid) and not getPlayerMount(cid, v[2]) then
			doPlayerAddMount(cid, v[2])
			doRemoveCreature(itemEx.uid)
			doSendMagicEffect(toPosition, CONST_ME_POFF)
            doRemoveItem(item.uid, 1)
		return true
		end
		end
		end

Actions.xml
XML:
			<!-- mount system  -->
	<action itemid="13238" event="script" value="mount.lua"/>
	<action itemid="5907" event="script" value="mount.lua"/>
	<action itemid="13229" event="script" value="mount.lua"/>
	<action itemid="13222" event="script" value="mount.lua"/>
	<action itemid="13225" event="script" value="mount.lua"/>
	<action itemid="13226" event="script" value="mount.lua"/>
	<action itemid="13236" event="script" value="mount.lua"/>
	<action itemid="13178" event="script" value="mount.lua"/>
	<action itemid="13224" event="script" value="mount.lua"/>

I´d suggest you edit the itemids as I am using others.
 
Back
Top