-
Total de itens
904 -
Registro em
-
Última visita
-
Dias Ganhos
13
Tudo que Killua postou
-
Você já deve ter um sistema de pontos que cria uma tabela chamada points na sua database. Para remover ou vai ter que modificar um pouco o código do Omgea ou o do seu sistema de pontos.
-
Que bom pode fechar o tópico? Para cair em cima, tente assim: local distaceEffect = 5 local skillID = 5 local ataque = 50 function onUse(cid, item, fromPosition, itemEx, toPosition) local formula = math.random(getPlayerSkillLevel(cid, skillID) + ataque / 3 + getPlayerLevel(cid) / 5, getPlayerSkillLevel(cid, skillID) + ataque + getPlayerLevel(cid) / 5) if not isMonster(itemEx.uid) and not isPlayer(itemEx.uid) then doPlayerSendCancel(cid, "Voce so pode usar em criaturas.") return true end if itemEx.uid == cid then doPlayerSendCancel(cid, "Voce nao pode usar em si mesmo.") return true end local pos = getThingPos(itemEx.uid) doRemoveItem(item.uid, 1) doSendDistanceShoot(getThingPos(cid), pos, distanceEffect) doCreatureAddHealth(itemEx.uid, - formula) doCreateItem(2545, 1, {x = pos.x, y = pos.y, z = pos.z, stackpos = 253}) return true end
-
Desculpe, estava sendo por falta de eu testar. Este eu fiz testando e tá certinho: function onSay(cid, words, param, channel) if param == "" then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Para saber a vida maxima de alguem diga !vida playername") return true end if isPremium(cid) then for _, tid in pairs(getPlayersOnline()) do local pid = getPlayerByName(param) if isInArray(tid, pid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nVida de [ " .. getCreatureName(pid) .. " ] atual: " .. getCreatureHealth(pid) .. "\nVida de [ " .. getCreatureName(pid) .. " ] máxima: " .. getCreatureMaxHealth(pid) .. "") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O jogador " .. param .. " nao esta online ou nao existe") end end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Apenas jogadores VIP podem utilizar este comando para visualizar informações de outros jogadores.") end return true end
-
Poste o script para que pessoas que tenham a mesma dúvida que vc possam usar, contribuindo com a comunidade
-
Testa assim entao local distaceEffect = 5 local skillID = 5 local ataque = 50 function onUse(cid, item, fromPosition, itemEx, toPosition) local formula = math.random(getPlayerSkillLevel(cid, skillID) + ataque / 3 + getPlayerLevel(cid) / 5, getPlayerSkillLevel(cid, skillID) + ataque + getPlayerLevel(cid) / 5) if not isMonster(itemEx.uid) and not isPlayer(itemEx.uid) then doPlayerSendCancel(cid, "Voce so pode usar em criaturas.") return true end if itemEx.uid == cid then doPlayerSendCancel(cid, "Voce nao pode usar em si mesmo.") return true end doRemoveItem(item.uid, 1) doSendDistanceShoot(getThingPos(cid), getThingPos(itemEx.uid), distanceEffect) doCreatureAddHealth(itemEx.uid, - formula) doCreateItem(2545, 1, getThingPos(itemEx.uid)) return true end
-
pedido [movements] Editar Script De Mensagem e guild em tile
pergunta respondeu ao AdilsonHacker de Killua em Scripts
Tópico movido para a seção de dúvidas e pedidos resolvidos.- 12 respostas
-
- editar script
- resolvido
-
(e 1 mais)
Tags:
-
é uma action, sabe criar a tag? local level = 100 function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerLevel(cid) < level then doPlayerSendCancel(cid, "Voce precisa de level " .. level .. " ou superior para passar.") return true end if isPremium(cid) then doTeleportThing(cid, toPosition) doPlayerSendTextMessage(cid, 25, "Bem Vindo") else doPlayerSendCancel(cid, "Somente jogadores premium podem passar.") doTeleportThing(cid, fromPosition) end return true end
-
pedido [Talkactions] Sistema Online Diferente
pergunta respondeu ao AdilsonHacker de Killua em Scripts
Tópico movido para a seção de dúvidas e pedidos resolvidos. -
pedido [movements] Editar Script De Mensagem e guild em tile
pergunta respondeu ao AdilsonHacker de Killua em Scripts
function onStepIn(cid, item, position, fromPosition) local time_exauted = 120 -- em segundos local storage = 11679 -- n mexa local level = 50 local t = {x=1000,y=1000,z=7} if not isPlayer(cid) then return true end if getPlayerGuildId(cid) == nil or getPlayerGuildId(cid) <= 0 or getPlayerGuildId(cid) == false then doPlayerSendCancel(cid, "Voce precisa ter uma guild para invadir o castelo!") doTeleportThing(cid, t) return false end if getPlayerLevel(cid) < level then doTeleportThing(cid, fromPosition, true) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) doPlayerSendCancel(cid,"You Need level " .. level .. " or more to pass.") return true end if getPlayerStorageValue(cid, storage) <= os.time() then doBroadcastMessage("O Jogador ".. getCreatureName(cid) .." da guild ".. getPlayerGuildName(cid) .." está invadindo o Castelo. Aviso aos donos atuais, corram para protegê-lo!", 21) setPlayerStorageValue(cid, storage, os.time()+time_exauted) end return true end- 12 respostas
-
- editar script
- resolvido
-
(e 1 mais)
Tags:
-
pedido [movements] Editar Script De Mensagem e guild em tile
pergunta respondeu ao AdilsonHacker de Killua em Scripts
function onStepIn(cid, item, position, fromPosition) local time_exauted = 120 -- em segundos local storage = 11679 -- n mexa local level = 50 local t = {x=1000,y=1000,z=7} if getPlayerLevel(cid) < level then doTeleportThing(cid, fromPosition, true) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) doPlayerSendCancel(cid,"You Need level " .. level .. " or more to pass.") return true end if getPlayerGuildId(cid) == false or getPlayerGuildId(cid) == nil or not getPlayerGuildId(cid) then doTeleportThing(cid, t) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only players with guilds.") return true end if getPlayerStorageValue(cid, storage) <= os.time() then doBroadcastMessage("O Jogador ".. getCreatureName(cid) .." da guild ".. getPlayerGuildName(cid) .." está invadindo o Castelo. Aviso aos donos atuais, corram para protegê-lo!", 21) setPlayerStorageValue(cid, storage, os.time()+time_exauted) end return true end- 12 respostas
-
- editar script
- resolvido
-
(e 1 mais)
Tags:
-
Tá aqui, fiz uma formula meio maluca mas acho que vai ficar boa rs local distaceEffect = 5 local skillID = 5 function onUse(cid, item, fromPosition, itemEx, toPosition) local formula = math.random(getPlayerSkillLevel(cid, skillID) + getItemAttack(item.uid) / 3 + getPlayerLevel(cid) / 5, getPlayerSkillLevel(cid, skillID) + getItemAttack(item.uid) + getPlayerLevel(cid) / 5) if not isMonster(itemEx.uid) and not isPlayer(itemEx.uid) then doPlayerSendCancel(cid, "Voce so pode usar em criaturas.") return true end if itemEx.uid == cid then doPlayerSendCancel(cid, "Voce nao pode usar em si mesmo.") return true end doRemoveItem(item.uid, 1) doSendDistanceShoot(getThingPos(cid), getThingPos(itemEx.uid), distanceEffect) doCreatureAddHealth(itemEx.uid, - formula) doCreateItem(2545, 1, getThingPos(itemEx.uid)) return true end
-
doCreateItem(item.itemid, 2545, getThingPos(itemEx.uid)) Nessa linha vc tá tentando criar 2545 itens debaixo do monstro.... Use assim: doCreateItem(2545, 1, getThingPos(itemEx.uid)) Use assim que vai funcionar. Como vc quer que o dano seja calculado?? Obrigado por me lembrar, NIl.
-
sistema [Blood Castle] Evento Otimizado![12/04/14]
tópico respondeu ao Killua de Killua em Mods, funções e outros
KKKKKKKKK é mesmo, mas eu adorei fazer -
Cara to achando q vc n tem a função getCreatureHealth.... Testa assim e ve se muda o erro function onSay(cid, words, param, channel) if param == "" then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Para saber a vida maxima de alguem diga !vida playername") return true end if isPremium(cid) then local pid = getPlayerByName(param) if not pid == false or isPlayerGhost(pid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O jogador com o nome " .. param .. " não esta online ou não existe.") return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nVida de [ " .. getCreatureName(pid) .. " ] atual: " .. getCreatureHealth(pid) .. "\nVida de [ " .. getCreatureName(pid) .. " ] máxima: " .. getCreatureMaxHealth(pid) .. "") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Apenas jogadores VIP podem utilizar este comando para visualizar informações de outros jogadores.") end return true end
-
Manda o erro fazendo favor
-
Testa assim function onSay(cid, words, param, channel) if param == "" then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nVida atual: " .. getCreatureHealth(cid) .. "\nVida máxima: " .. getCreatureMaxHealth(cid) .. "") return true end if isPremium(cid) then local pid = getPlayerByName(param) if not pid == false or isPlayerGhost(pid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O jogador com o nome " .. param .. " não esta online ou não existe.") return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nVida de [ " .. getCreatureName(pid) .. " ] atual: " .. getCreatureHealth(pid) .. "\nVida de [ " .. getCreatureName(pid) .. " ] máxima: " .. getCreatureMaxHealth(pid) .. "") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Apenas jogadores VIP podem utilizar este comando para visualizar informações de outros jogadores.") end return true end
-
sistema [Blood Castle] Evento Otimizado![12/04/14]
tópico respondeu ao Killua de Killua em Mods, funções e outros
Vc instalou tudo corretamente? Aparece algum erro? Me manda o script bloodCreatureGuarda.lua -
o primeiro: Qual o problema do segundo? Ele da algum erro?
-
Crie dropitem.lua em data/actions/scripts e coloque o código que passei acima. Depois vai no actions.xml e coloca essa tag: <action itemid="10155" script="dropitem.lua"/> No lugar de 10155 coloca o id do item que vc vai usar.
-
pedido [Talkactions] Sistema Online Diferente
pergunta respondeu ao AdilsonHacker de Killua em Scripts
Leia meus comentários no código local config = { showGamemasters = getBooleanFromString(getConfigValue('displayGamemastersWithOnlineCommand')) } function onSay(cid, words, param, channel) local players = getPlayersOnline() local strings = {""} local sorc,druid,paladin,knight,miner,elf = 0,0,0,0,0,0 local i, position = 1, 1 local added = false for _, pid in ipairs(players) do -- Implementacion por Xafterin. if isSorcerer(pid) then sorc = sorc + 1 elseif isDruid(pid) then druid = druid + 1 elseif isPaladin(pid) then paladin = paladin + 1 elseif isKnight(pid) then knight = knight + 1 elseif isInArray({5, 5}, getPlayerVocation(pid)) then -- Coloque o id da voc miner, id da voc promote miner miner = miner + 1 elseif isInArray({6, 6}, getPlayerVocation(pid)) then -- Coloque o id da voc elf, id da voc promote elf elf = elf + 1 end --- if(added) then if(i > (position * 7)) then strings[position] = strings[position] .. "," position = position + 1 strings[position] = "" else strings[position] = i == 1 and "" or strings[position] .. ", " end end if((config.showGamemasters or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES) or not getPlayerCustomFlagValue(pid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) and (not isPlayerGhost(pid) or getPlayerGhostAccess(cid) >= getPlayerGhostAccess(pid))) then strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]" i = i + 1 added = true else added = false end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (i - 1) .. " player(s) online on OT Server:") for i, str in ipairs(strings) do if(str:sub(str:len()) ~= ",") then str = str .. ". ".. sorc .." sorcerers, ".. druid .." druids, ".. paladin .." paladins, ".. knight .." knights ".. miner .." miners and ".. elf .." elfs." end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, str) end return true end -
Quando criar um tópico de pedido, evite títulos com esse. Seu título deve ser um breve resumo ou especificação do problema, como dito acima. Tópico movido para Pedidos e Dúvidas Resolvidos - Servidores derivados
-
Aqui sua action, sabe criar a tag? function onUse(cid, item, fromPosition, itemEx, toPosition) if not isMonster(itemEx.uid) and not isPlayer(itemEx.uid) then doPlayerSendCancel(cid, "Voce so pode usar em criaturas.") return true end if itemEx.uid == cid then doPlayerSendCancel(cid, "Voce nao pode usar em si mesmo.") return true end doRemoveItem(item.uid, 1) doCreateItem(item.itemid, 1, getThingPos(itemEx.uid)) return true end
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.