Blackbuster
Member
- Joined
- Aug 26, 2007
- Messages
- 76
- Reaction score
- 16
For the Noobs like me , who can't get mounts done in theforgottenserver-v0.2.15 mystic spirit for tibia 9.86. [distro doesn't come up with these codes]
first of all open your actions.xml
add this:
Then create a new lua , using notepad like me.
To find the mount id open you XML map and open mounts.xml
Your mount id is 1.
This is the basic , a player that uses the item wil recieve the mount.
If you want to add a magic effect by using or disapearing of the item you have to add that to the lua script.
hope i can help someone out. couldn't find a working script on OTland.
Blackbuster
first of all open your actions.xml
add this:
Code:
<action itemid="[itemid]" script="other/mountname.lua"/>
Then create a new lua , using notepad like me.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == [itemid] then
doPlayerAddMount(cid, [mountid])
else
doSendMagicEffect(fromPosition, CONST_ME_SOUND_YELLOW) <<---- could be any effect doesn't realy matther-->>
end
return TRUE
end
To find the mount id open you XML map and open mounts.xml
Code:
<mount id="1" clientid="368" name="Widow Queen" speed="20" premium="no" />
This is the basic , a player that uses the item wil recieve the mount.
If you want to add a magic effect by using or disapearing of the item you have to add that to the lua script.
hope i can help someone out. couldn't find a working script on OTland.
Blackbuster