Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    113

Tudo que Vodkart postou

  1. Vodkart

    Eu Mesmo..

    vc é mto gato cara óóóoóó um negão dessa lá em casa td de bom dlç
  2. nome do seu script.lua v1 v2 actions.xml <action itemid="ID DO ITEM" script="nome do seu script.lua"/>
  3. Vodkart

    [Galeria] Annemotta

    Nessa já melhorou bastante a qualidade e a ilu boa analisando que vc começou essa semana já progrediu mto, novo picasso do ps depois quando tiver um tempo da umas lidas no tutorial de tipo que vai te ajudar bastante
  4. De nada, qualquer dúvida só postar
  5. Funcionando 100% qualquer dúvida postem edited adc 2 versão,v1 totalmente configurável... abraços
  6. 2 npc de presente: por trade por trade say abraços
  7. MESSAGE_FIRST = 18 MESSAGE_STATUS_CONSOLE_RED = MESSAGE_FIRST MESSAGE_EVENT_ORANGE = 19 MESSAGE_STATUS_CONSOLE_ORANGE = 20 MESSAGE_STATUS_WARNING = 21 MESSAGE_EVENT_ADVANCE = 22 MESSAGE_EVENT_DEFAULT = 23 MESSAGE_STATUS_DEFAULT = 24 MESSAGE_INFO_DESCR = 25 MESSAGE_STATUS_SMALL = 26 MESSAGE_STATUS_CONSOLE_BLUE = 27 MESSAGE_LAST = MESSAGE_STATUS_CONSOLE_BLUE MESSAGE_TYPES = { ["advance"] = MESSAGE_EVENT_ADVANCE, ["event"] = MESSAGE_EVENT_DEFAULT, ["white"] = MESSAGE_EVENT_DEFAULT, ["orange"] = MESSAGE_STATUS_CONSOLE_ORANGE, ["info"] = MESSAGE_INFO_DESCR, ["green"] = MESSAGE_INFO_DESCR, ["small"] = MESSAGE_STATUS_SMALL, ["blue"] = MESSAGE_STATUS_CONSOLE_BLUE, ["red"] = MESSAGE_STATUS_CONSOLE_RED, ["warning"] = MESSAGE_STATUS_WARNING, ["status"] = MESSAGE_STATUS_DEFAULT }
  8. é em channels.xml <channel id="9" name="Help" logged="yes"/> mude para <channel id="9" name="NOME DO SEU CHAT" logged="yes"/>
  9. http://www.xtibia.com/forum/topic/183233-npc-mount-seller-por-items-87/
  10. lib/functions.lua function getItemsFromList(items) -- by vodka local str = '' if table.maxn(items) > 0 then for i = 1, table.maxn(items) do str = str .. items[i][2] .. ' ' .. getItemNameById(items[i][1]) if i ~= table.maxn(items) then str = str .. ', ' end end end return str end function doRemoveItemsFromList(cid,items) -- by vodka local count = 0 if table.maxn(items) > 0 then for i = 1, table.maxn(items) do if getPlayerItemCount(cid,items[i][1]) >= items[i][2] then count = count + 1 end end end if count == table.maxn(items) then for i = 1, table.maxn(items) do doPlayerRemoveItem(cid,items[i][1],items[i][2]) end else return false end return true end Data/NPC Mount Seller.xml <?xml version="1.0"?> <npc name="Mount Seller" script="data/npc/scripts/buymount.lua" walkinterval="50000" floorchange="0"> <health now="100" max="100"/> <look type="129" head="95" body="116" legs="121" feet="115" addons="3"/> <parameters> <parameter key="message_greet" value="Hello |PLAYERNAME|.I have many {mounts} to sell for you!" /> </parameters> </npc> Data/Npc/script buymount.lua 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 (isPlayerPremiumCallback == nil or isPlayerPremiumCallback(cid) == true or parameters.premium == false) then if(parameters.level ~= nil and getPlayerLevel(cid) < parameters.level) then npcHandler:say('You must reach level ' .. parameters.level .. ' to buy this mount.', cid) elseif canPlayerRideMount(cid, parameters.mountid) then npcHandler:say('you already have this mount!', cid) elseif not doRemoveItemsFromList(cid,parameters.items) then npcHandler:say('Sorry You need '..getItemsFromList(parameters.items)..' to buy this mount!', cid) else doPlayerAddMount(cid, parameters.mountid) npcHandler:say('Here is your mount!', cid) npcHandler:resetNpc() end else npcHandler:say('I can only allow premium players to buy this mount.', cid) end npcHandler:resetNpc() return true end local mounts = { {"widow queen", items = {{2124,1},{2393,2}}, mountid = 1, level = 10, premium = false}, {"racing bird", items = {{2494,1},{2393,2}}, mountid = 2, level = 15, premium = true}, {"mounts", 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}!"} } for i = 1, #mounts do local get = mounts[i] if type(get.items) == "table" then local node = keywordHandler:addKeyword({get[1]}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "You want to buy the mount " .. get[1] .. " for "..getItemsFromList(get.items).." ?"}) node:addChildKeyword({"yes"}, AddMount, {items = get.items,mountid = get.mountid, level = get.level, premium = get.premium}) node:addChildKeyword({"no"}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Ok, then.", reset = true}) else keywordHandler:addKeyword({get[1]}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = get.text}) end end mounts = nil npcHandler:addModule(FocusModule:new()) configuração: local mounts = { {"widow queen", items = {{2124,1},{2393,2}}, mountid = 1, level = 10, premium = false}, {"racing bird", items = {{2494,1},{2393,2}}, mountid = 2, level = 15, premium = true}, {"mounts", 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}!"} } "nome da montaria" items = {} -- é os items que precisa ter trocar pela mount mountid -- é o id da montaria level -- level necessario para comprar premium -- se precisa ser premium para comprar text -- n precisa mexer,é para saber que montaria ele pode comprar,pode adicionar + nome na lista se quiser adicionando mount então por exemplo war bear: local mounts = { {"widow queen", items = {{2124,1},{2393,2}}, mountid = 1, level = 10, premium = false}, {"racing bird", items = {{2494,1},{2393,2}}, mountid = 2, level = 15, premium = true}, {"war bear", items = {{2123,2},{2124,1},{2173,1}}, mountid = 3, level = 20, premium = false}, {"mounts", 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}!"} }
  11. coloquei todos os códigos para chamar por 'tasktabble' editei lá o tópico, tenta usar agora
  12. no aguardo
  13. vai come merda rapaz, isso você deve ter aprendido no prézinho né?
  14. Tem coisa pior né, exemplo você e gabriel vão lá pro baile funk passar o pente nas neguinhas do cabelo duro nem, agente passa o pente nas gostosa q fica esfregando o cu no nosso pau, ao contrario de vc q a unica coisa q esfrega no seu pau e sua mao ta bom mané falar é fácil, nem de casa deve sair... mlk troxa msm, vc tem oq? 10 ou 11 anos? amanha tem tv globinho... acorda cedo pra n perde
  15. Pow cara é verdade, mas é que a sua mãe é ciumenta demais, e ela não divide a cama com ninguém, mais eu tentei... a atitude é que conta
  16. Tem coisa pior né, exemplo você e gabriel vão lá pro baile funk passar o pente nas neguinhas do cabelo duro
  17. concerteza nao é falar q tenho 602 de rep no x tibia e q sou semi Deus fora isso o velho charme e o papo, a arte da sedução concerteza? analfabeto escroto. E com certeza o velho charme e o papo da arte da sedução você não tem, se não, não estaria aqui, além disso é mais fácil eu falar pra uma mina que tenho 602 rep do que falar que moro numa favela e sou vida loka
  18. tenho uma dúvida, quais os tipos de medicamentos que vocês usam para levarem elas para cama? Porque nenhuma mulher em sã consciência, por mais feia que for iria sair com dois merdinhas feito gabriel e brene
  19. melhor não usar seu pênis
  20. é porque você mudou o nome da tabela né? o nome da tabela certo é "TaskTabble" em maiúsculo,se você chamar por "tasktabble" não vai achar a tabela mesmo, ai retorna esse erro aí de cima /\
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...