First
New Member
- Joined
- Sep 25, 2015
- Messages
- 1
- Reaction score
- 1
This is my first thread so sorry if I'm doing something wrong (as put on the wrong place), also I'm a Brazilian so, again, forgive me if I type something wrong.
I know these scripts are easy to make but it could help someone (btw Mount Doll has a bonus ).
These scripts are for Tibia 9.83 and below of course they work on every version, but with some bugs (as changed ids) and without all the content from the clients above 9.83.
Let's get started:
Well.. I know isn't sooo incredible that "all" option, but if you don't wanna to spend much time choosing a mount, you can have all!
Ps: Don't forget to add the lines above, on talkactions.xml or you'll not be able to acess the command
Pss: The "all" option doesn't needed an mount doll, just type !mount all or /mount all
Psss: To make these scripts work in new versions, find the outfits.xml (to addons) and mounts.xml (to mount doll) at the folder data/XML and add the IDs to the lua scripts. 0 = female, 1= male
Pssss: Save the lua with the name mountdoll and addondoll or change the "value" on talkactions to whatever you put as the name of the lua files
Psssss: I like cake.
Pssssss: And trains.
I know these scripts are easy to make but it could help someone (btw Mount Doll has a bonus ).
These scripts are for Tibia 9.83 and below of course they work on every version, but with some bugs (as changed ids) and without all the content from the clients above 9.83.
Let's get started:
Addon Doll
--Addon Doll = Jester Doll (9693), to change, just switch out the 9693's to your addon doll ItemID.--
function onSay(cid, words, param)
local femaleOutfits = {
["citizen"]={136},
["hunter"]={137},
["mage"]={138},
["knight"]={139},
["noblewoman"]={140},
["summoner"]={141},
["warrior"]={142},
["barbarian"]={147},
["druid"]={148},
["wizard"]={149},
["oriental"]={150},
["pirate"]={155},
["assassin"]={156},
["beggar"]={157},
["shaman"]={158},
["norse"]={252},
["nightmare"]={269},
["jester"]={270},
["brotherhood"]={279},
["demonhunter"]={288},
["yalaharian"]={324},
["warmaster"]={335},
["wayfarer"]={366},
["afflicted"]={431},
["elementalist"]={433},
["deepling"]={464},
["insectoid"]={466},
["entrepreneur"]={471},
["crystal warlord"]={513},
["soil guardian"]={514},
["demon"]={542}
}
local maleOutfits = {
["citizen"]={128},
["hunter"]={129},
["mage"]={130},
["knight"]={131},
["nobleman"]={132},
["summoner"]={133},
["warrior"]={134},
["barbarian"]={143},
["druid"]={144},
["wizard"]={145},
["oriental"]={146},
["pirate"]={151},
["assassin"]={152},
["beggar"]={153},
["shaman"]={154},
["norse"]={251},
["nightmare"]={268},
["jester"]={273},
["brotherhood"]={278},
["demonhunter"]={289},
["yalaharian"]={325},
["warmaster"]={336},
["wayfarer"]={367},
["afflicted"]={430},
["elementalist"]={432},
["deepling"]={463},
["insectoid"]={465},
["entrepreneur"]={472},
["crystal warlord"]={512},
["soil guardian"]={516},
["demon"]={541}
}
local msg = {"Command Require A Param..", "You dont have Addon Doll..", "Not A Good Param..", "Full Addon Set sucesfully added.."} --Text Use 'Simple Editing'
local param = string.lower(param)
if(getPlayerItemCount(cid, 9693) > 0) then
if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
doPlayerRemoveItem(cid, 9693, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
if(getPlayerSex(cid) == 0)then
doPlayerAddOutfit(cid, femaleOutfits[param][1], 3)
else
doPlayerAddOutfit(cid, maleOutfits[param][1], 3)
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
end
function onSay(cid, words, param)
local femaleOutfits = {
["citizen"]={136},
["hunter"]={137},
["mage"]={138},
["knight"]={139},
["noblewoman"]={140},
["summoner"]={141},
["warrior"]={142},
["barbarian"]={147},
["druid"]={148},
["wizard"]={149},
["oriental"]={150},
["pirate"]={155},
["assassin"]={156},
["beggar"]={157},
["shaman"]={158},
["norse"]={252},
["nightmare"]={269},
["jester"]={270},
["brotherhood"]={279},
["demonhunter"]={288},
["yalaharian"]={324},
["warmaster"]={335},
["wayfarer"]={366},
["afflicted"]={431},
["elementalist"]={433},
["deepling"]={464},
["insectoid"]={466},
["entrepreneur"]={471},
["crystal warlord"]={513},
["soil guardian"]={514},
["demon"]={542}
}
local maleOutfits = {
["citizen"]={128},
["hunter"]={129},
["mage"]={130},
["knight"]={131},
["nobleman"]={132},
["summoner"]={133},
["warrior"]={134},
["barbarian"]={143},
["druid"]={144},
["wizard"]={145},
["oriental"]={146},
["pirate"]={151},
["assassin"]={152},
["beggar"]={153},
["shaman"]={154},
["norse"]={251},
["nightmare"]={268},
["jester"]={273},
["brotherhood"]={278},
["demonhunter"]={289},
["yalaharian"]={325},
["warmaster"]={336},
["wayfarer"]={367},
["afflicted"]={430},
["elementalist"]={432},
["deepling"]={463},
["insectoid"]={465},
["entrepreneur"]={472},
["crystal warlord"]={512},
["soil guardian"]={516},
["demon"]={541}
}
local msg = {"Command Require A Param..", "You dont have Addon Doll..", "Not A Good Param..", "Full Addon Set sucesfully added.."} --Text Use 'Simple Editing'
local param = string.lower(param)
if(getPlayerItemCount(cid, 9693) > 0) then
if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
doPlayerRemoveItem(cid, 9693, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
if(getPlayerSex(cid) == 0)then
doPlayerAddOutfit(cid, femaleOutfits[param][1], 3)
else
doPlayerAddOutfit(cid, maleOutfits[param][1], 3)
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
end
Mount Doll with a "all" option
-- Script by DMLDR
function onSay(cid, words, param, channel)
local id =
{
["widow queen"] = 1,
["racing bird"]= 2,
["war bear"] = 3,
["black sheep"] = 4,
["midnight panther"] = 5,
["draptor"] = 6,
["titanica"] = 7,
["tin lizzard"] = 8,
["blazebringer"] = 9,
["rapid boar"] = 10,
["stampor"] = 11,
["undead cavebear"] = 12,
["donkey"] = 13,
["tiger slug"] = 14,
["uniwheel"] = 15,
["crystal wolf"] = 16,
["war horse"] = 17,
["kingly deer"] = 18,
["tamed panda"] = 19,
["dromedary"] = 20,
["king scorpion"] = 21,
["rented horse a"] = 22,
["fire war horse"] = 23,
["shadow draptor"] = 24,
["rented horse b"] = 25,
["rented horse c"] = 26,
["ladybug"] = 27,
["manta"] = 28 ,
["ironblight"] = 29,
["magma crawler"] = 30,
["dragonling"] = 31,
["gnarlhound"] = 32,
["red manta"] = 33,
["mechanical bird"] = 34,
["water buffalo"] = 35,
["all"] = 0
}
if (param == '') then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "How to use: !mount (mount name)")
return true
end
local mount = id[param:lower()]
if(param ~= "" or param ~= "all") then
if doPlayerRemoveItem(cid, 9693, 1) then
doPlayerAddMount(cid, mount)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You received your new mount!")
else
doPlayerSendCancel(cid, "You don't have a Mount Doll")
end
for id=0, 35, 1 do
if (param == 'all') then
mount= mount + 1
doPlayerAddMount(cid, mount)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You received all avaiable mounts.")
end
end
end
end
function onSay(cid, words, param, channel)
local id =
{
["widow queen"] = 1,
["racing bird"]= 2,
["war bear"] = 3,
["black sheep"] = 4,
["midnight panther"] = 5,
["draptor"] = 6,
["titanica"] = 7,
["tin lizzard"] = 8,
["blazebringer"] = 9,
["rapid boar"] = 10,
["stampor"] = 11,
["undead cavebear"] = 12,
["donkey"] = 13,
["tiger slug"] = 14,
["uniwheel"] = 15,
["crystal wolf"] = 16,
["war horse"] = 17,
["kingly deer"] = 18,
["tamed panda"] = 19,
["dromedary"] = 20,
["king scorpion"] = 21,
["rented horse a"] = 22,
["fire war horse"] = 23,
["shadow draptor"] = 24,
["rented horse b"] = 25,
["rented horse c"] = 26,
["ladybug"] = 27,
["manta"] = 28 ,
["ironblight"] = 29,
["magma crawler"] = 30,
["dragonling"] = 31,
["gnarlhound"] = 32,
["red manta"] = 33,
["mechanical bird"] = 34,
["water buffalo"] = 35,
["all"] = 0
}
if (param == '') then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "How to use: !mount (mount name)")
return true
end
local mount = id[param:lower()]
if(param ~= "" or param ~= "all") then
if doPlayerRemoveItem(cid, 9693, 1) then
doPlayerAddMount(cid, mount)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You received your new mount!")
else
doPlayerSendCancel(cid, "You don't have a Mount Doll")
end
for id=0, 35, 1 do
if (param == 'all') then
mount= mount + 1
doPlayerAddMount(cid, mount)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You received all avaiable mounts.")
end
end
end
end
<talkaction words="!addon;/addon" event="script" value="addondoll.lua"/>
<talkaction words="!mount;/mount" event="script" value="mountdoll.lua"/>
<talkaction words="!mount;/mount" event="script" value="mountdoll.lua"/>
Ps: Don't forget to add the lines above, on talkactions.xml or you'll not be able to acess the command
Pss: The "all" option doesn't needed an mount doll, just type !mount all or /mount all
Psss: To make these scripts work in new versions, find the outfits.xml (to addons) and mounts.xml (to mount doll) at the folder data/XML and add the IDs to the lua scripts. 0 = female, 1= male
Pssss: Save the lua with the name mountdoll and addondoll or change the "value" on talkactions to whatever you put as the name of the lua files
Psssss: I like cake.
Pssssss: And trains.
Addon Doll: by me
Mount Doll source: [ADM]Hulk (http://tibiaotmods.blogspot.com.br/2012/02/mount-doll.html)
and edited by me
Mount Doll source: [ADM]Hulk (http://tibiaotmods.blogspot.com.br/2012/02/mount-doll.html)
and edited by me
Last edited: