Estou sendo um chato ao falar com ironia, reconheço... desculpe, mas minha apologia com Barbie World é um elogio, tudo bacana, bonito e etc, n pense q estou zuando, pois adimiro o trabalho de vcs...
Quanto as addons dos Wayfarer, e os dois novos Outfits, eu consegui usa-las com o script q ja possuia e o distro q o comedinhas me enviou semana passada, as mounts vc pode por um script q o npc n sumone o bixo, e sim troque itens ou money pela mount
Tente usar no NPC pra Addons, aqui deu certo
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
npcHandler:setMessage(MESSAGE_GREET, "Greetings |PLAYERNAME|. Will you help me? If you do, I'll reward you with nice addons! Just say {addons} or {help} if you don't know what to do.")
function playerBuyAddonNPC(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if (parameters.confirm ~= true) and (parameters.decline ~= true) then
if(getPlayerPremiumDays(cid) == 0) and (parameters.premium == true) then
npcHandler:say('Sorry, but this addon is only for premium plfayers!', cid)
npcHandler:resetNpc()
return true
end
if (getPlayerStorageValue(cid, parameters.storageID) ~= -1) then
npcHandler:say('You already have this addon!', cid)
npcHandler:resetNpc()
return true
end
local itemsTable = parameters.items
local items_list = ''
if table.maxn(itemsTable) > 0 then
for i = 1, table.maxn(itemsTable) do
local item = itemsTable[i]
items_list = items_list .. item[2] .. ' ' .. getItemNameById(item[1])
if i ~= table.maxn(itemsTable) then
items_list = items_list .. ', '
end
end
end
local text = ''
if (parameters.cost > 0) and table.maxn(parameters.items) then
text = items_list .. ' and ' .. parameters.cost .. ' gp'
elseif (parameters.cost > 0) then
text = parameters.cost .. ' gp'
elseif table.maxn(parameters.items) then
text = items_list
end
npcHandler:say('Did you bring me ' .. text .. ' for ' .. keywords[1] .. '?', cid)
return true
elseif (parameters.confirm == true) then
local addonNode = node:getParent()
local addoninfo = addonNode:getParameters()
local items_number = 0
if table.maxn(addoninfo.items) > 0 then
for i = 1, table.maxn(addoninfo.items) do
local item = addoninfo.items[i]
if (getPlayerItemCount(cid,item[1]) >= item[2]) then
items_number = items_number + 1
end
end
end
if(getPlayerMoney(cid) >= addoninfo.cost) and (items_number == table.maxn(addoninfo.items)) then
doPlayerRemoveMoney(cid, addoninfo.cost)
if table.maxn(addoninfo.items) > 0 then
for i = 1, table.maxn(addoninfo.items) do
local item = addoninfo.items[i]
doPlayerRemoveItem(cid,item[1],item[2])
end
end
doPlayerAddOutfit(cid, addoninfo.outfit_male, addoninfo.addon)
doPlayerAddOutfit(cid, addoninfo.outfit_female, addoninfo.addon)
setPlayerStorageValue(cid,addoninfo.storageID,1)
npcHandler:say('Here you are.', cid)
else
npcHandler:say('You do not have needed items or cash!', cid)
end
npcHandler:resetNpc()
return true
elseif (parameters.decline == true) then
npcHandler:say('Not interested? Maybe other addon?', cid)
npcHandler:resetNpc()
return true
end
return false
end
local noNode = KeywordNode:new({'no'}, playerBuyAddonNPC, {decline = true})
local yesNode = KeywordNode:new({'yes'}, playerBuyAddonNPC, {confirm = true})
-- citizen (done)
local outfit_node = keywordHandler:addKeyword({'first citizen addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5878,5}}, outfit_female = 136, outfit_male = 128, addon = 1, storageID = 999001})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second citizen addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{2480,1}}, outfit_female = 136, outfit_male = 128, addon = 2, storageID = 999002})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- hunter (done)
local outfit_node = keywordHandler:addKeyword({'first hunter addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{2455,1}, {5948,20}, {5876,20}}, outfit_female = 137, outfit_male = 129, addon = 1, storageID = 999003})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second hunter addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5875,1}, {2195,5}}, outfit_female = 137, outfit_male = 129, addon = 2, storageID = 999004})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- knight (done)
local outfit_node = keywordHandler:addKeyword({'first knight addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5880,20}, {2393,1}}, outfit_female = 139, outfit_male = 131, addon = 1, storageID = 999005})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second knight addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5893,10}}, outfit_female = 139, outfit_male = 131, addon = 2, storageID = 999006})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- mage (done)
local outfit_node = keywordHandler:addKeyword({'first mage addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{2182,1}, {2186,1}, {2185,1}, {8911,1}, {2181,1}, {2183,1}, {2190,1}, {2191,1}, {2188,1}, {8921,1}, {2189,1}, {2187,1}, {2392,10}, {5809,1}}, outfit_female = 141, outfit_male = 130, addon = 1, storageID = 999007})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second mage addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5903,1}}, outfit_female = 141, outfit_male = 130, addon = 2, storageID = 999008})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- summoner (done)
local outfit_node = keywordHandler:addKeyword({'first summoner addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5958,1}}, outfit_female = 138, outfit_male = 133, addon = 1, storageID = 999009})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second summoner addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5883,10}, {5911,20}, {5922,20}, {5879,100}, {5882,10}, {5881,20}, {2392,5}, {5905,3}}, outfit_female = 138, outfit_male = 133, addon = 2, storageID = 999010})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- barbarian (done)
local outfit_node = keywordHandler:addKeyword({'first barbarian addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5880,30}, {2393,1}, {5893,30}, {5876,20}}, outfit_female = 147, outfit_male = 143, addon = 1, storageID = 999011})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second barbarian addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5911,25}, {5910,25}, {2498,2}, {2475,4}, {9735,4}, {5879,100}}, outfit_female = 147, outfit_male = 143, addon = 2, storageID = 999012})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- druid (done)
local outfit_node = keywordHandler:addKeyword({'first druid addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5930,1}}, outfit_female = 148, outfit_male = 144, addon = 1, storageID = 999013})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second druid addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5906,40}, {12328,1}}, outfit_female = 148, outfit_male = 144, addon = 2, storageID = 999014})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- nobleman (done)
local outfit_node = keywordHandler:addKeyword({'first nobleman addon'}, playerBuyAddonNPC, {premium = true, cost = 150000, items = {}, outfit_female = 140, outfit_male = 132, addon = 1, storageID = 999015})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second nobleman addon'}, playerBuyAddonNPC, {premium = true, cost = 150000, items = {}, outfit_female = 140, outfit_male = 132, addon = 2, storageID = 999016})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- oriental (done)
local outfit_node = keywordHandler:addKeyword({'first oriental addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5945,1}}, outfit_female = 150, outfit_male = 146, addon = 1, storageID = 999017})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second oriental addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5883,10}, {5895,10}, {2195,2}, {5912,10}}, outfit_female = 150, outfit_male = 146, addon = 2, storageID = 999018})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- warrior (done)
local outfit_node = keywordHandler:addKeyword({'first warrior addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5899,50}, {5925,20}, {10020,1}}, outfit_female = 142, outfit_male = 134, addon = 1, storageID = 999019})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second warrior addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5880,20}}, outfit_female = 142, outfit_male = 134, addon = 2, storageID = 999020})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- wizard (done)
local outfit_node = keywordHandler:addKeyword({'first wizard addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5922,40}}, outfit_female = 149, outfit_male = 145, addon = 1, storageID = 999021})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second wizard addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{2536,1}, {2492,1}, {2488,1}, {2123,1}}, outfit_female = 149, outfit_male = 145, addon = 2, storageID = 9022})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- assassin (done)
local outfit_node = keywordHandler:addKeyword({'first assassin addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5912,20}, {5910,20}, {5911,20}, {5913,20}, {5914,20}, {5909,20}, {5879,100}}, outfit_female = 156, outfit_male = 152, addon = 1, storageID = 9023})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second assassin addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5804,1}, {5930,5}, {7404,10}, {5925,40}}, outfit_female = 156, outfit_male = 152, addon = 2, storageID = 9024})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- beggar (done)
local outfit_node = keywordHandler:addKeyword({'first beggar addon'}, playerBuyAddonNPC, {premium = true, cost = 20000, items = {{5921,5}, {5913,5}}, outfit_female = 157, outfit_male = 153, addon = 1, storageID = 9025})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second beggar addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{6107,1}}, outfit_female = 157, outfit_male = 153, addon = 2, storageID = 9026})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- pirate (done)
local outfit_node = keywordHandler:addKeyword({'first pirate addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{6098,5}, {6126,5}, {6097,5}}, outfit_female = 155, outfit_male = 151, addon = 1, storageID = 9027})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second pirate addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{6101,1}, {6102,1}, {6100,1}, {6099,1}}, outfit_female = 155, outfit_male = 151, addon = 2, storageID = 9028})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- shaman (done)
local outfit_node = keywordHandler:addKeyword({'first shaman addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{3967,1}, {5883,10}, {5881,5}}, outfit_female = 158, outfit_male = 154, addon = 1, storageID = 9029})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second shaman addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{3966,5}, {5015,1}}, outfit_female = 158, outfit_male = 154, addon = 2, storageID = 9030})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- norseman (done)
local outfit_node = keywordHandler:addKeyword({'first norseman addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{7290,5}}, outfit_female = 252, outfit_male = 251, addon = 1, storageID = 9031})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second norseman addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{7290,10}}, outfit_female = 252, outfit_male = 251, addon = 2, storageID = 9032})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- jester (done)(custom)
local outfit_node = keywordHandler:addKeyword({'first jester addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5912,2}, {5913,2}, {5914,2}, {5909,2}}, outfit_female = 270, outfit_male = 273, addon = 1, storageID = 9033})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second jester addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5912,1}, {5910,1}, {5911,1}, {5909,1}, {5879,1}}, outfit_female = 270, outfit_male = 273, addon = 2, storageID = 9034})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- demonhunter (done)(custom)
local outfit_node = keywordHandler:addKeyword({'first demonhunter addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5905,3}, {5906,5}, {6500,10}, {11221,5}, {10585,10}}, outfit_female = 288, outfit_male = 289, addon = 1, storageID = 9035})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second demonhunter addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{6548,1}}, outfit_female = 288, outfit_male = 289, addon = 2, storageID = 9036})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- nightmare (done)(custom)
local outfit_node = keywordHandler:addKeyword({'first nightmare addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{6500,30}, {11199,1}}, outfit_female = 269, outfit_male = 268, addon = 1, storageID = 9037})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second nightmare addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{6500,50}, {6391,1}, {2414,1}}, outfit_female = 269, outfit_male = 268, addon = 2, storageID = 9038})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- brotherhood (done)(custom)
local outfit_node = keywordHandler:addKeyword({'first brotherhood addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{6500,30}, {8702,1}}, outfit_female = 279, outfit_male = 278, addon = 1, storageID = 9039})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second brotherhood addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{6500,30}, {10566,2}, {10562,2}}, outfit_female = 279, outfit_male = 278, addon = 2, storageID = 9040})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- warmaster (done)(custom)
local outfit_node = keywordHandler:addKeyword({'first warmaster addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{11326,5}, {11330,5}, {11332,5}, {11334,5}}, outfit_female = 336, outfit_male = 335, addon = 1, storageID = 9042})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second warmaster addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{10556,2}, {11328,2}, {5876,5}, {11301,1}, {11299,1}}, outfit_female = 336, outfit_male = 335, addon = 2, storageID = 9043})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- wayfarer (done)(custom)
local outfit_node = keywordHandler:addKeyword({'first wayfarer addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{12657,1}}, outfit_female = 367, outfit_male = 366, addon = 1, storageID = 9044})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second wayfarer addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{12656,1}}, outfit_female = 367, outfit_male = 366, addon = 2, storageID = 9045})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- elementalist (done)(custom)
local outfit_node = keywordHandler:addKeyword({'first elementalist addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{12657,1}}, outfit_female = 367, outfit_male = 366, addon = 1, storageID = 9046})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second elementalist addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{12656,1}}, outfit_female = 367, outfit_male = 366, addon = 2, storageID = 9047})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
-- afflicted (done)(custom)
local outfit_node = keywordHandler:addKeyword({'first afflicted addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{12657,1}}, outfit_female = 367, outfit_male = 433, addon = 1, storageID = 9048})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second afflicted addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{12656,1}}, outfit_female = 367, outfit_male = 432, addon = 2, storageID = 9049})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
keywordHandler:addKeyword({'addons'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can give you citizen, hunter, knight, mage, nobleman, summoner, warrior, barbarian, druid, wizard, oriental, pirate, assassin, beggar, shaman, norseman, nightmare, jester, yalaharian, wayfarer, warmaster, demonhunter and brotherhood addons.'})
keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To buy the first addon say \'first NAME addon\', for the second addon say \'second NAME addon\'.'})
npcHandler:addModule(FocusModule:new())
E para mounts,
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
function AddMount(cid, message, keywords, parameters, node) --by vodka
if(not npcHandler:isFocused(cid)) then
return false
end
if parameters.premium == true and not isPremium(cid) then
return true,npcHandler:say('Sorry,Only premium members buy this mount!', cid)
elseif not doPlayerRemoveMoney(cid, parameters.price) then
return true,npcHandler:say('Sorry You need '..parameters.price..' gps to buy this mount!', cid)
end
doPlayerAddMount(cid, parameters.mount)
npcHandler:say('Here is your mount!', cid)
npcHandler:resetNpc()
return true
end
keywordHandler:addKeyword({'mounts'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell these mounts: {widow queen},{racing bird},{war Bear},{black sheep},{midnight panther},{draptor},{titanica},{tin lizzard}.{blazebringer},{rapid boar},{stampor} or {undead cavebear}!'})
local node1 = keywordHandler:addKeyword({'widow queen'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount widow queen?'})
node1:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 1,premium = false})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node2 = keywordHandler:addKeyword({'racing bird'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount racing bird'})
node2:addChildKeyword({'yes'}, AddMount, {price = 20000,mount = 2,premium = true})
node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node3 = keywordHandler:addKeyword({'war bear'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount war Bear'})
node3:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 3,premium = false})
node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node4 = keywordHandler:addKeyword({'black sheep'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount black sheep?'})
node4:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 4,premium = false})
node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node5 = keywordHandler:addKeyword({'midnight panther'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount midnight panther?'})
node5:addChildKeyword({'yes'}, AddMount, {price = 20000,mount = 5,premium = true})
node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node6 = keywordHandler:addKeyword({'draptor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount draptor?'})
node6:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 6,premium = true})
node6:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node7 = keywordHandler:addKeyword({'titanica'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount titanica?'})
node7:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 7,premium = true})
node7:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node8 = keywordHandler:addKeyword({'tin lizzard'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount tin lizzard?'})
node8:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 8,premium = true})
node8:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node9 = keywordHandler:addKeyword({'blazebringer'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount blazebringer?'})
node9:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 9,premium = true})
node9:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node10 = keywordHandler:addKeyword({'rapid boar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount rapid boar?'})
node10:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 10,premium = false})
node10:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node11 = keywordHandler:addKeyword({'stampor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount stampor?'})
node11:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 11,premium = true})
node11:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node12 = keywordHandler:addKeyword({'undead cavebear'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount undead cavebear?'})
node12:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 12,premium = true})
node12:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node13 = keywordHandler:addKeyword({'kongra'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount kongra?'})
node13:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 23,premium = true})
node13:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node14 = keywordHandler:addKeyword({'maqui'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount kongra?'})
node14:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 27,premium = true})
node14:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node15 = keywordHandler:addKeyword({'fuck'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount kongra?'})
node15:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 28,premium = true})
node15:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
npcHandler:addModule(FocusModule:new())
Ambos nao estao devidamente ajustados, mas ja da pra tirar uma base e talvez funcione, espero ter ajudado









info
Grupo: Campones
Registrado: 30/06/10
Posts: 42
Reputação: +4
Char no Tibia: No Info
Da meio um dasanimo de houvir isso hahaha mais tudo bem to fazendo pra quem ta apoiando entao vamos as noticias diarias sobre o desenvolvimento:
3 Terriveis bugs nao nos deixam lançar o server:
1° A TFS Atual nao conssegue ler com sua configuraçao geral o NPC que vende addons (ele vende todos mais nao vende Wayfarer,Afflcted e elementalist addon) os addons nao vao cair do céu temos que colocalos para os players consseguirem de algun jeito.
2° De novo a TFS surpreende ao nao consseguir ler corretamente o spells(magias) algumas magias estao dando debug porque o distro nao suporta. Porem as magias estao 100% incluindo as 8.7 que sairam ja testadas.
3°O Npc que sumona o animal pra voce domar nao esta funcionando corretamente no distro da TFS mesmo apesar de min mesmo ter feito uma revisao ainda nao esta funcionando.
Ou seja. . .
A culpa nao é nóssa o distro nao esta lendo corretamente.
Mesmo sem o map editor consseguimos ensserir um mapa unico (xedegux) com ao todo 11 cidades,150+ NPC's, Todos os monstros incluindo os nóvos (8.7, 9.10)revisado 100% como no global.
Como um membro perguntou acima todas as funçoes como globalevents,Mods,actions,talkations estao todas arrumadas e funcionando.
Nois arrumamos mais de 98 Erros de warning e fatal error que estava ocorrendo ao ligar o server agora esta ligando perfeitamente.
Querem mais o que?A gente fez milagre quase fizemos um 9.10 completo com mapa e quests incluindo POI,Anihilator e mais umas 200 quests funcionando perfeitamente.
Agora em vez de ficarem reclamando quéro ver um de voces que tanto reclaman criar um script desses 3 acimas que mencionei o erro, em vez de reclamar ajude.
Pra ser sincero na verdade tem 2 pessoas só criando esse server que ficou pronto em 2 semanas, eu e o comedinhass o pessoal da battle for azeroth ja estao ocupados com outro projeto o WoW Cataclysm server, e os outros só deram uma mao meio por fóra e acabaram que nao resolveram nada, nao é faciu 2 pessoas fazer um server desse.
Isso é uma falta de sacanagem tremenda.
Edit:
Eu garanto que ao resolver esses 3 bugs lanço o server, e se tiver algo mais atualizo depois pretendo arruma-los éssa semana.
E como um player perguntou acima esta funcionando tudo como no TFS Tfs0.3.6 sim e ainda mais coisas nóvas adicionadas como Mods. Na verdade nao estava e eu até penssei em deixar sem, mais vi a necessidade e corrigi os erros deles e criei nóvos scripts para todos.
NPC'S 100%(tirando o que vende montaria e o addoner que nao é culpa minha)
Actions Talkation e Globalevents 100%
Mods 100%
XML - archives e Lib Configuraçao 100%
Orbigado a todos que estao apoiando e esperando com calma até mais.
EMAIL para comunicaçao rapida: mauricio_kid-buu@hotmail.com