Ir para conteúdo

Roksas

Herói
  • Total de itens

    3611
  • Registro em

  • Última visita

  • Dias Ganhos

    60

Tudo que Roksas postou

  1. rsrs, me confundi, mas já editei. Esperemos o dono do tópico responder se a dúvida foi sanada mesmo.
  2. Boa tarde ^^ Tentemos desta forma: Vá em data/creaturescripts/scripts, crie um arquivo chamado partyAttack.lua e adicione dentro: function onStatsChange(cid, attacker, type, combat, value) if type == STATSCHANGE_HEALTHLOSS then if getPlayerParty(cid) == getPlayerParty(attacker) then return false end return true end Na mesma pasta abra o arquivo login.lua, procure por: registerCreatureEvent E cole próximo á ele: registerCreatureEvent(cid, "partyAttack") Agora em creaturescripts.xml adicione a tag: <event type="statschange" name="partyAttack" event="script" value="partyAttack.lua"/> Reinicie o servidor e boa sorte
  3. rsrsrs Boa. Cara o script está aí, essa é a raíz de tudo, aguarde
  4. Opa galerinha, saudações. Neste tópico vou mostrar o primeiro resultado dos nossos aluninhos, eles fizeram alguns exercícios da segunda aula, exercícios de lógica, e aqui irei postá-los junto com a correção e notas Para recordar, os exercícios dados foram: 1 - Monte um algorítmo para ir á escola; 2 - Crie uma algorítmo para acessar o Facebook; 3 - Crie um algorítmo para assistir um filme. Respostas dos alunos: Allan Harlen [kttallan]: Daniel Angel [Yoshiaki]: Diogo Goulart [daduloko]: Eduardo Gonçalves [zeuslancaster]: Gabriel Bezerra [gabreilk]: Giancarlo Santos [hatthell]: Iago Vitoriano [Aguinho600]: Kluivert Davi [KluIMaster]: Matheus Ribeiro Papa [thatsrockbitch]: Matheus Ribeiro Ramos [r1b31r0]: Pablo Rodrigues [infernity]: Renan Oliveira [elderdark]: Thiago Carvalho [DuMal]: Thiago Kawai [idealizador]: É isso galerinha, vejo vocês na próxima aula, estudem hein, rsrrs. GoodLuck.
  5. Roksas

    NPC DE BLESS PARA VIP

    Troque ele por isso, eu tinha errado rsrs: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local msg = string.lower(msg) if isInArray({"bless"}, msg) then if not isPremium(cid) then npcHandler:say("Você precisa ser Premium Account!", cid) talkState[talkUser] = 0 return true end if getPlayerMoney(cid) < 30000 then npcHandler:say("Você precisa de 30k para pegar bless.", cid) talkState[talkUser] = 0 return true end doPlayerRemoveMoney(cid, 30000) doPlayerAddBlessing(cid, 6) talkState[talkUser] = 0 return true end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  6. Não há de quê, boa sorte ae com o servidor Sanado e movido. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  7. Vá em data/talkactions/scripts crie um arquivo chamado eventoCh.lua e adicione dentro: function onSay(cid, words, param) if not param or param == "" then doPlayerSendTextMessage(cid, 20, "Use como parâmetro, {on} ou {off}!") return true end if param == "on" then if getGlobalStorageValue(21479) >= 1 then doPlayerSendTextMessage(cid, 20, "O evento já está aberto, tente novamente ou mais tarde.") return true end setGlobalStorageValue(21479, 1) doBroadcastMessage("Evento ABERTO!", 21) doRemoveItem(getThingFromPos({x = 541, y = 521, z = 6, stackpos = 1}).uid, 1) doRemoveItem(getThingFromPos({x = 541, y = 520, z = 6, stackpos = 1}).uid, 1) return true end if param == "off" then if getGlobalStorageValue(21479) < 1 then doPlayerSendTextMessage(cid, 20, "O evento já está fechado, tente novamente ou mais tarde.") return true end setGlobalStorageValue(21479, -1) doBroadcastMessage("Evento FECHADO!", 21) doCreateItem(5316, 1, {x = 541, y = 521, z = 6}) doCreateItem(5316, 1, {x = 541, y = 520, z = 6}) return true end return true end Em talkactions.xml adicione a tag: <talkaction words="!evento;/evento" event="script" value="eventoCh.lua"/> Boa sorte
  8. Roksas

    NPC DE BLESS PARA VIP

    Vá em data/npc, crie um arquivo chamado Blesser.xml e coloque dentro: <?xml version="1.0" encoding="UTF-8"?> <npc name="Blesser" nameDescription="blesses here." script="blesser.lua" walkinterval="2000" floorchange="0" skull="green"> <health now="100" max="100"/> <look type="130" head="39" body="122" legs="125" feet="57" addons="0"/> </npc> Vá em data/npc/scripts, crie um arquivo chamado blesser.lua e coloque dentro: 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 buyAddons(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if not isPremium(cid) then npcHandler:say('You need to be VIP to buy Bless.!', cid) elseif getPlayerMoney(cid) < 30000 then npcHandler:say('Sorry, you do not have enough money.', cid) else doPlayerAddBlessing(cid, 6) doPlayerRemoveMoney(cid, 30000) end keywordHandler:moveUp(1) return true end npcHandler:addModule(FocusModule:new()) Boa sorte.
  9. Roksas

    NPC DE BLESS PARA VIP

    Tem sim, os títulos devem ser referente á dúvida. @Qual o seu VIP SYSTEM?
  10. Roksas

    NPC DE BLESS PARA VIP

    Não precisa manjar para fazer isso, e nunca crie nome de tópicos assim, pedindo especifícamente para um scripter você acaba desanimando quem quer responder. Tópico renomeado, não faça mais isso.
  11. É óbvio cara, só da pro cara sentar e ficar com a msm outfit e cores, se você tiver as sprites de todos sentados
  12. Roksas

    [resolvido] Auto Walk

    Tópico movido para a seção de dúvidas e pedidos resolvidos.
  13. Arrumei: function onKill(cid, target, lastHit) if not isPlayer(target) or not isPlayer(cid) then return true end doBroadcastMessage(""..getCreatureName(target).."["..getPlayerLevel(target).."] [Resets: "..getResets(target).."] acabou de morrer para o jogador "..getCreatureName(cid).."["..getPlayerLevel(cid).."] [Resets: "..getResets(cid).."].", 27) return true end
  14. Ta aí parceiro: function onKill(cid, target, lastHit) if not isPlayer(target) or not isPlayer(cid) then return true end doBroadcastMessage(""..getCreatureName(target).."["..getPlayerLevel(target).."] [Resets: "..getResets(cid).."] acabou de morrer para o jogador "..getCreatureName(cid).."["..getPlayerLevel(cid).."] [Resets: "..getResets(cid).."].", 27) return true end
  15. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  16. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  17. Tente: function onSay(cid, words, param) local create_pos = {x = 1060, y = 1046, z = 5, stackpos = 255} local tp_pos = {x = 1045, y = 1049, z = 15} if words == "/eventoon" then doCreateTeleport(1387, tp_pos, create_pos) doSendMagicEffect(create_pos, 10) doPlayerSendTextMessage(cid, 28 ,"Portal para o Evento está aberto!") elseif words=="/eventooff" then doRemoveItem(getThingFromPos({x = create_pos.x, y = create_pos.y, z = create_pos.z, stackpos = 1}).uid, 1) doPlayerSendTextMessage(cid, 28 ,"Portal para o Evento fechou!") end return true end @Maelnise Não existe essa função.
  18. Manda esse script aí, eventoteleport.lua que está em talkactions/scripts
  19. Tenta assim, no script, aonde ta 1000 coloca 0. E da reload
  20. Como assim? Oo Eu coloquei 1000 que é o limite.
  21. Não há de quê rsrs, basta saber se funcionou com o Dawm.
  22. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  23. Vá em data/movements/scripts, crie um arquivo chamado stepHungry.lua e adicione dentro: function onStepIn(cid, item, pos) if getTileInfo(getThingPos(cid)).protection then doSendMagicEffect(getThingPos(cid), 14) doPlayerFeed(cid, 1000) end return true end Em movements.xml adicione: <movevent type="StepIn" event="script" value="stepHungry.lua"/> Prontinho ^^
  • Quem Está Navegando   0 membros estão online

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