Ir para conteúdo

ViitinG

Membro
  • Registro em

  • Última visita

Tudo que ViitinG postou

  1. "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 :
  2. 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."/>
  3. 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".
  4. ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    Vá em "data/world" e mude o arquivo "BaiakYurots.otbm" para "BaiakYurots"
  5. ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    Manda seu config.lua. É só arrumar o nome do OTBM do mapa..
  6. Veja se tem um script chamado "firstitems" em creaturescripts ! Se tiver basta remover o 1kk.
  7. 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 !
  8. 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 :
  9. Obrigado por tirar Nogard ! Nem tinha percebido estou ocupado..
  10. Tem que usar um programa chamado item editor.
  11. function onKill(cid, target, lastHit) if isPlayer(cid) and isPlayer(target) then doPlayerAddItem(cid, 2160, 1) end end return TRUE end
  12. ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    Sim acho que resolve.
  13. Você gostaria do script do comando ou uma explicação de como usar o comando ?
  14. 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"/>
  15. É só usar um descompilador. Eu usava antigamente o TibiaUnpacker !
  16. Você tem que descompilar o client do poketibia para aparecer o tibia.dat e tibia.spr !
  17. Veja se isso pode te ajudar : http://www.tibiaking.com/forum/topic/12846-c-compilando-um-otserv-no-windowns/
  18. ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    Esse seu WOE é automatico brother,ele geralmente inicia quando o servidor abre !!
  19. ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    Stamina Refuel : "data/actions/scripts/stamina-refuel.lua" function onUse(cid, item, fromPosition, itemEx, toPosition) local cfg = {} cfg.refuel = 42 * 60 * 1000 if(getPlayerStamina(cid) >= cfg.refuel) then doPlayerSendCancel(cid, "Your stamina is already full.") elseif(not isPremium(cid)) then doPlayerSendCancel(cid, "You must have a premium account.") else doPlayerSetStamina(cid, cfg.refuel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.") doRemoveItem(item.uid) end return true end "data/actions/actions.xml" <action itemid="ID DO ITEM AQUI" script="stamina-refuel.lua"/>
  20. Sim na storage você bota 55555.
  21. Não esqueça de configurar com o storageID 55555 : function onSay(cid, words, param) local config = { pz = true, -- players precisam estar em protection zone para usar? (true or false) battle = false, -- players deve estar sem battle (true or false) custo = false, -- se os teleport irão custa (true or false) need_level = false, -- se os teleport irão precisar de level (true or false) vip = true, -- somente vip players poderam usar o comando? ("yes" or "no") storage = 13500 -- Storage Id da sua vip account caso for usar somente vips } --[[ Config lugares]]-- local lugar = { ["depot"] = { -- nome do lugar pos = {x=1016, y=1045, z=7},level = 8,price = 0}, ["temple"] = { -- nome do lugar pos = {x=1032, y=1016, z=7},level = 8, price = 0}, ["arena"] = { -- nome do lugar pos = {x=1016, y=1052, z=8},level = 8,price = 0}, ["viparea"] ={ -- nome do lugar pos = {x=701, y=1015, z=7},level = 8,price = 0}, ["trainer"] ={ -- nome do lugar pos = {x=965, y=1057, z=7},level = 8,price = 0} } --[[ Lista de Viagem (Não mexa) ]]-- if (param == "lista") then local str = "" str = str .. "lista de viagem :\n\n" for name, pos in pairs(lugar) do str = str..name.."\n" end str = str .. "" doShowTextDialog(cid, 6579, str) return TRUE end local a = lugar[param] if not(a) then doPlayerSendTextMessage(cid, 25, "desculpe,este lugar não existe") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return TRUE elseif config.pz == true and getTilePzInfo(getCreaturePosition(cid)) == FALSE then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"você precisa estar em protection zone pra poder teleportar.") return TRUE elseif config.premium == true and not isPremium(cid) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Apenas players com premium account podem teleportar.") return TRUE elseif config.battle == true and getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você precisa estar sem battler pra poder teleportar.") return TRUE elseif config.need_level == true and getPlayerLevel(cid) < a.level then doPlayerSendTextMessage(cid, 25, "Desculpe,Voce não tem level. voce precisa "..a.level.." level ou mais para ser teleportado.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return TRUE elseif config.custo == true and doPlayerRemoveMoney(cid, a.price) == FALSE then doPlayerSendTextMessage(cid, 25, "Desculpe,voce nao tem dinheiro suficiente. Voce precisa "..a.price.." gp para ser teleportado.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return TRUE elseif config.vip == true and getPlayerStorageValue(cid, tonumber(config.storage)) - os.time() <= 0 then doPlayerSendTextMessage(cid, 25, "Desculpe,voce nao e Player vip Para Usar o !fly!.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return TRUE end doTeleportThing(cid, a.pos) doSendMagicEffect(a.pos, CONST_ME_TELEPORT) doBroadcastMessage("" .. getPlayerName(cid) .. " has flown to " .. param .. " using !fly." ,MESSAGE_INFO_DESCR) return TRUE end Creditos : Vodkart - Lfelipebsilva05.
  22. Fica no script da sua vip,procure e me mande. obs : não é oque você mandou acima !
  23. Eu preciso só do storage da sua vip system brother !
  24. Manda o script do seu VIP.

Informação Importante

Confirmação de Termo