Postado Julho 2, 2014 11 anos Bom dia galera, Seguinte meu serve tem um sistema vip e nele só esta conseguindo por addon ou usar o addon doll quem tem dias vip, como faço para quem é free poder usar addon doll e consiguir falar com os npcs e por addons também?
Postado Julho 2, 2014 11 anos Autor Onde faço a alteração? para free usar tbm ele? Addon Doll female = { ["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}, ["warmaster"]={336}, ["wayfarer"]={366}} male = { ["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}} msg = {"Addon nao encontrado!", "Voce não o tem o Addon Doll!", "Falta parametros!", "Você recebeu seu addon!"} -- Mensagems itemID = 9693 -- ITEM function onSay(cid, words, param)if (not isPremium(cid)) then doPlayerSendCancel(cid, "Desculpe, apenas jogadores premium account podem usar addon dolls!.") return TRUE end if(getPlayerItemCount(cid, itemID) > 0) then if(param ~= "" and male[param] and female[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, female[param][1], 3) else doPlayerAddOutfit(cid, male[param][1], 3) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1]) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2]) end end Npc <?xml version="1.0" encoding="UTF-8"?> <npc name="Hanna" script="data/npc/scripts/addons/citizen2.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="136" head="113" body="65" legs="0" feet="96" addons="2"/> <parameters> <parameter key="message_greet" value="Oh, please come in, |PLAYERNAME|. What do you need? I have {feather hat} of citizen outfit."/> <parameter key="message_farewell" value="Good bye."/> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="job;" /> <parameter key="keyword_reply1" value="I am a jeweler. Maybe you want to have a look at my wonderful offers." /> <parameter key="module_shop" value="1"/> <parameter key="shop_buyable" value="white pearl,2143,760;black pearl,2144,780;small topaz,9970,700;small diamond,2145,900;small sapphire,2146,750;small rubies,2147,750;small emerald,2149,750;small amethyst,2150,800;golden amulet,2130,6600;ruby necklace,2133,3560;wedding ring,2121,990;bronze goblet,5807,2000;golden goblet,5805,5000;silver goblet,5806,3000;" /> <parameter key="shop_sellable" value="silver brooch,2134,150;crystal ring,2124,90;white pearl,2143,160;black pearl,2144,280;small topaz,9970,200;small diamond,2145,300;small sapphire,2146,250;small rubies,2147,250;small emerald,2149,250;small amethyst,2150,200;gold ingot,9971,5000;wedding ring,2121,100;giant shimmering pearl,7633,3000;giant shimmering pearl,7632,3000" /> </parameters> </npc>
Postado Julho 2, 2014 11 anos Substitua por esse female = { ["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}, ["warmaster"]={336}, ["wayfarer"]={366}} male = { ["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}} msg = {"Addon nao encontrado!", "Voce não o tem o Addon Doll!", "Falta parametros!", "Você recebeu seu addon!"} -- Mensagems itemID = 9693 -- ITEM return TRUE end if(getPlayerItemCount(cid, itemID) > 0) then if(param ~= "" and male[param] and female[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, female[param][1], 3) else doPlayerAddOutfit(cid, male[param][1], 3) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1]) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2]) end end | TFS 0.4 DEV | Ajudei você ? retribua a ajuda com uma Reputação positiva " Se a sua vida for a melhor coisa que já te aconteceu, acredite, você tem mais sorte do que pode imaginar. "
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.