Ir para conteúdo

Wiz Khaliifa

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    Wiz Khaliifa deu reputação a Caronte em (Resolvido)Duvida CreatureScripts   
    Eu não coloquei porque você não pediu antes '-',  fiz exatamente como você pediu, em duas versões.
     
     
    Eu ajudaria, só que fiquei sem net por quase o dia todo.
    mas o ziptoid já ajudou
  2. Gostei
    Wiz Khaliifa deu reputação a MaTTch em [PEDIDO] Talkaction !Online   
    local config = { showGamemasters = getBooleanFromString(getConfigValue('displayGamemastersWithOnlineCommand')), showLevel = "yes", showVocations = "yes" } config.showLevel, config.showVocations = getBooleanFromString(config.showLevel), getBooleanFromString(config.showVocations) function onSay(cid, words, param, channel) local strings, i, position, added, vocations, vocStr = {""}, 1, 1, false, {}, "" for _, pid in ipairs(getPlayersOnline()) do 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(vocations[getPlayerVocation(pid)] ~= nil) then vocations[getPlayerVocation(pid)] = vocations[getPlayerVocation(pid)] + 1 else vocations[getPlayerVocation(pid)] = 1 end added = false 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) .. ""..(config.showLevel and " [" .. getPlayerLevel(pid) .. "]" or "").."" i = i + 1 added = true end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (i - 1) .. " player" .. (i > 1 and "s" or "") .. " online:") for i, str in ipairs(strings) do if(str:sub(str:len()) ~= ",") then str = str .. "." end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, str) end if(config.showVocations) then for vocId, quant in pairs(vocations) do vocStr = vocStr .. ""..getVocationInfo(vocId).name.." ["..quant.."], " end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Vocations: "..vocStr:gsub(", $", ".")) end return true end
  3. Gostei
    Wiz Khaliifa deu reputação a Caronte em (Resolvido)Duvida CreatureScripts   
    Tenta aí:
    function onDeath(cid, corpse, deathList) if not isPlayer(cid) then return true end local killer = deathList[1] if isMonster(killer) then doBroadcastMessage(getCreatureName(cid).." ["..getPlayerLevel(cid).."] foi morto pelo monstro "..getCreatureName(killer).."." , MESSAGE_STATUS_CONSOLE_RED) elseif isPlayer(killer) then doBroadcastMessage(getCreatureName(cid).." ["..getPlayerLevel(cid).."] foi morto por "..getCreatureName(killer)..".", MESSAGE_STATUS_CONSOLE_RED) end return true end  
    Registra no login...

    Testado:
     
    16:59 Caronte [38] foi morto pelo monstro Fire Elemental.
     
     
     
    Ou:
    function onDeath(cid, corpse, deathList) if not isPlayer(cid) then return true end local killer = deathList[1] if isMonster(killer) then doBroadcastMessage(getCreatureName(cid).." [Level: "..getPlayerLevel(cid).."] foi morto pelo monstro "..getCreatureName(killer).."." , MESSAGE_STATUS_CONSOLE_RED) elseif isPlayer(killer) then doBroadcastMessage(getCreatureName(cid).." [Level: "..getPlayerLevel(cid).."] foi morto por "..getCreatureName(killer)..".", MESSAGE_STATUS_CONSOLE_RED) end return true end 16:59 Caronte [Level: 38] foi morto pelo monstro Fire Elemental.

Informação Importante

Confirmação de Termo