1
[Talkactions] Addondoll para TFS 0.3.5 hasta 0.4 el Miér Ene 30, 2019 2:21 am
[Adm] SevuOT
![[Adm] SevuOT](https://2img.net/u/2712/30/40/04/avatars/10743-22.jpg)
Miembro

abren talkaction.xml y pegan esto:
- Código:
<talkaction words="!addondoll" event="script" value="addondoll.lua"/>
guardan y crean un archivo lua el cual deben cambiarle el nombre a "addondoll.lua" y lo abren y pegan este codigo en el:
- Código:
local femaleOutfits = {
["citizen"] = { 136 },
["hunter"] = { 137 },
["mage"] = { 138 },
["knight"] = { 139 },
["nobleman"] = { 140 },
["summoner"] = { 141 },
["warrior"] = { 142 },
["barbarian"] = { 147 },
["druid"] = { 148 },
["wizard"] = { 149 },
["oriental"] = { 150 },
["pirate"] = { 155 },
["assassin"] = { 156 },
["beggar"] = { 157 },
["shaman"] = { 158 },
["norsewoman"] = { 252 },
["nightmare"] = { 269 },
["jester"] = { 270 },
["brotherhood"] = { 279 },
["demonhunter"] = { 288 },
["yalaharian"] = { 324 }
}
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 },
["norsewoman"] = { 251 },
["nightmare"] = { 268 },
["jester"] = { 273 },
["brotherhood"] = { 278 },
["demonhunter"] = { 289 },
["yalaharian"] = { 325 }
}
function onSay(cid, words, param)
local outfitName = string.lower(param)
if string.len(outfitName) == 0 then
return doPlayerSendCancel(cid, "The command requires 1 parameter.")
end
local dollCount = getPlayerItemCount(cid, 8982)
if dollCount == 0 then
return doPlayerSendCancel(cid, "You need a addondoll.")
end
local outfitList = getPlayerSex(cid) == 0 and femaleOutfits or maleOutfits
local outfitId = outfitList[outfitName]
if not outfitId then
return doPlayerSendCancel(cid, "The name of the outfit does not exist.")
end
if canPlayerWearOutfit(cid, outfitId[1], 3) then
return doPlayerSendCancel(cid, string.format("You already have the %s outfit.", outfitName))
end
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
doPlayerRemoveItem(cid, 8982, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string.format("You have obtained the complete %s outfit.", outfitName))
doPlayerAddOutfit(cid, outfitId[1], 3)
return true
end
guardan y listo, ya tienen su nuevo comando para su ot server.
solo deben escribir la palabra !addondoll outfit name
name: nombre del outfit
por ejemplo: !addondoll mage
funciona 100% bien.
Recuerden Solo TFS 0.3.5 - 0.4

Si tu cuenta de PayPal no esta verificada no importara, igual aceptan pagos con cuentas no verificadas.
![[Talkactions] Addondoll para TFS 0.3.5 hasta 0.4 TRJEB8aSRYK5IulEU6ilJw](https://2img.net/image.prntscr.com/image/TRJEB8aSRYK5IulEU6ilJw.png)