Ir para conteúdo

SkyLigh

Lorde
  • Total de itens

    2183
  • Registro em

  • Última visita

  • Dias Ganhos

    23

Tudo que SkyLigh postou

  1. SkyLigh

    Bless

    tenta remover os outros scripts de bless deixa só o que te mandei e o de talkaction
  2. SkyLigh

    Bless

    blessedplayer.lua (data\creaturescripts\scripts function onDeath(cid) for b = 1, 5 do if isPlayer(cid) and getPlayerBlessing(cid, b) and getCreatureSkullType(cid) < 4 then doCreatureSetDropLoot(cid, false) end end return true end creaturescripts.xml <event type="death" name="BlessedPlayer" event="script" value="blessedplayer.lua"/ Em login.lua registerCreatureEvent(cid, "BlessedPlayer")
  3. Pode mandar uma print de como ficou seu coconfig.lua?
  4. Não é pra alterar o número 10 por 0
  5. Vai no config.lua e na linha deathLostPercent = 10 Para vê se vaí perder algo. E utilize o script que eu postei aqui no tópico
  6. Se acontecer algum erro ou algo do tipo poste o erro ou uma print
  7. blessedplayer.lua (data\creaturescripts\scripts function onDeath(cid) for b = 1, 5 do if isPlayer(cid) and getPlayerBlessing(cid, b) and getCreatureSkullType(cid) < 4 then doCreatureSetDropLoot(cid, false) end end return true end creaturescripts.xml <event type="death" name="BlessedPlayer" event="script" value="blessedplayer.lua"/Em login.lua registerCreatureEvent(cid, "BlessedPlayer")
  8. Por que você não muda o tfs ?
  9. Agora vai eu acho function onSay(cid, words, param) local CHANNEL_HELP = 7 local player = Player(cid) local storage = 456112 if words == "/mute" then local mute = param:split(",") if mute[1] == nil or mute[1] == " " then player:sendCancelMessage("Invalid player specified.") return false end if mute[2] == nil or mute[2] == " " then player:sendCancelMessage("Invalid time specified.") return false end local target = Player(mute[1]) local time = tonumber(mute[2]) local condition = Condition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT) condition:setParameter(CONDITION_PARAM_SUBID, CHANNEL_HELP) condition:setParameter(CONDITION_PARAM_TICKS, time*60*1000) if player:getAccountType() < ACCOUNT_TYPE_TUTOR then return false end if target == nil then player:sendCancelMessage("A player with that name is not online.") return false end if target:getAccountType() >= ACCOUNT_TYPE_TUTOR then player:sendCancelMessage("Only player can be mutated") return false end target:addCondition(condition) sendChannelMessage(CHANNEL_HELP, TALKTYPE_CHANNEL_R1, target:getName() .. " has been muted by " .. player:getName() .. " for using Help Channel inappropriately.") target:setStorageValue(storage, 1) return false end if words == "/unmute" then local remove = Player(param) if player:getAccountType() < ACCOUNT_TYPE_TUTOR then return false end if remove == nil then player:sendCancelMessage("A player with that name is not online.") return false end if remove:getAccountType() >= ACCOUNT_TYPE_TUTOR then return false end if remove:getStorageValue(storage) == 1 then remove:removeCondition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT, CHANNEL_HELP) sendChannelMessage(CHANNEL_HELP, TALKTYPE_CHANNEL_R1, remove:getName() .. " has been unmuted by " .. player:getName() .. ".") remove:setStorageValue(storage, -1) else player:sendCancelMessage("A player " .. remove:getName() .. "is not mutated") end end return false end
  10. Tente function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, 21, "explaining the talkaction") return true end local t = string.explode(param, ",") player = getPlayerByName(t[1]) local condition = createConditionObject(CONDITION_MUTED) if(not t[2] or t[2] == '') then doPlayerSendTextMessage(cid, 21, "explaining the talkaction") end if t[2] then time = tonumber(t[2]*1000) -- 10*1000 is 10 seconds. if(isPlayer(player) == TRUE and getPlayerGroupId(cid) > getPlayerGroupId(player) and getPlayerFlagValue(player, PLAYERFLAG_CANNOTBEMUTED) == false) then setConditionParam(condition, CONDITION_PARAM_SUBID, 4) doPlayerSendTextMessage(player, MESSAGE_STATUS_WARNING, "You have been muted by " .. getPlayerName(cid) .. " for " .. t[2] .. " seconds.") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(player) .. " has been muted for " .. t[2] .. " seconds.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[1] .. " is not currently online or cannot be muted.") end end return true end Na linha setConditionParam(condition, CONDITION_PARAM_SUBID, 4)e onde esta 4 ponha o id do channel
  11. Vi um post do vodkart tente isso vai nas sources e procure por player.cpp bool Player::isMuted(uint16_t channelId, SpeakClasses type, uint32_t& time){time = 0;if(hasFlag(PlayerFlag_CannotBeMuted))return false;int32_t muteTicks = 0;for(ConditionList::iterator it = conditions.begin(); it != conditions.end(); ++it){if((*it)->getType() == CONDITION_MUTED && (*it)->getSubId() == 0 && (*it)->getTicks() > muteTicks)muteTicks = (*it)->getTicks();}time = (uint32_t)muteTicks / 1000;return time > 0 && type != SPEAK_PRIVATE_PN && (type != SPEAK_CHANNEL_Y || (channelId != CHANNEL_GUILD && !g_chat.isPrivateChannel(channelId)));}e troque porbool Player::isMuted(uint16_t channelId, SpeakClasses type, uint32_t& time){time = 0;if(hasFlag(PlayerFlag_CannotBeMuted))return false;int32_t muteTicks = 0;for(ConditionList::iterator it = conditions.begin(); it != conditions.end(); ++it){if((*it)->getType() == CONDITION_MUTED && (*it)->getSubId() == 0 && (*it)->getTicks() > muteTicks)muteTicks = (*it)->getTicks();}time = (uint32_t)muteTicks / 1000;return time > 0 && type != SPEAK_PRIVATE_PN && (type != SPEAK_CHANNEL_Y || (channelId != CHANNEL_GUILD && channelId != CHANNEL_DEFAULT && !g_chat.isPrivateChannel(channelId)));}obs: não tenho certeza se vai funcionar caso não funcione, desta maneira tenho ctz que vai:
  12. Que eu saiba não existe código pra isso, mais existe código pra deixar o player mudo também seria útil não acha? Se quiser um script com a função: http://www.xtibia.com/forum/topic/100819-aplicar-muted-em-um-jogador/
  13. Os 2 funcionaram?
  14. SkyLigh

    GTA V PC Online

    Alguém joga? Quem joga deixa a socialclub ai em baixo fazendo favor e vms criar um comando?
  15. Parabéns ficou pik
  16. tenta esse em data/creaturescripts/scripts crie um arquivo .lua e renomeie para death_corpse e adicione isso dentro: function onDeath(cid, corpse) local table = { [1] = 1, --[vocation] = id do corpse [2] = 1, [3] = 1, [4] = 1 } doTransformItem(corpse.uid, table[getPlayerVocation(cid)] ) doDecayItem(corpse.uid) end em creaturescripts.xml essa tag <event type="death" name="deathCorpse" event="script" value="death_corpse.lua"/> em login.lua registerCreatureEvent(cid, "deathCorpse")
  17. Tamanho 200x267 Tema Halo Pedido Foto de perfil Sem tipografia Cores de sua preferência
  18. já tentou mudar os números só pra testar ?
  19. http://speedy.sh/kXed3/forgottenserver.s3db
  20. Duvida sanada reportado
  21. http://www.xtibia.com/forum/topic/101874-tutorial-1-script-de-invasao-para-ot-sql/
  22. Xrunning tenho umas aqui que era do meu fórum mais como acabo pode usar . Admin - http://i.imgur.com/OEVMf0T.png Diretor - http://i.imgur.com/sCLlc2D.png Coordenador - http://i.imgur.com/HuPKhAb.png Moderador - http://i.imgur.com/5qqmPIj.png Sub-Moderador - http://i.imgur.com/cPnTZoC.png Estagiário - http://i.imgur.com/aNxEnfS.png Herói - http://i.imgur.com/VxDKcOU.png
  23. SkyLigh

    Mudança de nome

    Guinho posso te da uma dica ? Acho melhor você criar outra conta pois você não tem nem 50 posts tem -4 pontos negativos
  24. SkyLigh

    Modem Wifi

    leko já me comuniquei com técnico ele não sabe ainda eu também sei fazer instalação de modens ja fiz muitas vezes para pessoas so que estou com problema agora que é foda gastar 200 reais num jogo de video game e não conseguir baixar ele
  • Quem Está Navegando   0 membros estão online

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