Ir para conteúdo

Fausto32

Membro
  • Registro em

  • Última visita

Tudo que Fausto32 postou

  1. Fausto32 postou uma resposta no tópico em Suporte Tibia OTServer
    Mais na verdade Staff não aparece mesmo no rank '-' não deve aparecer e normal .
  2. Pode dizer o outro ai '
  3. Fausto32 postou uma resposta no tópico em Playground (Off-topic)
    Nome: Topicos bobos de usuarios famosos. Função: ter mais visualizações q o conteudo rox q vc levou 1 mês pra construir e postou u.u
  4. Fausto32 postou uma resposta no tópico em Playground (Off-topic)
    *----------*
  5. Fausto32 postou uma resposta no tópico em Playground (Off-topic)
    Nome: Arthurluna Função: Pagar de staff, dizer q tk não e para esse tipo de duvida e acusar topicos de plagio.
  6. Então poste plx o que a Anne passo link quebrado '-'
  7. Fausto32 postou uma resposta no tópico em Suporte Tibia OTServer
    Data/npc/Captain Breezelda.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Captain Breezelda" script="data/npc/scripts/Captain Breezelda.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="142" head="97" body="23" legs="28" feet="76" addons="2"/> <voices> <voice text="Passages to Carlin, Venore and Thais." interval2="100" margin="1" yell="no"/> </voices> <parameters> <parameter key="message_farewell" value="Bye." /> <parameter key="message_walkaway" value="Bye." /> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="name;svargrond;darashia;" /> <parameter key="keyword_reply1" value="My name is Breezelda." /> <parameter key="keyword_reply2" value="Other captains rarely visit this city." /> <parameter key="keyword_reply3" value="I'm sorry. We only sail to Cosmos City." /> <parameter key="message_greet" value="Welcome on board, |PLAYERNAME|. Where may I sail you today?"/> </parameters> </npc> Data/npc/scripts/Captain Breezelda.lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start 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 -- OTServ event handling functions end -- Don"t forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({"cosmos city"}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Do you seek a passage to Thais for " .. (getConfigInfo("freeTravel") and "free?" or "1000000 gold?")}) travelNode:addChildKeyword({"yes"}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 0, cost = 1000000, destination = {x=32310, y=32210, z=6} }) travelNode:addChildKeyword({"no"}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = "We would like to serve you some time."}) keywordHandler:addKeyword({"sail"}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Where do you want to go? To Thais, Carlin, or Venore."}) keywordHandler:addKeyword({"job"}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I am the captain of this ship."}) keywordHandler:addKeyword({"captain"}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I am the captain of this ship."}) npcHandler:addModule(FocusModule:new()) tá ae Só configurar a destinação pra onde vai ir isso ae '
  8. Data/npc sandra.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Sandra" script="data/npc/scripts/Sandra.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="140" head="115" body="95" legs="127" feet="76" addons="1"/> <voices> <voice text="Great spirit potions as well as health and mana potions in different sizes!" interval2="100" margin="1" yell="no"/> <voice text="If you need alchemical fluids like slime and blood, get them here." interval2="120" margin="1" yell="no"/> </voices> <parameters> <parameter key="message_greet" value="Hello |PLAYERNAME|, welcome to the fluid and potion shop of Edron."/> <parameter key="message_farewell" value="Good bye, |PLAYERNAME|, please come back soon."/> <parameter key="message_walkaway" value="Good bye, |PLAYERNAME|, please come back soon." /> <parameter key="message_sendtrade" value="Of course, just browse through my wares. By the way, if you'd like to join our bonus system for depositing flasks and vial, you have to tell me about that {deposit}." /> </parameters> </npc> \data\npc\scripts sandra.lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local Topic ={} 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 local shopModule = ShopModule:new() npcHandler:addModule(shopModule) function greetCallback(cid) Topic[cid] = 1 return true end function creatureSayCallback(cid, type, msg) -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself. if (not npcHandler:isFocused(cid)) then return false end if msgcontains(msg, 'vial') then npcHandler:say('We have a special offer right now for depositing vials. Are you interested in hearing it?', cid) Topic[cid] = 1 elseif msgcontains(msg, 'yes') and Topic[cid] == 1 then npcHandler:say('Great! I\'ve signed you up for our bonus for lottery {ticket}. From now on, you will have the chance to win the potion belt addon!', cid) Topic[cid] = 0 elseif msgcontains(msg, 'ticket') then npcHandler:say('Would you like to get a lottery ticket instead of the {deposit} for your vials.', cid) Topic[cid] = 1 elseif msgcontains(msg, 'deposit') and Topic[cid] == 1 then if getPlayerItemCount(cid, 7634) >= 100 or getPlayerItemCount(cid, 7635) >= 100 or getPlayerItemCount(cid, 7636) >= 100 then if doPlayerRemoveItem(cid, 7634, 100) or doPlayerRemoveItem(cid, 7635, 100) or doPlayerRemoveItem(cid, 7636, 100) then npcHandler:say('Here you are, good luck!', cid) doPlayerAddItem(cid, 5957, 1) else npcHandler:say('Sorry I need 100 empty vials from you for a lottery ticket', cid) Topic[cid] = 0 end else npcHandler:say('Sorry I need 100 empty vials from you for a lottery ticket', cid) Topic[cid] = 0 end end if msgcontains(msg, "belt" or "summoner") then if getPlayerItemCount(cid, 5958) >= 1 then npcHandler:say("Did you bring me a winning lottery ticket?", cid) Topic[cid] = 2 end elseif msgcontains(msg, "yes") and Topic[cid] == 2 then if not canPlayerWearOutfit(cid, (getPlayerSex(cid) == 0 and 138 or 133), 1) then if doPlayerRemoveItem(cid, 5958, 1) then npcHandler:say("Congratulations! Here is your new fluid belt.", cid) doPlayerAddOutfit(cid, (getPlayerSex(cid) == 0 and 138 or 133), 1) else npcHandler:say("Sorry, but you need a winning lottery ticket.", cid) Topic[cid] = 0 end else npcHandler:say("Sorry, but you can already wear this addon.", cid) Topic[cid] = 0 end elseif msgcontains(msg, 'no') then npcHandler:say('Ok thanks.', cid) Topic[cid] = 0 end return true end -------------------------------------------------SHOP--------------------------------------------------------- shopModule:addBuyableItem({'health potion'}, 7618, 45, 1, 'health potion') shopModule:addBuyableItem({'mana potion'}, 7620, 50, 1, 'mana potion') shopModule:addBuyableItem({'strong health'}, 7588, 100, 1, 'strong health potion') shopModule:addBuyableItem({'strong mana'}, 7589, 80, 1, 'strong mana potion') shopModule:addBuyableItem({'great health'}, 7591, 190, 1, 'great health potion') shopModule:addBuyableItem({'great mana'}, 7590, 120, 1, 'great mana potion') shopModule:addBuyableItem({'great spirit'}, 8472, 190, 1, 'great spirit potion') shopModule:addBuyableItem({'ultimate health'}, 8473, 310, 1, 'ultimate health potion') shopModule:addSellableItem({'normal potion flask', 'normal flask'}, 7636, 5, 'empty small potion flask') shopModule:addSellableItem({'strong potion flask', 'strong flask'}, 7634, 10, 'empty strong potion flask') shopModule:addSellableItem({'great potion flask', 'great flask'}, 7635, 15, 'empty great potion flask') shopModule:addBuyableItemContainer({'bp hp'}, 2000, 7618, 900, 1, 'backpack of health potions') shopModule:addBuyableItemContainer({'bp mp'}, 2001, 7620, 1000, 1, 'backpack of mana potions') shopModule:addBuyableItemContainer({'bp shp'}, 2000, 7588, 2000, 1, 'backpack of strong health potions') shopModule:addBuyableItemContainer({'bp smp'}, 2001, 7589, 1600, 1, 'backpack of strong mana potions') shopModule:addBuyableItemContainer({'bp ghp'}, 2000, 7591, 3800, 1, 'backpack of great health potions') shopModule:addBuyableItemContainer({'bp gmp'}, 2001, 7590, 2400, 1, 'backpack of great mana potions') shopModule:addBuyableItemContainer({'bp gsp'}, 1999, 8472, 3820, 1, 'backpack of great spirit potions') shopModule:addBuyableItemContainer({'bp uhp'}, 2000, 8473, 6200, 1, 'backpack of ultimate health potions') npcHandler:setCallback(CALLBACK_GREET, greetCallback) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Esse e o npc global mesmo vende potions e troca por lottery os vazios
  9. Fausto32 postou uma resposta no tópico em Playground (Off-topic)
    pqê ele saiu ? =[
  10. Tinha um rep ai na historia mais .. k era uma alavanca mesmo? só pra confirmar o mapa ..
  11. Na verdade não e um erro e um aviso '-' vai no RME e vai em Search UniquesID acha as duas ou mais Uniques q tão com essa id apaga uma c não serve pra nada ou muda no script Mais mano creio q e uma alavanca da poi no caso ai acho q conheco o mapa tinha a mesma unique duplicada k olha ae '
  12. Ahn? explica isso vey ..
  13. Como assim adicioonou novos itens? c num tá falando apenas em duplicar certas cids tá tentando adicionar spr's novas eh?
  14. Fausto32 postou uma resposta no tópico em Suporte Tibia OTServer
    Já c certificou q não e por mod ? .. ou apenas por talkaction .
  15. Então eu gostaria de saber como incluir a parte de abrir por talkaction tambem um evento não só por horario na global events help? Até abri um topico uma vez a muito tempo atras pra alguem fazer isso pra mim mais ngm c candidatou então quero aprender logo u.u no caso seria esse script mais tem outros q quero fazer isso também ..
  16. já pensso que pode não ter o item q vc busca? O.o
  17. tá ai uso esse perfeitamente . k
  18. Qual a diferença de trafego limitado pra ilimitado influencia em quê?
  19. VPS e compartilhado néh u.u normal cair ainda mais dessa config :C Hmm mais vou usar linux só pra garantir uma proteçãozinha a mais vô ver uns planos aqui e posto a diferença de Hosts Alguem ae sabe mim explicar a diferença de trafego ilimitado pra limitado?
  20. Credo o plano q quero 600 conto lá kk vi de 200 em outra O.o mais e o atendimento e suporte na hora de instalar o server ou algum problema relacionado ao dedicado tem ? e qual plano vc usa pra qual mapa ?
  21. @HelpMe! Scripters :x
  22. Então nunca contratei uma empresa de hospedagem e gostaria de saber tipo to planejando começar com um Plano de 8GB 1TB e 100Uplink minha duvida eh futuramente eu poderia evoluir esse plano ou teria q contratar outro ? e c puder vai ser o mesmo preço de contratar outro ou mais barato por eu já ter o meu ? e qual empresa vcs mim recomendam?
  23. Fausto32 postou uma resposta no tópico em Ouvidoria
    Tendi não O.o Como seria essa parceria ?
  24. Ok! No Aguardo ! Thx Two Day's Later Kd? O.o @Milesimo Up! PIedade \: HAUEIHui

Informação Importante

Confirmação de Termo