Ir para conteúdo

Líderes

Conteúdo Popular

Exibindo conteúdo com a maior reputação em 04/01/21 em todas áreas

  1. [Tabela] Mensagem ao Matar Monstros

    Sun e um outro reagiu a Vodkart por uma resposta no tópico

    2 pontos
    function onKill(cid, target, lastHit) local tab = { ["rat"] = {msg = "oi", storage = 78001, item = 2160}, ["tiger"] = {msg = "ola", storage = 78002, item = 2159} } if isPlayer(cid) and isMonster(target) then local var = tab[getCreatureName(target):lower()] if var then print(var.msg, var.storage, var.item) -- aqui vc faz oq quiser end end return true end
  2. [Tabela] Mensagem ao Matar Monstros

    Garoto Prodigio reagiu a Sun por uma resposta no tópico

    1 ponto
    local cfg = { ["mob"] = {storage = 1, msg = "You are gaye!", item = 123, quanti = 1}, ["mob2"] = {storage = 2, msg = "You are gaye!", item = 123, quanti = 1} } function onKill(cid, target) for monterName, infos in pairs(cfg) do if getCreatureName(target) == monterName then setPlayerStorageValue(cid, infos.storage, 1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, infos.msg) doPlayerAddItem(cid, infos.item, infos.quanti) break end end return true end testa ae pq eu não testei. @Garoto Prodigio
  3. [Tabela] Mensagem ao Matar Monstros

    Garoto Prodigio reagiu a Vodkart por uma resposta no tópico

    1 ponto
    vc registrou o evento no player?
  4. Adicionar item sem o Moviments.xml

    Rato599 reagiu a Skydangerous por uma resposta no tópico

    1 ponto
    O arquivo fica em: data/scripts/movements/equipment/unscripted-equipments.lua
  5. 1 ponto
    Oloco garoto prodígio, é tão simples pow.. más ainda temos bola de cristal pra advinhar qual versão tu usa.
  6. Spell - Big Regeneration

    Fabi Marzan reagiu a 139 por uma resposta no tópico

    1 ponto
    @elielder local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local voc_bonus = { -- valor da cura adicional, ex: 0%, 10%, 50%, 100%, 200% ["Tanque"] = 50, ["Suporte"] = 25, ["Dano"] = 0, } local table_vocs = { -- last_id é o último id da vocação, a tabela precisa estar em ordem crescente. [1] = {last_id = 12, voc = "Naruto", classe = "Dano"}, [2] = {last_id = 20, voc = "Sasuke", classe = "Dano"}, [3] = {last_id = 30, voc = "Chouji", classe = "Tanque"}, [4] = {last_id = 40, voc = "Hidan", classe = "Tanque"}, [5] = {last_id = 50, voc = "Hashirama", classe = "Suporte"}, [6] = {last_id = 60, voc = "Obito", classe = "Suporte"}, } local function getBonus(cid, base) local pvoc = getPlayerVocation(cid) for k, _ in ipairs(table_vocs) do if pvoc <= table_vocs[k].last_id then bonus = voc_bonus[table_vocs[k].classe]/100 + 1 total = base * bonus return total end end end function onGetPlayerMinMaxValues(cid, level, magLevel) local min = ((level*0)+(magLevel*0)+200) local max = ((level*0)+(magLevel*0)+250) return getBonus(cid, min), getBonus(cid, max) end setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetPlayerMinMaxValues") function onCastSpell(cid, var) return doCombat(cid, combat, var) end
  7. [8.60+] Rutted Earth

    jbrenner reagiu a William Ferreira por uma resposta no tópico

    1 ponto
    Rutted Earth Imagem: RME/data/versão/grounds.xml Antes da linha: </materials> Adicione: <brush name="Rutted Earth" type="ground" server_lookid="12238" z-order="5000"> <item id="12238" chance="25"/> <item id="12239" chance="24"/> <item id="12240" chance="23"/> <item id="12241" chance="22"/> <border align="outer" id="558"/> <border align="inner" to="none" id="0"/> </brush> RME/Data/10.31/borders.xml <border id="558"> -- Rutted Earth Willian -- <borderitem edge="n" item="12243"/> <borderitem edge="e" item="12244"/> <borderitem edge="s" item="12242"/> <borderitem edge="w" item="12245"/> <borderitem edge="cnw" item="12252"/> <borderitem edge="cne" item="12253"/> <borderitem edge="csw" item="12251"/> <borderitem edge="cse" item="12250"/> <borderitem edge="dnw" item="12248"/> <borderitem edge="dne" item="12249"/> <borderitem edge="dsw" item="12247"/> <borderitem edge="dse" item="12246"/> </border> RME/Data/10.31/tilesets.xml Dê CTRL + F e digite <tileset name="Cave">, em baixo de: <terrain> adicione: <brush name="Rutted Earth"/> Se Gostou deixe aquele .
Líderes está configurado para São Paulo/GMT-03:00

Informação Importante

Confirmação de Termo