Ir para conteúdo

Killua

Conde
  • Total de itens

    904
  • Registro em

  • Última visita

  • Dias Ganhos

    13

Tudo que Killua postou

  1. Eu fiz ela aqui mas tem um problema... Não consegui fazer não dar certo se tiver player na ponte. Quando tinha alguém na ponte, a ponte era retirada em todos os lugares exceto onde a pessoa estava. De qualquer forma, aqui está, e vou continuar tentando arrumar isso. local ponteFromPos, ponteToPos = {x = 157, y = 34, z = 7}, {x = 159, y = 36, z = 7} local idPonte = 9224 local idAgua = 4612 function onUse(cid, item, fromPosition, itemEx, toPosition) for x = ponteFromPos.x, ponteToPos.x do for y = ponteFromPos.y, ponteToPos.y do for z = ponteFromPos.z, ponteToPos.z do areaponte = {x=x, y=y, z=z} ponte = getThingFromPos(areaponte) if ponte.itemid == idPonte then doTeleportThing(ponte.uid, ponteFromPos) doCreateItem(idAgua, 1, areaponte) elseif ponte.itemid == idAgua then doCreateItem(idPonte, 1, areaponte) end end end end return true end
  2. Não da pra remover piso, então, oq eu pensei foi botar o chão anterior... A ponte fica sobre a água?
  3. É exatamente assim que tem que adicionar. Não tem limite de prêmios. Mas pq isso seria um problema? =S, é assim mesmo que funciona, quem destrói a estátua recebe todos os prêmios. Se quiser posso adicionar tipo um consolo pros perdedores, ou seja, um prêmio que é dado a todos que participarem. Abraços
  4. Em que momento isso aparece? Na hora de iniciar? Vou refazer o evento de um jeito mais claro, do jeito que está ele deixa muitas duvidas e possibilidades se bug quando configurado errado. Vou ver se faço isso hoje. Evento atualizado.
  5. Aqui esta por talkactions, crie bloodcastle.lua na sua pasta talkactions e coloque: function onSay(cid, words, param, channel) if not isMonster(getTopCreature(bcastle.posguarda).uid) then doCreateMonster('Guarda do Portao', bcastle.posguarda) end doBroadcastMessage("[Blood Castle] O teleporte para o evento Blood Castle vai ser aberto em "..bcastle.tempoaviso.." minutos, nao percam!") addEvent(BotarTp, bcastle.tempoaviso*60*1000) addEvent(doBroadcastMessage, bcastle.tempoaviso*60*1000, "[Blood Castle] O teleport para o Blood Castle foi criado e vai sumir em "..bcastle.tempoaberto.." minutos, se apressem!") addEvent(TirarTp, bcastle.tempoaviso*60*1000+bcastle.tempoaberto*60*1000) addEvent(doBroadcastMessage, bcastle.tempoaviso*60*1000+bcastle.tempoaberto*60*1000, "[Blood Castle] O evento Blood Castle comecou e o teleport para ele foi fexado. Boa sorte a todos!") addEvent(TirarPedras, bcastle.tempoaviso*60*1000+bcastle.tempoaberto*60*1000) return true end Tag: <talkaction log="yes" words="/start-bloodcastle" access="6" event="script" value="bloodcastle.lua"/> Para usar baster dizer /start-bloodcastle uma unica vez.
  6. O tempo que o teleport do arcanjo dura eh configurado na lib em temposaida = 10, onde o tempo deve ser posto em milisegundos. Ou seja 1000 = 1segundo. Eu realmente esqueci de explicar isso no topico... Me desculpe.
  7. O problema de criar dois guardas realmente existia... Entao eu arrumei ele. Para corrigir, basta vc adicionar estas linhas: if not isMonster(getTopCreature(bcastle.posguarda).uid) then doCreateMonster('Guarda do Portao', bcastle.posguarda) end Logo depois de function onThink(interval, lastExecution, thinkInterval) no bloodcastle.lua do globalevents. Ficando assim:
  8. Por favor, espero que alguem possa me ajudar, pelo menos dessa vez. Quando tento acessar minha database aparece esse erro Não pôde iniciar a sessão sem erros, cheque os erros ocorridos nos logs do PHP e/ou do seu servidor web e configure a instalação do PHP corretamente. Nao fiz nenhuma mudanca q pudesse acarretar isso A unica coisa foi tentar usar o Comando /ban que deu alguns erros no distro. Sou totalmente leigo quando se trata de Websites, por favor, alguem me ajude a resolver. @EDIT: Consegui resolver u.u Vou explicar aqui como fiz, caso alguem venha a ter esse mesmo problema: Simplesmente limpei todos os dados de navegacao do meu navegador.
  9. Eu nao to deixando um segundo ne cara --'
  10. Fiz isso e ele continua dando erro... Tambei tentei colocar o spawn em uma outra posicao, ai o erro simplesmente mudou a posicao. :S
  11. Valeu, deu certo aqui. Mas ainda da alguns erros desse, mas ,na posicao indicada, nao tem monstro. Tem aquele foguinho roxo do spawn
  12. Estou tendo o erro "Spawntime cannot be less the 1 second", vejam: Eu ja fui no meu spawns.xml e procurei por spawntime="0", e substitui todos por spawntime="40" e o erro persistiu. Agora nao tem nenhum spawntime="0" no spawns.xml. Alguem sabe corrigir isso?
  13. local tpId = 1387 local tps = { {name = "cavaleiro Negro", pos = {x=32541, y=30741, z=8, stackpos = 1}, toPos = {x=32532, y=30716, z=8}, time = 30}, {name = "Guardian Spider", pos = {x=32582, y=30816, z=8, stackpos = 1}, toPos = {x=32581, y=30784, z=8}, time = 30}, {name = "Thunder Dragon", pos = {x=32581, y=30742, z=8, stackpos = 1}, toPos = {32581, y=30716, z=8}, time = 30}, {name = "Shadow Pupil", pos = {x=32581, y=30713, z=8, stackpos = 1}, toPos = {32545, y=30682, z=8}, time = 30}, {name = "Shadow Boss", pos = {x=32545, y=30679, z=8, stackpos = 1}, toPos = {x=32565, y=30678, z=8}, time = 30}, {name = "Morgaroth", pos = {x=32666, y=30874, z=8, stackpos = 1}, toPos = {x=32633, y=30852, z=8}, time = 30}, {name = "Alma Perdida", pos = {x=32581, y=30782, z=8, stackpos = 1}, toPos = {x=32581, y=30745, z=8}, time = 30}, } for _, teles in pairs(tps) do function removeTp(pos) local t = getThingFromPos(teles.pos) if t.itemid == tpId then doRemoveItem(t.uid, 1) doSendMagicEffect(teles.pos, CONST_ME_POFF) end end function onDeath(cid) if getCreatureName(cid) == teles.name then doCreateTeleport(tpId, teles.topos, teles.pos) doCreatureSay(cid, "O teleport irá sumir em "..teles.time.." segundos.", TALKTYPE_ORANGE_1) addEvent(removeTp, teles.time*1000) end end return true end
  14. Killua

    Promotion por Quest

    cria logarvoc.lua em data/creaturescripts/scripts e coloca local storage = XXXX -- coloca o mesmo storage do outro function onLogin(cid) if getPlayerStorageValue(cid, storage) == 1 then if isSorcerer(cid) then doPlayerSetVocation(cid, 9) elseif isDruid(cid) then doPlayerSetVocation(cid, 10) elseif isKnight(cid) then doPlayerSetVocation(cid, 12) elseif isPaladin(cid) then doPlayerSetVocation(cid, 11) elseif isInArray({X, Y}, getPlayerVocation(cid)) then -- No lugar de X vc coloca o id da voc Drunou, no lugar de Y vc coloca id da voc Lord Drunou doPlayerSetVocation(cid, Z) -- No lugar de Z vc coloca o id da voc Epic Lord Drunou end end return true end em creaturescripts.xml <event type="login" name="VocsLogin" event="script" value="logarvoc.lua"/> OBSERVACAO IMPORTANTE: No primeiro script que eu te fiz (bau) eu nao considerei esse seu comentario: Eu usei os IDs do vocations.xml que vc colocou nesse mesmo post. Se voce realmente mudou algum id (deixou ele diferente daquele vocations.xml) vc vai ter que editar o meu script.
  15. Killua

    Promotion por Quest

    Ja fiz com os ids certos pro seu server, nao precisa mudar. Essa coisa de relogar e perder, era disso q eu tava falando. Pra concerta isso tem que faze uma gambiarrinha no login, chegado em casa eu faço
  16. Killua

    Erro no login.lua

    Tira esse antiMC e ve se para
  17. Killua

    Promotion por Quest

    Ta aqui: local storage = 23232 function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, storage) > 0 then doPlayerSendCancel(cid, "Voce ja fez essa quest!") return false end if getPlayerVocation(cid) >= 5 and getPlayerVocation(cid) <= 8 then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doPlayerSetStorageValue(cid, storage, 1) doPlayerSendTextMessage(cid, 25, "Parabens vc foi promovido!") elseif getPlayerVocation(cid) == 14 then doPlayerSetVocation(cid, 16) doPlayerSetStorageValue(cid, storage, 1) doPlayerSendTextMessage(cid, 25, "Parabens vc foi promovido!") end return true end Dae vc faz assim: deleta a vocacao master infernalist e bota id 16 na epic lord drunou
  18. Killua

    NPC Muralha

    Ja tem esses bixos em ot baiak: <?xml version="1.0" encoding="UTF-8"?> <monster name="Dont Lure" nameDescription="Dont Lure" race="fire" experience="15000" speed="0" manacost="0"> <health now="500000" max="500000"/> <look type="12" head="0" body="123" legs="97" feet="94" corpse="6068"/> <targetchange interval="10000" 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 canpushcreatures="1"/> <flag staticattack="90"/> <flag targetdistance="1"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="2000" skill="230" attack="235"/> <attack name="manadrain" interval="4000" chance="18" radius="8" target="0" min="-600" max="-1100"> <attribute key="areaEffect" value="bluebubble"/> </attack> <attack name="physical" interval="30000" chance="100" range="4" target="1" radius="4" min="-300" max="-530"> <attribute key="areaEffect" value="teleport"/> </attack> <attack name="physical" interval="5000" chance="20" range="2" target="1" min="-50" max="-1175"> <attribute key="shootEffect" value="whirlwindsword"/> </attack> <attack name="death" interval="3000" chance="15" length="8" spread="0" min="-250" max="-600"> <attribute key="areaEffect" value="mortarea"/> </attack> <attack name="ice" interval="3000" chance="18" radius="6" target="0" min="-660" max="-780"> <attribute key="areaEffect" value="bigplants"/> </attack> </attacks> <defenses armor="70" defense="65"> <defense name="healing" interval="3000" chance="20" min="2000" max="2500"> <attribute key="areaEffect" value="blueshimmer"/> </defense> <defense name="speed" interval="4000" chance="80" speedchange="440" duration="6000"> <attribute key="areaEffect" value="redshimmer"/> </defense> </defenses> <elements> <element icePercent="15"/> <element holyPercent="-10"/> <element deathPercent="20"/> </elements> <immunities> <immunity physical="0"/> <immunity energy="1"/> <immunity earth="1"/> <immunity fire="1"/> <immunity paralyze="1"/> <immunity invisible="1"/> </immunities> <summons maxSummons="4"> <summon name="deathslicer" interval="30000" chance="100"/> <summon name="deathslicer" interval="30000" chance="100"/> <summon name="deathslicer" interval="30000" chance="100"/> <summon name="deathslicer" interval="30000" chance="100"/> </summons> <voices interval="5000" chance="30"> <voice sentence="COME AND GIVE ME SOME AMUSEMENT!" yell="1"/> <voice sentence="IS THAT THE BEST YOU HAVE TO OFFER, TIBIANS?" yell="1"/> <voice sentence="I AM GHAZBARAN OF THE TRIANGLE... AND I AM HERE TO CHALLENGE YOU ALL!" yell="1"/> <voice sentence="FLAWLESS VICTORY!"/> </voices> <loot> <item id="2160" chance="100000" countmax="4" /> -- crystal coin <item id="2514" chance="18000" /> -- mastermind shield <item id="6300" chance="12000" /> -- death ring <item id="5943" chance="6000" /> -- morgaroth hearts <item id="2003" chance="100000" > -- bag <inside> <item id="7431" chance="14000" /> -- demonbone <item id="2393" chance="60000" /> -- giant sword <item id="2195" chance="14033" /> -- boots of haste <item id="2112" chance="4100"/> --addon doll </inside> </item> </loot> </monster>
  19. Killua

    Promotion por Quest

    Beleza vo faze um script aq vai ficar grandao jaja eu edito Lord Drunou e Epic Lord Drunou tao com o mesmo id (14), vc tem que mudar algum. E Master Infernalist nao tem evolucao.
  20. Killua

    Promotion por Quest

    Ele so deixar jogadores com a vocacao acima de 4 fazer essa quest, ou seja, master sorcerer, elder druid, royal paladin e elite knight. Dai ele da mais 4 de vocacao pro cara, ex: Se o cara eh master sorcerer (voc 5) ele passa a ser 9. Mas pelo q vc falou ai que sao 6 classes de cada tipo, vai ter que ser um script diferente. Me explica melhor essas classes e quais classes vc quer que possam fazer a quest.
  21. Killua

    Promotion por Quest

    A maioria das pessoas, quando colocam uma vocacao nova, tem um problema: sempre que o cara desloga ele perde a voc nova. Na pasta lib tem um arquivo chamado 031-vocations.lua que eh assim function isSorcerer(cid) return isInArray({1, 5}, getPlayerVocation(cid)) end function isDruid(cid) return isInArray({2, 6}, getPlayerVocation(cid)) end function isPaladin(cid) return isInArray({3, 7}, getPlayerVocation(cid)) end function isKnight(cid) return isInArray({4, 8}, getPlayerVocation(cid)) end function isRookie(cid) return isInArray({0}, getPlayerVocation(cid)) end E, pras vocacoes novas poderem usar todas as runas, magias e itens, vc tem que deixar assim: function isSorcerer(cid) return isInArray({1, 5, 9}, getPlayerVocation(cid)) end function isDruid(cid) return isInArray({2, 6, 10}, getPlayerVocation(cid)) end function isPaladin(cid) return isInArray({3, 7, 11}, getPlayerVocation(cid)) end function isKnight(cid) return isInArray({4, 8, 12}, getPlayerVocation(cid)) end function isRookie(cid) return isInArray({0}, getPlayerVocation(cid)) end
  22. Killua

    Promotion por Quest

    local storage = 23232 function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, storage) < 1 then if getPlayerVocation(cid) > 4 then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doPlayerSendTextMessage(cid, 25, "Parabens, voce foi promovido!") doPlayerSetStorageValue(cid, storage, 1) else doPlayerSendCancel(cid, "Voce precisa ser promovido pra se promover novamente.") end else doPlayerSendCancel(cid, "The chest is empty.") end return true end Esse eh o script da quest, vc vai configurar ele igual uma quest normal, registrar no actions.xml e colocar uniqueID no bau PS: Seu server ja ta arrumada a questao da voc nova ne? Nao fica perdendo dps q ganha e tambem ja ta na 031-vocations ?
  23. Eh so vc ir copiando a partir do elseif ate o doPlayerSendCancel(cid, "The chest is empty.") end
  24. É oseguinte amigo: Nas partes doPlayerAddItem(cid, ID, 1) você substitui 'ID' pelo id do item que o cara vai ganhar. Os UniqueIDs (encontrados nas partes if item.uid == numero then) são os uids que você vai colocar nas chests pelo map editor e tambem sao os ids que você vai registrar no actions.xml, tipo assim: <action uniqueid = "3341;3342;3343" script = "NOME DO ARQUIVO.lua" /> E nos doPlayerSendTextMessage(cid, 25, "You have found a ITEM.") você muda ITEM pro nome do item que você colocar.
  • Quem Está Navegando   0 membros estão online

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