Felipe Monteiro
Webmaster
My addon doll and my mount doll talkactions doesnt work in tfs 1.0, and i have no idea what is wrong, because it doesnt show any error on console. If someone can help me..
Addon Doll
Mount Doll
- - - Updated - - -
BUMP :x
- - - Updated - - -
I know tha error is in
But how do work it on tfs 1.0?
- - - Updated - - -
Someone ? BUMP
Addon Doll
Code:
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},
["norsewoman"]={252},
["nightmare"]={269},
["jester"]={270},
["brotherhood"]={279},
["demonhunter"]={288},
["yalaharian"]={324},
["warmaster"]={336},
["wayfarer"]={366},
["afflicted"]={431},
["elementalist"]={433},
["deepling"]={464},
["insectoid"]={466},
["red baron"]={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},
["norsewoman"]={251},
["nightmare"]={268},
["jester"]={273},
["brotherhood"]={278},
["demonhunter"]={289},
["yalaharian"]={325},
["warmaster"]={335},
["wayfarer"]={367},
["afflicted"]={430},
["elementalist"]={432},
["deepling"]={463},
["insectoid"]={465},
["red baron"]={472},
["crystal warlord"]={512},
["soil guardian"]={516},
["demon"]={541}
}
local msg = {"Digite novamente, algo está errado!", "Voce não tem addon doll!", "Tente outra vez, algo está errado!", "Seu Addon full foi adicionado!"}
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
Code:
function onSay(cid, words, param)
local mounts = {
["widow queen"] = {price = 0, id = 1},
["racing bird"] = {price = 0, id = 2},
["war bear"] = {price = 0, id = 3},
["black sheep"] = {price = 0, id = 4},
["midnight panther"] = {price = 0, id = 5},
["draptor"] = {price = 0, id = 6},
["titanica"] = {price = 0, id = 7},
["tin lizzard"] = {price = 0, id = 8},
["blazebringer"] = {price = 0, id = 9},
["rapid boar"] = {price = 0, id = 10},
["stampor"] = {price = 0, id = 11},
["undead cavebear"] = {price = 0, id = 12},
["donkey"] = {price = 0, id = 13},
["tiger slug"] = {price = 0, id = 14},
["uniwheel"] = {price = 0, id = 15},
["crystal wolf"] = {price = 0, id = 16},
["war horse"] = {price = 0, id = 17},
["kingly deer"] = {price = 0, id = 18},
["tamed panda"] = {price = 0, id = 19},
["dromedary"] = {price = 0, id = 20},
["scorpion king"] = {price = 0, id = 21},
["fire war horse"] = {price = 0, id = 23},
["shadow draptor"] = {price = 0, id = 24},
["lady bug"] = {price = 0, id = 27},
["manta ray"] = {price = 0, id = 28},
["ironblight"] = {price = 0, id = 29},
["magma crawler"] = {price = 0, id = 30},
["dragonling"] = {price = 0, id = 31},
["gnarlhound"] = {price = 0, id = 32},
["red manta"] = {price = 0, id = 33},
["mechanical bird"] = {price = 0, id = 34},
["water buffalo"] = {price = 0, id = 35},
["armoured scorpion"] = {price = 0, id = 36},
["armoured dragonling"] = {price = 0, id = 37},
["armoured cavebear"] = {price = 0, id = 38},
["the hellgrip"] = {price = 0, id = 39}
}
local msg = {"Você pode escolher qualquer montaria do servidor! basta olhar elas no nosso site!!", "Voce nao tem Mountdoll..", "Algo errado..", "Mount conquistado com susseso!.","Voce ja tem este mount"}
local param = string.lower(param)
local t = mounts[param]
if(getPlayerItemCount(cid, 13030) > 0) then
if(param ~= "" and t) then
if t and not getPlayerMount(cid, t.id) then
doPlayerRemoveItem(cid, 13030, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
doPlayerAddMount(cid, t.id)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[5])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
end
- - - Updated - - -
BUMP :x
- - - Updated - - -
I know tha error is in
Code:
if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
But how do work it on tfs 1.0?
- - - Updated - - -
Someone ? BUMP