Ir para conteúdo

canovas

Campones
  • Total de itens

    5
  • Registro em

  • Última visita

Tudo que canovas postou

  1. É so trocar esta linha no script: if #MCPlayers > 0 then Por isto: if #MCPlayers > 8 then Ou o numero máximo de players com Multi-Client, no caso 8.
  2. Lembrando que só funciona em OTs que tenham a função "onLook", se retornar uma mensagem no console como "stace traceback:" é porque o seu distro não possui a função. lookfrags.lua -- script by Notorious function onLook(cid, thing, position, lookDistance) if isPlayer(thing) == TRUE then frags = getPlayerFrags(thing) thingname = getCreatureName(thing) -- Mensagem que o player receberá ("..frags.." é o numero de frags). msg = "Frags for "..thingname..": "..frags.."." -- doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg) end return TRUE end creaturescripts.xml <event type="look" name="LookFrags" event="script" value="lookfrags.lua"/>
  3. -- script by Notorious function onStepIn(cid, item, position, fromPosition) -- Config - outfit = 136 -- looktype duracao = 5 * 60 * 1000 -- 1000 = 1 segundo ----------- if isPlayer(cid) then doSetCreatureOutfit(cid, outfit, duracao) end return TRUE end
  4. Existe esse creature script, feito pelo Skyen Hasus do fórum concorrente: Script Retirado a pedidos do criador. Link: Removido creaturescripts.xml: <event type="login" name="Check" event="script" value="check.lua"/>
  5. Adicione esse tag no seu login.lua, abaixo de outras semelhantes a essa: registerCreatureEvent(cid, "advancea")
  6. Qual é versão do seu OT? Ele tem talkactions? Adicione essa tag no talkactions.xml <talkaction log="yes" words="/reset" access="5" event="script" value="reset.lua"/>
  7. Vá no items.xml do seu OT e na tag da teia ja cortada (7544) adicione o seguinte: <attribute key="decayTo" value="7538"/> <attribute key="duration" value="60"/>
  8. E só adicionei um parametro e direcionei todas as informações a serem pegas e setadas a esse parametro, eu nao testei por isso nao sei se ira funciona Qualquer erro poste aqui. -- script by Marcryzius D'evil. -- function onSay(cid, words, param) target = getPlayerByNameWildcard(param) config = { level=100, -- level necessario pra reseta. RemainingLvl=8, -- level que ficará depois de ser resetado. exper=4200, -- experiencia que ficará depois de ser resetado. pid=getPlayerGUID(target), -- não mecha skull="yes", -- players com white skull podem resetar? ("yes" or "no"). redskull="yes", -- players com red skull podem resetar? ("yes" or "no"). prot="yes", -- players precisam estar em protection zone pra resetar? ("yes" or "no"). bat="yes" --players precisam estar sem fight pra resetarem? ("yes" or "no"). } function getResets(target) reset = getPlayerStorageValue(target,1020) if reset < 0 then reset = 0 end return reset end if(config.skull == "no") and (getCreatureSkullType(target) == 3) then doPlayerSendTextMessage(cid,22,"apenas players sem white skull podem resetar.") return TRUE end if(config.redskull == "no") and (getCreatureSkullType(target) == 4) then doPlayerSendTextMessage(cid,22,"apenas player sem red skull podem resetar.") return TRUE end if(config.prot == "yes") and (getTilePzInfo(getCreaturePosition(target)) == FALSE) then doPlayerSendTextMessage(cid,22,"você precisa estar em protection zone pra poder resetar.") return TRUE end if(config.bat == "yes") and (getCreatureCondition(target, CONDITION_INFIGHT) == TRUE) then doPlayerSendTextMessage(cid,22,"você precisa estar sem battler pra poder resetar.") return TRUE end if getPlayerLevel(target) >= config.level then setPlayerStorageValue(target,1020,getResets(target)+1) doPlayerSetNameDescription(target, " Have a "..getResets(cid)+(1).." reset\'s.") doPlayerPopupFYI(target,"You now was reset, you have "..getResets(cid)+(1).." reset\'s.") doTeleportThing(target, getTownTemplePosition(getPlayerTown(target))) doRemoveCreature(target) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) else doPlayerSendCancel(target, "You need to have level "..config.level.." or more you may be reset.") doSendMagicEffect(getPlayerPosition(target), CONST_ME_POFF) end return TRUE end
  9. No caso, como é o sistema vip do seu OT? Por storageValue? Qual?
  10. Bem simples né? Você poderia trabalhar mais nele, colocando funções como, o player escreve o id da town que quer ser teleportado, ou, o script checa se o player está pz, etc ...
  11. Então poste esse erro aqui, pra poder te ajudar melhor, aliás ja deveria ter postado no inicio do topico né ...
  12. Dá algum erro no console do OTserver quando você mata algum bixo, ou quando algum player loga ?
  13. Se não funcionou é porque voce deve ter feito algo errado, eu ja usei esse script genial do Mock e ele funcionou perfeitamente em um TFS 0.3.1231. Revise todos os passos e tente denovo.
  14. SoNNie, os cálculos são muitos mais complexos que isso. Mas assim que o Marcryzius me ensinar a função para pegar os atributos de um item que o player está usando Eu farei o comando pra você. Exemplo: Redução de Damage MAX: (totalarm)*0,475 MIN: (totalarm)*0,95) -1 EDIT: Eu ja aprendi a função, agora o comando está em desenvolvimento.
  15. O primeiro erro é que na pasta data/npc/lib deve estar faltando o arquivo que rege o sistema de npc, no segundo cheque os itens com os respectivos ids, há mais de um item com o mesmo id no itens.xml. Se seu OTserver já veio com todos esses erros recomendo a baixar outro distro.
  16. Marcryzius, há um cálculo matematico que se faz para descobrir o ataque melee, magico e a defesa. Eu até faria o script, mas nao sei a função para pegar o attack da arma do player. Se você puder me ensinar, eu faço o script numa boa.
  17. <?xml version="1.0" encoding="UTF-8"?> <monster name="Water Elemental" nameDescription="a Water Elemental" race="undead" experience="450" species="ice" speed="280" manacost="0"> <health now="550" max="550"/> <look type="286" corpse="2016"/> <targetchange interval="20000" chance="15"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag staticattack="85"/> <flag lightlevel="0"/> <flag lightcolor="0"/> <flag targetdistance="1"/> <flag runonhealth="1"/> </flags> <attacks> <attack name="melee" interval="2000" skill="75" attack="65"/> <attack name="earth" interval="2000" chance="20" range="7" target="1" min="0" max="-120"> <attribute key="shootEffect" value="earth"/> <attribute key="areaEffect" value="smallplants"/> </attack> <attack name="physical" interval="1000" chance="10" range="6" target="1" min="0" max="-209"> <attribute key="shootEffect" value="snowball"/> </attack> <attack name="ice" interval="2000" chance="18" range="4" target="1" min="0" max="-103"> <attribute key="shootEffect" value="smallice"/> </attack> <attack name="physical" interval="1000" chance="9" range="7" radius="2" target="1" min="0" max="-240"> <attribute key="shootEffect" value="smallice"/> <attribute key="areaEffect" value="giantice"/> </attack> </attacks> <defenses armor="30" defense="30"> <defense name="healing" interval="2000" chance="15" min="90" max="150"> <attribute key="areaEffect" value="blueshimmer"/> </defense> </defenses> <elements> <element physicalPercent="70"/> <element energyPercent="-25"/> <element holyPercent="20"/> <element deathPercent="30"/> </elements> <immunities> <immunity ice="1"/> <immunity fire="1"/> <immunity poison="1"/> <immunity paralyze="1"/> <immunity invisible="1"/> </immunities> </monster>
  18. Eu já tentei fazer isso em um OT mas não consegui, se voce quiser tentar voce tem que mudar as configurações na npc lib. Um jeito mais fácil é usando um script com uma condição. Por exemplo: if (msgcontains(msg, 'item') then if getPlayerItemCount(cid,itemid) >= n then doPlayerTakeItem(cid, itemid, n) doPlayerAddItem(cid, itemid, n) selfSay('Algo mais '.. playerName ..' ?', cid) else selfSay('Você não tem dinheiro suficiente.', cid) end end
  19. Qual é o tipo de database do seu OTserver? SQLite? MySql? Xml?
  20. Mas além das vocacoes existentes (druid, sorc, pally e kina) voce queria colocar mais, ou substiuir as existentes por outros nomes? Porque se for isso é só trocar o nome da vocação no vocations.xml que ele automaticamente muda no Account Manager.
  21. Seria pra todas as portas com maçaneta vermelha, ou pra uma porta especifica de uma quest? E quais são as condicoes? O player teria que ter feito a quest? Ter algum item?
  22. Qual a versão do seu distro? Voce ja tem um auto-restarter?
  23. Eu acho que voce poderia usar o do noobinhu, afinal ele é feito por storageValue e não tem nada a ver com o tipo de banco de dados. Agora se o problema é com erros referentes as funcoes, poste o script completo do noobinhu aqui colocando creditos e poste os erros que dá ao usar o comando, ai alguem pode te ajudar melhor.
  24. Eu acho que seria mais facil voce realizar essa funcoes manualmente usando um cronometro na internet (há muito por ai) e conferindo os numeros manualmente. Usar actions pra isso só iria complicar tanto pra voce quanto para os players.
  25. Seção errada. # Pedidos de Scripts Para pessoas que estão procurando algo e não encontram em nosso fórum, peça para nossos usuários e equipe. Reportado
  • Quem Está Navegando   0 membros estão online

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