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

Action Mount Quest

god arcanus

Arcanus
Joined
Jul 13, 2009
Messages
14
Reaction score
2
Create a file called "Widow Queen.lua" and copy this:
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
        if item.itemid == 6390 then
            local pPos = getPlayerPosition(cid)
            doSendMagicEffect(pPos, 50)
                doPlayerAddMount(cid, 1) <-- EDIT THIS FOR THE ID OF MOUNT THAT YOU WANT -->
						doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You Have Purchased The Widow Queen Mount!")
        end
        return TRUE
end

You can replace [doPlayerAddMount(cid, 1) for the mount id you want to get a different mount here is the list

XML:
<mounts>
	<mount id="1" clientid="368" name="Widow Queen" speed="10" />
	<mount id="2" clientid="369" name="Racing Bird" speed="20" />
	<mount id="3" clientid="370" name="War Bear" speed="10" />
	<mount id="4" clientid="371" name="Black Sheep" speed="10" />
	<mount id="5" clientid="372" name="Midnight Panther" speed="15" />
	<mount id="6" clientid="373" name="Draptor" speed="20" />
	<mount id="7" clientid="374" name="Titanica" speed="15" />
	<mount id="8" clientid="375" name="Tin Lizzard" speed="15" />
	<mount id="9" clientid="376" name="Blazebringer" speed="20" />
	<mount id="10" clientid="377" name="Rapid Boar" speed="10" />
	<mount id="11" clientid="378" name="Stampor" speed="20" />
	<mount id="12" clientid="379" name="Undead Cavebear" speed="20" />
</mounts>

Then "actions.xml" adds this:
XML:
	<!-- Addons -->
	<action uniqueid="2600" script="mounts/Widow Queen.lua"/>

This should be followed with the map editor to create a source as the image showing your ID is "6390" and add the uniqueid "2600" and that's it.

mounts.jpg


Now you can place sources in different locations (with varying uniqueid) around the map to go in search of your mount.

mounts.png


REP++
 
Last edited:
Translated To English

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
        if item.itemid == 6390 then
            local pPos = getPlayerPosition(cid)
            doSendMagicEffect(pPos, 50)
                doPlayerAddMount[COLOR=red](cid, 1)[/COLOR]
						doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You Have Purchased The Widow Queen Mount!")
        end
        return TRUE
end
 
What do I put in the Action ID in the item on the map editor? I put unique id 2600
 
works for 8.60?
Same question and if it will work with these mount creatures (looktypes) etc.Midnight Panther ?:)

#topic
Change:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
        if item.itemid == 6390 then
            local pPos = getPlayerPosition(cid)
            doSendMagicEffect(pPos, 50)
                doPlayerAddMount(cid, 1) <-- EDIT THIS FOR THE ID OF MOUNT THAT YOU WANT -->
						doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You Have Purchased The Widow Queen Mount!")
        end
        return TRUE
end
to
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
 if (item.itemid == 6390) then
  if (not getPlayerMount(cid, 1)) and (isPremium(cid)) then
   doSendMagicEffect(getCreaturePosition(cid), 50)
   doPlayerAddMount(cid, 1)
   doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You Have Purchased The Widow Queen Mount!')
  else
   doPlayerSendCancel(cid, 'You have this mount or you don\'t have premium!')
  end
 end
 return true
end
 
Back
Top