Ir para conteúdo

falling

Membro
  • Registro em

  • Última visita

Tudo que falling postou

  1. Ola bom dia pessoal, achei uma distro importante, e gostaria de tirar algumas duvidas. Alguem me explica este NPC <?xml version="1.0"?> <npc name="Ruby" floorchange="0" walkinterval="4000" script="ruby.lua"> <health now="150" max="150"/> <look type="133" head="20" body="120" legs="75" feet="13"/> <interaction range="3" idletimeout="30"> <interact keywords="hi" focus="1"> <!--These are the keywords will trigger this interaction--> <keywords>hello</keywords> <response> <action name="script"> <![CDATA[ if(getPlayerSex(cid)) == 0 then selfSay("Welcome on board, Madam " .. getCreatureName(cid) .. ".", cid) else selfSay("Welcome on board, Sir " .. getCreatureName(cid) .. ".", cid) end ]]> </action> </response> </interact> <interact keywords="bye" focus="0"> <keywords>farewell</keywords> <response text="Good bye. Recommend us, if you were satisfied with our service."> <!-- <action name="script"> doRemoveCreature(getNpcCid()); </action> --> </response> </interact> <!-- If the event onBusy exists, the npc will make a queue like Tibia, if the event is removed the npc will be able to talk to all customers at the same time without problems. --> <interact event="onBusy"> <response text="One moment please, |NAME|."> <action name="addqueue" value="|PLAYER|"/> </response> </interact> <!--This event triggers if the player goes to far away from the npc/logout/idle timeout--> <interact event="onPlayerLeave" focus="0"> <response text="Good bye. Recommend us, if you were satisfied with our service."/> </interact> <!---Example of calling a script function, check ruby.lua--> <interact focus="1"> <!--These are the keywords will trigger this interaction--> <keywords>asshole</keywords> <keywords>stupid</keywords> <keywords>idiot</keywords> <keywords>fuck</keywords> <keywords>fag</keywords> <response function="onSayCurse"> <action name="idle" value="1"/> <action name="scriptparam" value="|PLAYER|"/> <action name="scriptparam" value="|TEXT|"/> </response> </interact> <interact focus="0"> <!--These are the keywords will trigger this interaction--> <keywords>asshole</keywords> <keywords>stupid</keywords> <keywords>idiot</keywords> <keywords>fuck</keywords> <keywords>fag</keywords> <response function="onSayCurse"> <action name="idle" value="1"/> <action name="scriptparam" value="|PLAYER|"/> <action name="scriptparam" value="|TEXT|"/> </response> </interact> <interact keywords="edron"> <response text="Do you want a passage to Edron for |PRICE| gold?"> <action name="topic" value="1"/> <action name="price" value="200"/> </response> </interact> <interact topic="1" keywords="yes"> <response param="pzblock" text="First get rid of those blood stains! You are not going to ruin my vehicle!"/> <response param="lowmoney" text="You don't have enough money."/> <response text="Have a nice trip!"> <action name="idle" value="1"/> <action name="takemoney" value="|PRICE|"/> <action name="teleport" value="154;54;7"/> <action name="effect" value="teleport"/> </response> </interact> <!-- Example of another way to do it, instead of using topic variable--> <interact keywords="thais"> <response text="Do you want a passage to Thais for |PRICE| gold?"> <action name="price" value="200"/> <interact keywords="yes"> <response param="pzblock" text="First get rid of those blood stains! You are not going to ruin my vehicle!"/> <response param="lowmoney" text="You don't have enough money."/> <response text="Have a nice trip!"> <action name="idle" value="1"/> <action name="takemoney" value="|PRICE|"/> <action name="effect" value="teleport"/> <action name="teleport" value="120;120;7"/> </response> </interact> <!-- This response is being used when a player says something else than 'yes' --> <interact keywords="|*|"> <response text="Maybe some other time."/> </interact> </response> </interact> <!--Example of using storage values, storageComp can be less/lessorequal/equal/greater/greaterorequal--> <!--In this example it checks if the storage value of 5500 is less than 0--> <!--Another way to write it would be storageValue="-1" storageComp="equal"--> <!--Basically we check if the storage id of 5500 is -1, ie. not having any value yet.--> <interact keywords="secret" storageId="5500" storageValue="0" storageComp="less"> <response text="So you want to know my secret?"> <interact keywords="yes"> <response text="The secret im not really a captain, im just an example npc!"> <action name="storage" key="5500" value="1"/> </response> </interact> </response> </interact> <interact keywords="secret" storageId="5500" storageValue="1" storageComp="equal"> <response text="You already know my secret, now leave me alone!"> <action name="idle" value="1"/> </response> </interact> <!-->End of example of using storage value--> <!-- Sell item(s) interaction, see merchant glut with an example of an npc with list items--> <interact keywords="sell;|AMOUNT|;brass;helmet"> <keywords>sell;brass;helmet</keywords> <response text="Do you want to sell |AMOUNT| brass helmet for |PRICE| gold?"> <action name="topic" value="2"/> <action name="item" value="2460"/> <action name="price" value="200"/> <action name="amount" value="|AMOUNT|"/> </response> </interact> <interact keywords="sell;|AMOUNT|;brass;legs"> <keywords>sell;brass;legs</keywords> <response text="Do you want to sell |AMOUNT| brass legs for |PRICE| gold?"> <action name="topic" value="2"/> <action name="item" value="2468"/> <action name="price" value="400"/> <action name="amount" value="|AMOUNT|"/> </response> </interact> <interact topic="2" keywords="yes"> <response param="noamount" text="Sorry you do not have one."/> <response param="lowamount" text="Sorry, you do not have so many."/> <response text="Ok. Here is your money."> <action name="sell" value="|PRICE|"/> </response> </interact> <!-- End of sell item(s) interaction--> <!-- Buy item(s) interaction, see merchant glut for a real seller/buyer npc--> <interact keywords="buy;|AMOUNT|;brass;helmet"> <keywords>buy;brass;legs</keywords> <response text="Do you want to buy |AMOUNT| brass helmet for |PRICE| gold?"> <action name="topic" value="3"/> <action name="item" value="2460"/> <action name="price" value="200"/> <action name="amount" value="|AMOUNT|"/> </response> </interact> <interact topic="3" keywords="yes"> <response param="lowmoney" text="Come back when you have the money!"/> <response text="Here you are."> <action name="buy" value="|PRICE|"/> </response> </interact> <!-- End of buy item(s) interaction--> </interaction> </npc> Oque ele faz, como funciona, e se eh muito complicado achar e manusear scripts para esta distro
  2. falling postou uma resposta no tópico em Suporte Tibia OTServer
    up
  3. Certo não testei mais e nao tem como testar agora, mais tem como me explicar os parametros? Pode usar em qualquer lugar? Gostaria que fosse possivel usar só dentro de uma protection zone, obg
  4. Bom teria como fazer esse comando e simplismente ir parar na frente da sua house? rsrs. Se isso ajudar, achei nas talkactions <talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/>
  5. falling postou uma resposta no tópico em Suporte Tibia OTServer
    Não amigo, não alterei nada, eu só fiz a troca da disto (.exe) e alterei as globalevents que tem que alterar. Isso é um bug nas libs' creio eu... só preciso ter certeza e saber ajeitar!
  6. falling postou uma resposta no tópico em Suporte Tibia OTServer
    Olá pessoal gostaria de saber como troco a distro do meu servidor, fiz algumas alterações mais quando fala HI pro npc da essa erro no distro e o NPC nao responde
  7. falling postou uma resposta no tópico em Suporte Tibia OTServer
    Não é querendo reviver o topico, eh que eu nao tinha testado o script... Mais eu fiz a quest antes da 00i00 e fui fazer agora 1i33 disse que eu ja tinha feito '-' Tem que registrar no login.lua? Então, acho que voce fez pra tfs 1.0 né rs' o meu é 0.4 rs
  8. Bom sem mais delongas, Revolução (do latim revolutìo,ónis: ato de revolver), é uma mudança fundamental no poder político ou na organização estrutural de uma sociedade e, que ocorre em um período relativamente curto de tempo. O termo é igualmente apropriado para descrever mudanças rápidas e profundas nos campos científico-tecnológico, econômico e comportamental humano. "é uma mudança fundamental no poder político ou na organização estrutural de uma sociedade" Pra quem não conseguir definir esta frase, e tiver interesse Skype: onurb20091 PS: CARGOS REMUNERADOS ($) Links Uteis: https://www.facebook...alizeot?fref=ts https://www.youtube.com/legalizeots http://global-legalize.com SERVIDOR ESTREIA 10/01/2015 attr, Bruno
  9. gradece amor s2 Se tiver disponibilidade de cargo lhe convido para um projeto já online, e que agora dia 10 vai voltar! https://www.facebook.com/legalizeot?fref=ts https://www.youtube.com/legalizeots http://global-legalize.com Se tiver interesse: onurb20091
  10. Me explica melhor como usar o script '-' pff
  11. Pra quem lembra fica a dica, queria o script que variasse entre de 1 a 10 items por favor. PS: Essa action eh linda *-* se tivesse como por pra sair um efeito também
  12. Achei este link hj http://trevorpp.awardspace.com/
  13. Pessoal, estou precisando de um Quest Log mais simples, nao precisa ter descrição, só o nome da quest e completed! Se alguem puder me ajudar me diga, e então passo os storages e o nome das quests.
  14. Ja vou testar e edito! --EDIT Não foi, só ficou em 1 sqm =\
  15. falling postou uma resposta no tópico em Suporte Tibia OTServer
    Boa tarde poderiam me daar uma ajudinha aq? Azerus.lua function onStepIn(cid, item, position, fromPosition) --Config--> local queststatus = getPlayerStorageValue(cid, 50001) --EndConfig--> if item.actionid == 1974 and queststatus == -1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "It seems by defeating Azerus you have stoped this army from entering your world! Better leave this ghastly place forever.") setPlayerStorageValue(cid, 4765, 1) return TRUE end if item.actionid == 1973 and queststatus == -1 then -- Here is the code start: starting={x = 576, y = 560, z = 10, stackpos = 253} checking={x=starting.x, y=starting.y, z=starting.z, stackpos=starting.stackpos} ending={x = 586, y = 572, z = 10, stackpos = 253} players=0 totalmonsters=0 monster = {} repeat creature= getThingfromPos(checking) if creature.itemid > 0 then if getPlayerAccess(creature.uid) == 0 then players=players+1 end if getPlayerAccess(creature.uid) ~= 0 and getPlayerAccess(creature.uid) ~= 3 then totalmonsters=totalmonsters+1 monster[totalmonsters]=creature.uid end end checking.x=checking.x+1 if checking.x>ending.x then checking.x=starting.x checking.y=checking.y+1 end until checking.y>ending.y if players==0 then trash= {x=33193, y=31689, z=15} current=0 repeat current=current+1 doTeleportThing(monster[current],trash) until current>=totalmonsters end -- Here is the end of it doTeleportThing(cid, player_pos_entrada) doSendMagicEffect(player_pos_entrada, 10) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Você já terminou a quest!') end end
  16. falling postou uma resposta no tópico em Suporte Tibia OTServer
    Olá, gostaria de fazer um sistema +- igual o do global no quesito de invasões de bosses. Por exemplo, ghazbaran, morgaroth talz, pra nao ficar aquele negoço chato de quem pegar o loot Automaticamente e feito um calculo que converte o quanto ele hitou no bixo, para a recompensa dele. Exemplo, ele so vai pegar a recompensa se matar o boss (isso eu ja sei como fazer) Quero saber como fazer a quest. Exemplo, ele pode fazer toda vez que matar o boss, mais sera por chance. Se ficar muito complicado pra por essa conversão de hits para a chance de items, nao precisa Pode ser por chance mesmo, ai fica a mesma chance para todos Mais em fim o proposito é esse. Uma quest que seja configuravel, e possa vir X ITEMS por chance
  17. Querendo aproveitar esse topico, e se eu quisesse fazer uma quest X Exemplo, no global ao matar um boss, o player nao abre o boss e pega o loot Automaticamente e feita uma conta ke axo ke eh pelo tanto de hit ke ele da, ai ele clica em um bau, e tem x chances de ganhar tais items.. Teriamos como aproveitar isso? ai colocariamos o storage de quando ele matar pra passar na porta pra quest Mais ai precisariamos de um script de quest assim '-' kkkk
  18. falling postou uma resposta no tópico em Suporte Tibia OTServer
    Agradeço aos dois mais o script do @danihcv parece mais versatil! So poderia me dizer como ponho um item e x quantidade?
  19. falling postou uma resposta no tópico em Suporte Tibia OTServer
    Pessoal preciso de um script que faça o seguinte, ao clicar em X lugar vai ganhar um item, e vai sumonar 2 monstros no caso warlocks!
  20. Ta ai parceiro, eu consegui aqui, nao lembro com quem rs' Creditos by @SUICIDE Ta ai! PS: O Script ainda abre um aviso dizendo alguma frase, e ainda checa o level! local level = 100 local pos = {x=558, y=495, z=7} local txt = {"Voce foi teleportado!", "Voce precisa ser level 100 para se teleportar!"} function onUse(cid, fromPos, toPos) if getPlayerLevel(cid) >= level then doTeleportThing(cid, pos) doSendMagicEffect(toPos, CONST_ME_TELEPORT) doShowTextDialog(cid, 2175, txt[1]) else doShowTextDialog(cid, 2175, txt[2]) end return true end <action uniqueid="10587" event="script" value="NOMESCRIPT.lua"/> Ai voce coloca 10587 na statua!
  21. Acho que e na alavanca depois vou testar obrgado
  22. falling postou uma resposta no tópico em Suporte Tibia OTServer
    upp

Informação Importante

Confirmação de Termo