OtStrikers
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Action] Mount tutorial for 9.31 TFS!

2 posters

Go down

[Action] Mount tutorial for 9.31 TFS! Empty [Action] Mount tutorial for 9.31 TFS!

Post by Sacred Anlyest Thu Dec 22, 2011 5:32 pm

This will get you going on the way mounts work, This is a Quest type mount getting sytem, the only one I found to work.
Credits: God Arcanus of OTland - Mount Quest

Put this in your actions.xml

Code:
<!-- Mounts -->
   <action uniqueid="2601" script="mounts/Widow Queen.lua"/>
   <action uniqueid="2602" script="mounts/Racing Bird.lua"/>
   <action uniqueid="2603" script="mounts/War Bear.lua"/>
   <action uniqueid="2604" script="mounts/Black Sheep.lua"/>
   <action uniqueid="2605" script="mounts/Midnight Panther.lua"/>
   <action uniqueid="2606" script="mounts/Draptor.lua"/>
   <action uniqueid="2607" script="mounts/Titanica.lua"/>
   <action uniqueid="2608" script="mounts/Tin Lizzard.lua"/>
   <action uniqueid="2609" script="mounts/Blazebringer.lua"/>
   <action uniqueid="2610" script="mounts/Rapid Boar.lua"/>
   <action uniqueid="2611" script="mounts/Stampor.lua"/>
   <action uniqueid="2612" script="mounts/Undead Cavebear.lua"/>
   <action uniqueid="2613" script="mounts/Mule.lua"/>
   <action uniqueid="2614" script="mounts/Tiger Slug.lua"/>
   <action uniqueid="2615" script="mounts/Uniwheel.lua"/>
   <action uniqueid="2616" script="mounts/Crystal Wolf.lua"/>
   <action uniqueid="2617" script="mounts/Brown War Horse.lua"/>
   <action uniqueid="2618" script="mounts/Kingly Deer.lua"/>
   <action uniqueid="2619" script="mounts/Tamed Panda.lua"/>
   <action uniqueid="2620" script="mounts/Dromedary.lua"/>
   <action uniqueid="2621" script="mounts/Sandstone Scorpion.lua"/>
   <action uniqueid="2622" script="mounts/Brown n White Rented Horse.lua"/>
   <action uniqueid="2623" script="mounts/Fire War Horse.lua"/>
   <action uniqueid="2624" script="mounts/Grey n White Rented Horse.lua"/>
   <action uniqueid="2625" script="mounts/Brown Rented Horse.lua"/>

Make a lua file for each mount put in actions\scripts\mounts
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
        if item.itemid == 1353 then
            local pPos = getPlayerPosition(cid)
            doSendMagicEffect(pPos, 50)
                doPlayerAddMount(cid, 1)
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You Have The Widow Queen Mount!")
        end
        return TRUE
end

were it says: doPlayerAddMount(cid, 1)
change the cid, 1) to the mount number 1-25
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
        if item.itemid == 1353 then
            local pPos = getPlayerPosition(cid)
            doSendMagicEffect(pPos, 50)
                doPlayerAddMount(cid, 5)
                  doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You Have The Midnight Panther Mount!")
        end
        return TRUE
end

Midnight Panther Mount, notice the cid is 5.

Now you are all done, run your server, ctrl+click on the mossy stone you set as the uid, and wala you have the mount.
Right click on your character, set look, then set mount.

then right click on your character click mount

Credits go to god arcanus\OTLand!
Sacred Anlyest
Sacred Anlyest
Global Moderator

Profession :
  • Mapper
  • Scripter

Posts : 20
Reputation : 1
Join date : 2011-12-20
Age : 26
Location : Egypt

Back to top Go down

[Action] Mount tutorial for 9.31 TFS! Empty Re: [Action] Mount tutorial for 9.31 TFS!

Post by Amiroslo Fri Dec 23, 2011 4:07 pm

nice, thanks for sharing
Amiroslo
Amiroslo

Profession :
  • Mapper

Posts : 34
Reputation : 0
Join date : 2011-12-20
Age : 27
Location : Norway

http://paradiseot.hopto.org

Back to top Go down

[Action] Mount tutorial for 9.31 TFS! Empty Re: [Action] Mount tutorial for 9.31 TFS!

Post by Sacred Anlyest Fri Dec 23, 2011 5:24 pm

No problem! I hope that helped you!

Regards,
Sacred Anlyest
Sacred Anlyest
Sacred Anlyest
Global Moderator

Profession :
  • Mapper
  • Scripter

Posts : 20
Reputation : 1
Join date : 2011-12-20
Age : 26
Location : Egypt

Back to top Go down

[Action] Mount tutorial for 9.31 TFS! Empty Re: [Action] Mount tutorial for 9.31 TFS!

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum