View difference between Paste ID: feWcsGxU and Ww34i11s
SHOW: | | - or go back to the newest paste.
1
local config = {
2
	item = 1234,
3
	mount = MountID
4
}
5
 
6
function onUse(cid, item, position, fromPosition)
7
	if isPlayer(cid) then
8
		if getPlayerItemCount(cid, config.item) == 0 then
9
			doCreatureSay(cid, "You don't have the required item!", TALKTYPE_ORANGE_1)
10
		else
11-
		doPlayerAddMount(cid, config.mount)
11+
			doPlayerAddMount(cid, config.mount)
12
		end
13
	end
14
end