• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Mount Quest

This is the only mount script that I found that actually works. Thanks

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
        if item.itemid == 6390 then
            local pPos = getPlayerPosition(cid)
            doSendMagicEffect(pPos, 50)
                doPlayerAddMount(cid, 1) [color=red][U]<-- EDIT THIS FOR THE ID OF MOUNT THAT YOU WANT -->[/color][/U]
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You Have Purchased The Widow Queen Mount!")
        end
        return TRUE
end

You need to remove the part in the red though if it isn't working for you. If not you will get an error.
 
Last edited:
is there anyone who can make an option like if you already got the mount it says you already recieved this mount ?:)
Just add
Lua:
if getPlayerMount(cid) == 1 then
and make it return a cancel lol.
Not sure if the getPlayerMount function even exists but...
 
A fixed one that checks if you already did the quest (Not tested)
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (getPlayerStorageValue(cid, 4767) == EMPTY_STORAGE) then
		doSendMagicEffect(getCreaturePosition(cid), 12)
		doPlayerAddMount(cid, 1) -- Edit this to the mount id you would like to get when you use the item
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have been rewarded with a (mount name) for finishing the quest!") -- Edit the mount name then remove the brackets.
	else
		doPlayerSendTextMessage(cid,22,"You have already gained your new mount.")
        end
        return TRUE
end
I totaly scripted this by my self so it's your choice to give the thread starter the credits or to give them to me..
 
hi, i have this error in 9.31 - The Forgotten Server - Version 0.2.11.2 (Mystic Spirit) - R4:
[26/10/2011 01:09:15] Lua Script Error: [Action Interface]
[26/10/2011 01:09:15] data/actions/scripts/mounts/Black Sheep.lua:eek:nUse
[26/10/2011 01:09:15] luaDoPlayerAddMount(). There is no mount with the specified id.
[26/10/2011 01:09:15] stack traceback:
[26/10/2011 01:09:15] [C]: in function 'doPlayerAddMount'
[26/10/2011 01:09:15] data/actions/scripts/mounts/Black Sheep.lua:5: in function <data/actions/scripts/mounts/Black Sheep.lua:1>

Black Sheep.lua
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 6390 then
local pPos = getPlayerPosition(cid)
doSendMagicEffect(pPos, 50)
doPlayerAddMount(cid, 371)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have purchased the Black Sheep mount!")
end
return TRUE
end

mounts.xml
Code:
<mounts>
	<mount id="1" clientid="368" name="Widow Queen" speed="20" premium="yes" />
	<mount id="2" clientid="369" name="Racing Bird" speed="20" premium="yes" />
	<mount id="3" clientid="370" name="War Bear" speed="20" premium="yes" />
	<mount id="4" clientid="371" name="Black Sheep" speed="20" premium="yes" />
	<mount id="5" clientid="372" name="Midnight Panther" speed="20" premium="yes" />
	<mount id="6" clientid="373" name="Draptor" speed="20" premium="yes" />
	<mount id="7" clientid="374" name="Titanica" speed="20" premium="yes" />
	<mount id="8" clientid="375" name="Tin Lizzard" speed="20" premium="yes" />
	<mount id="9" clientid="376" name="Blazebringer" speed="20" premium="yes" />
	<mount id="10" clientid="377" name="Rapid Boar" speed="20" premium="yes" />

</mounts>


actions.xml
Code:
<!-- Mounts -->
	<action uniqueid="2600" script="mounts/Widow Queen.lua"/>
	<action uniqueid="2601" script="mounts/Racing Bird.lua"/>
	<action uniqueid="2602" script="mounts/War Bear.lua"/>
	<action uniqueid="2603" script="mounts/Black Sheep.lua"/>
	<action uniqueid="2604" script="mounts/Midnight Panther.lua"/>
	<action uniqueid="2605" script="mounts/Draptor.lua"/>
	<action uniqueid="2606" script="mounts/Titanica.lua"/>
	<action uniqueid="2607" script="mounts/Tin Lizzard.lua"/>
	<action uniqueid="2608" script="mounts/Blazebringer.lua"/>
	<action uniqueid="2609" script="mounts/Rapid Boar.lua"/>

What I can do? I hope your help!! thx
 
Last edited:
All the Mounts to 9.40

data\XML\mounts.xml
XML:
<?xml version="1.0" encoding="UTF-8"?>
<mounts>
	<mount id="1" clientid="368" name="Widow Queen" speed="20" premium="yes" />
	<mount id="2" clientid="369" name="Racing Bird" speed="20" premium="yes" />
	<mount id="3" clientid="370" name="War Bear" speed="20" premium="yes" />
	<mount id="4" clientid="371" name="Black Sheep" speed="20" premium="yes" />
	<mount id="5" clientid="372" name="Midnight Panther" speed="20" premium="yes" />
	<mount id="6" clientid="373" name="Draptor" speed="20" premium="yes" />
	<mount id="7" clientid="374" name="Titanica" speed="20" premium="yes" />
	<mount id="8" clientid="375" name="Tin Lizzard" speed="20" premium="yes" />
	<mount id="9" clientid="376" name="Blazebringer" speed="20" premium="yes" />
	<mount id="10" clientid="377" name="Rapid Boar" speed="20" premium="yes" />
	<mount id="11" clientid="378" name="Stampor" speed="20" premium="yes" />
	<mount id="12" clientid="379" name="Undead Cavebear" speed="20" premium="yes" />
	<mount id="13" clientid="387" name="Donkey" speed="20" premium="yes" />
	<mount id="14" clientid="388" name="Tiger Slug" speed="20" premium="yes" />
	<mount id="15" clientid="389" name="Uniwheel" speed="20" premium="yes" />
	<mount id="16" clientid="390" name="Crystal Wolf" speed="20" premium="yes" />
	<mount id="17" clientid="392" name="Brown War Horse" speed="20" premium="yes" />
	<mount id="18" clientid="401" name="Kingly Deer" speed="20" premium="yes" />
	<mount id="19" clientid="402" name="Tamed Panda" speed="20" premium="yes" />
	<mount id="20" clientid="405" name="Dromedary" speed="20" premium="yes" />
	<mount id="21" clientid="406" name="King Scorpion" speed="20" premium="yes" />
	<mount id="22" clientid="421" name="Palomino Rented Horse" speed="20" premium="no" />
	<mount id="23" clientid="426" name="Fire War Horse" speed="20" premium="yes" />
	<mount id="24" clientid="427" name="Shadow Draptor" speed="20" premium="yes" />
	<mount id="25" clientid="437" name="Appaloosa Rented Horse" speed="20" premium="no" />
	<mount id="26" clientid="438" name="Brown Rented Horse" speed="20" premium="no" />
	<mount id="27" clientid="439" name="Ladybug" speed="20" premium="yes" />
	<mount id="28" clientid="440" name="Manta" speed="20" premium="yes" />
</mounts>

These are the proper names also
 
Back
Top Bottom