-
Total de itens
2553 -
Registro em
-
Última visita
-
Dias Ganhos
73
Tudo que zipter98 postou
-
Tópico movido para a seção de dúvidas e pedidos resolvidos.
-
pedido me ajudem a postar imagens no e texto no meu site
pergunta respondeu ao richardvips de zipter98 em Websites
Tópico movido para a seção de dúvidas e pedidos resolvidos.- 9 respostas
-
- post imagen
- post texto
- (e 4 mais)
-
Sobre o NPC, vou arrumar logo. function onKill(cid, target, lastHit) local min_lv = 100 --Level mínimo para a frag contar. if getPlayerStorageValue(cid, 193811) >= 1 and getPlayerStorageValue(cid, 193811) <= qnt_kill then if isPlayer(target) then if getPlayerLevel(target) >= min_lv then if getPlayerStorageValue(cid, 193811) >= 2 then setPlayerStorageValue(cid, 193811, getPlayerStorageValue(cid, 193811) - 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You killed 1 player. You need kill more "..(getPlayerStorageValue(cid, 193811) - 1).." "..((getPlayerStorageValue(cid, 193811) - 1) > 1 and "players" or "player").." to complete the task.") else setPlayerStorageValue(cid, 183811, 0) setPlayerStorageValue(cid, 918381, 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Congratulations, you complete the task! Talk to the NPC for get your prize.") end end end end return true end function onLogin(cid) registerCreatureEvent(cid, "taskPlayer") return true end NPC:
-
dúvida Como saber qual site é compatível com meu server
pergunta respondeu ao Estagiario de zipter98 em Websites
Tópico movido para a seção de dúvidas e pedidos resolvidos. -
Tenta assim: function onKill(cid, target, lastHit) local qnt_kill = 50 --Quantidade necessário de players que o jogador deverá matar. local min_lv = 100 --Level mínimo para a frag contar. if getPlayerStorageValue(cid, 193811) >= 1 and getPlayerStorageValue(cid, 193811) <= qnt_kill then if isPlayer(target) then if getPlayerLevel(target) >= min_lv then if getPlayerStorageValue(cid, 193811) >= 2 then setPlayerStorageValue(cid, 193811, getPlayerStorageValue(cid, 193811) - 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You killed 1 player. You need kill more "..(qnt_kill - getPlayerStorageValue(cid, 193811)).." "..((qnt_kill - getPlayerStorageValue(cid, 193811)) > 1 and "players" or "player").." to complete the task.") else setPlayerStorageValue(cid, 183811, 0) setPlayerStorageValue(cid, 918381, 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Congratulations, you complete the task! Talk to the NPC for get your prize.") end end end end return true end function onLogin(cid) registerCreatureEvent(cid, "taskPlayer") return true end
-
Área incorreta, tópico movido. Mais cuidado da próxima vez.
-
Vou alterar aqui o NPC. O valor, sim, você coloca 1. O script .lua do NPC, eu passei acima. O .xml, tente fazer tirando como base outros NPCs no mesmo modelo. #EDIT: Códigos alterados.
-
Tenta esse aqui, se não funcionar e der erro no console, poste-o aqui. function onUse(cid, item, frompos, item2, topos) local cfg = { [3000] = 1000, --[quanto vai healar] = lv mínimo necessário, [6000] = 3000, } local cfg_two = { has_exausted = true, --Terá exausted? [true/sim] [false/não] exausted = 5, --Se colocar true acima, configure o exausted aqui (em segundos). } local heal = {} for a, b in pairs(cfg) do if getPlayerLevel(cid) >= b then table.insert(heal, a) end end if cfg_two.has_exausted == true then if getPlayerStorageValue(cid, 91831) > os.time() then return doPlayerSendCancel(cid, "Wait some seconds to use this again.") end end doCreatureSay(cid, "Hmmm, now I feel better!", TALKTYPE_MONSTER) if cfg_two.has_exausted == true then setPlayerStorageValue(cid, 91831, os.time() + cfg_two.exausted) end doCreatureAddMana(cid, heal[math.random(#heal)]) doRemoveItem(item.uid, 1) return true end
-
Só clicar no Curtir, próximo ao comentário. Sanado, movido.
-
O jogador irá receber a storage automaticamente, após matar os 50 jogadores, ou terá que falar novamente com o NPC? Bom, fiz aqui. Qualquer erro, só postar. NPC: (suponho que você saiba fazer o .xml dele) data/creaturescripts/scripts function onKill(cid, target, lastHit) local qnt_kill = 50 --Quantidade necessário de players que o jogador deverá matar. if getPlayerStorageValue(cid, 193811) >= 1 and getPlayerStorageValue(cid, 193811) <= qnt_kill then if isPlayer(target) then if getPlayerStorageValue(cid, 193811) <= (qnt_kill - 2) then setPlayerStorageValue(cid, 193811, getPlayerStorageValue(cid, 193811) - 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You killed 1 player. You need kill more "..(qnt_kill - getPlayerStorageValue(cid, 193811)).." "..((qnt_kill - getPlayerStorageValue(cid, 193811)) > 1 and "players" or "player").." to complete the task.") else setPlayerStorageValue(cid, 183811, 0) setPlayerStorageValue(cid, 918381, 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Congratulations, you complete the task! Talk to the NPC for get your prize.") end end end return true end function onLogin(cid) registerCreatureEvent(cid, "taskPlayer") return true end Tags: <event type="kill" name="taskPlayer" script="nome do arquivo.lua"/> <event type="login" name="taskPlayerLogin" script="nome do arquivo.lua"/>
-
Área incorreta, tópico movido. Mais cuidado da próxima vez.
- 7 respostas
-
- alguem fas uma capa
- de client de poketibia
- (e 4 mais)
-
Opa, primeiramente, movi para a devida seção. E, respondendo a sua pergunta, depende do nível de profissionalismo da equipe. Se você pretender montar um servidor de Pokémon, e tiver uma equipe com programadores, mappers, scripters, spriters e etc competentes, poderá dar muito mais lucro que um servidor de Tibia. Também entra nisso o nível de inovação. Não são muitos os servidores "bombásticos" de Pokémon devido à tal fato. Ainda há os que se salvam, como, por exemplo: PokeBrO, PSoul, PxG, PAdventures e PStorm. O quê definirá o sucesso (ou lucro, como preferir) do servidor será sua inovação e a capacidade da equipe. Portanto, não há como ter uma resposta concreta sobre qual o melhor - Tibia ou Pokémon. Varia de pessoa para pessoa. Basta ver qual é o mais adequado para você; qual você mais se "encaixa". fim.
-
Tópico movido para a seção de dúvidas e pedidos resolvidos.
-
Tópico movido para a seção de dúvidas e pedidos resolvidos.
-
Tópico movido para a seção de dúvidas e pedidos resolvidos.
-
Tenta assim: function onSay(cid, words, param) local t = string.explode(param, ",") local tempo = xxx --Tempo, em segundos, para o teleport desaparecer. if not tonumber(t[1]) or not tonumber(t[4]) then doPlayerSendTextMessage(cid, 21, "O comando requer a segunda posiçao.") end if doCreateTeleport(1387, {x = t[4], y = t[5], z = t[6]}, {x = t[1], y = t[2], z = t[3]}) then doPlayerSendTextMessage(cid, 25, "O teleport foi criado com sucesso!") end addEvent(function() local pos = {x = tonumber(t[1]), y = tonumber(t[2]), z = tonumber(t[3])} local tp = getTileItemById(pos, 1387).uid if tp > 0 then doRemoveItem(tp, 1) end end, tempo * 1000) return true end
-
Tópico movido para a seção de dúvidas e pedidos resolvidos.
- 9 respostas
-
- vip list
- jogadores vip
- (e 5 mais)
-
Tópico movido para a seção de dúvidas e pedidos resolvidos.
- 9 respostas
-
- ajudem rapido
- resolvido
-
(e 2 mais)
Tags:
-
Tópico movido para a seção de dúvidas e pedidos resolvidos.
-
Esse 20, é a quantidade de pontos, certo? Anyway, function onSay(cid, words, param, channel) local t = param:explode(", ") local player = getPlayerByName(t[1]) local quantidade = tonumber(t[2]) if param == "" then return doPlayerSendCancel(cid, "Command requires param.") elseif not isPlayer(player) then return doPlayerSendCancel(cid, "Sorry, not possible.") elseif quantidade == nil then return doPlayerSendCancel(cid, "Sorry, not possible.") end if getPlayerVipPoints(cid) < quantidade then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Voce nao tem pontos suficiente!!") end doPlayerRemoveVipPoints(cid, quantidade) doPlayerAddVipPoints(player, quantidade) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Voce Transferiu "..quantidade.." pontos para "..getPlayerName(player)..".") f = io.open("data/logs/Pontos.txt", "a+") f:write("Player: "..getPlayerName(cid).." transferiu pontos ("..quantidade..") para "..getPlayerName(player).."\n\n----------------------------------------------------------\n") f:close() return true end Modo de uso: /transfer nome, pontos
-
Só adicionar essa variável? Tipo assim? function onSay(cid, words, param, channel) local t = param:explode(",") local player = getPlayerByName(t[1]) if param == "" then return doPlayerSendCancel(cid, "Command requires param.") elseif not isPlayer(player) then return doPlayerSendCancel(cid, "Sorry, not possible.") end if getPlayerVipPoints(cid) < 20 then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Voce nao tem pontos suficiente!!") end doPlayerRemoveVipPoints(cid, 20) doPlayerAddVipPoints(player, 20) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Voce Transferiu 20 pontos para "..getPlayerName(player)..".") f = io.open("data/logs/Pontos.txt", "a+") f:write("Player: "..getPlayerName(cid).." transferiu pontos para "..getPlayerName(player).."\n\n----------------------------------------------------------\n") f:close() return true end
-
Poderia dar mais detalhes? Por exemplo, qual a porcentagem de força a mais que os pokémons male terão? E isso pode ser feito facilmente sem usar c++/sources. Ah, e essa força é offense ou specialattack?
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.