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

Your choice.
Code:
<action uniqueid="45001" script="mount_from_chest.lua"/>
<action actionid="45001" script="mount_from_chest.lua"/>
data/actions/scripts
Code:
local mount_id = 20 -- data/XML/mounts.xml

function onUse(player, item, fromPosition, target, toPosition, isHotkey)
   player:addMount(mount_id)
   return true
end
 
Your choice.
Code:
<action uniqueid="45001" script="mount_from_chest.lua"/>
<action actionid="45001" script="mount_from_chest.lua"/>
data/actions/scripts
Code:
local mount_id = 20 -- data/XML/mounts.xml

function onUse(player, item, fromPosition, target, toPosition, isHotkey)
   player:addMount(mount_id)
   return true
end

on the chest what shuld the action id be?
 
Back
Top