Ir para conteúdo

ViitinG

Membro
  • Registro em

  • Última visita

Tudo que ViitinG postou

  1. Este erro não é do script que te mandei.. Aqui eu uso o script normalmente..
  2. local exp = 5000000 ---Quanto de experiencia sera perdido local item,quant = 2152,0 -----Item e a quantidade function onDeath(cid, target, damage, flags) if isPlayer(target) then if getPlayerIp(cid) == getPlayerIp(target) then doPlayerAddExp(cid, -exp) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Foi dectado o uso de mc você sera perderá "..exp.." de exp") return true end doPlayerAddItem(cid, item, quant) return true end return true end <event type="death" name="privi" event="script" value="privi.lua"/>
  3. "data/creaturescripts/privi.lua" : local exp = 5000000 ---Quanto de experiencia sera perdido local item,quant = 2152,0 -----Item e a quantidade function onKill(cid, target, damage, flags) if isPlayer(target) then if getPlayerIp(cid) == getPlayerIp(target) then doPlayerAddExp(cid, -exp) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Foi dectado o uso de mc você sera perderá "..exp.." de exp") return true end doPlayerAddItem(cid, item, quant) return true end return true end "data/creaturescripts/creaturescripts.xml" : <event type="kill" name="privi" event="script" value="privi.lua"/> "data/creaturescripts/login.lua" : registerCreatureEvent(cid, "privi")
  4. Seu servidor é mysql né ? Qual seu TFS ?
  5. ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    Tem que liberar as portas 7171 - 7172 no firewall e no modem.
  6. É só copiar e colocar nos lugares que falei e ja está para senior tutor em diante.
  7. "talkactions/scripts/muteplayer" local v = {} for k = 1, 100 do table.insert(v, createConditionObject(CONDITION_MUTED)) setConditionParam(v[k], CONDITION_PARAM_TICKS, k*60*1000) end function onSay(cid, words, param) if (words == "/mute") then local t = string.explode(param, ",") if param == '' then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end local player,time,pid = getPlayerByName(t[1]),t[2],getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você mutou o jogador "..t[1].." por "..time.." minutos.") doAddCondition(player, v[tonumber(time)]) setPlayerStorageValue(player, 90000, os.time()+time*60) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você foi mutado por "..time.." minutos.") elseif (words == "/desmute") then if param == '' then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end local player = getPlayerByNameWildcard(param) if(not player)then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player not found.") return true end if getCreatureCondition(player, CONDITION_MUTED) == false then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "este jogador não está mutado.") return true end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você desmutou o jogador "..param..".") doRemoveCondition(player, CONDITION_MUTED) setPlayerStorageValue(player, 90000, -1) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você foi desmutado.") end return true end "talkactions.xml" <talkaction log="yes" words="/mute;/desmute" access="2" event="script" value="muteplayer.lua"/> "creaturescript/scripts/mute_check" local v = {} for k = 1, 100000 do table.insert(v, createConditionObject(CONDITION_MUTED)) setConditionParam(v[k], CONDITION_PARAM_TICKS, k*1000) end function onLogin(cid) if getPlayerStorageValue(cid, 90000) >= os.time() then doAddCondition(cid, v[tonumber(getPlayerStorageValue(cid, 90000) - os.time())]) end return TRUE end "creaturescript.xml" <event type="login" name="MutePlayer" event="script" value="mute_check.lua"/> Comandos :
  8. Mude a tag do help no "data/XML/channels" para : <channel id="9" name="Help" muted="60" conditionId="4" conditionMessage="You may only place one offer in one minutes."/>
  9. ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    Não Daaniel o arquivo ja é otbm por isso não ta carregando o dele está "BaiakYurots.otbm" no caso ele carrega 2 otbm, um do nome e outro porque ja é otbm.. Tem que ser somente "BaiakYurots".
  10. ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    Vá em "data/world" e mude o arquivo "BaiakYurots.otbm" para "BaiakYurots"
  11. ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    Manda seu config.lua. É só arrumar o nome do OTBM do mapa..
  12. Veja se tem um script chamado "firstitems" em creaturescripts ! Se tiver basta remover o 1kk.
  13. Veja se esse é o script do monster certo e veja se não há mais de um script deste monster com o mesmo nome !! obs : manda o ID da gema !
  14. Aqui : function onUse(cid, item, fromPosition, itemEx, toPosition) local tppos = {x=1095,y=1062,z=7} local exp = 100000 -- Quanto de experience o player irá ganhar?! local default = {2090,6570} local vocs = {2158,2158,2154,2154,2158,2158,2154,2156} for x,i in pairs(default) do doPlayerAddItem(cid,i) doPlayerAddExp(cid, exp) end local bp = doPlayerAddItem(cid,5801,5) local gala = math.random(1,10) for x = 1, gala do doAddContainerItem(bp, 2160, 100) end local add = math.random(1,100) doAddContainerItem(bp, 2160, add) doPlayerAddItem(cid,vocs[getPlayerVocation(cid)],1) local ret = "" for x,i in pairs(default) do if x == 1 then ret = "1 " .. getItemNameById(i) else ret = ret .. ", 1 " ..getItemNameById(i) end end for x,i in pairs(getPlayersOnline()) do doPlayerSendTextMessage(i, 19, "O jogador (" .. getPlayerName(cid).. ") completou o Castle e ganhou 100000 de experiência, "..ret..", 1 "..getItemNameById(vocs[getPlayerVocation(cid)]).." e "..gala..""..string.sub(add,1,10).." crystal coins!") end doTeleportThing(cid,tppos) doSendAnimatedText(getPlayerPosition(cid), "COMPLETOU!", TEXTCOLOR_YELLOW) doSendMagicEffect(getCreaturePosition(cid), math.random(28,28)) doSendMagicEffect(tppos,10) return true end Basta mudar isso :
  15. Obrigado por tirar Nogard ! Nem tinha percebido estou ocupado..
  16. Tem que usar um programa chamado item editor.
  17. function onKill(cid, target, lastHit) if isPlayer(cid) and isPlayer(target) then doPlayerAddItem(cid, 2160, 1) end end return TRUE end
  18. ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    Sim acho que resolve.
  19. Você gostaria do script do comando ou uma explicação de como usar o comando ?
  20. Tenta este : "data/creaturescripts/scripts/killgold" function onKill(cid, target, lastHit) if isPlayer(cid) and isPlayer(target) then if getPlayerIp(target) ~= getPlayerIp(cid) then doPlayerAddItem(cid, 2160, 1) end end return TRUE end login.lua : registerCreatureEvent(cid, "killgold") tag creaturescripts.xml : <event type="kill" name="killgold" event="script" value="killgold.lua"/>
  21. É só usar um descompilador. Eu usava antigamente o TibiaUnpacker !
  22. Você tem que descompilar o client do poketibia para aparecer o tibia.dat e tibia.spr !
  23. Veja se isso pode te ajudar : http://www.tibiaking.com/forum/topic/12846-c-compilando-um-otserv-no-windowns/

Informação Importante

Confirmação de Termo