Ir para conteúdo

JcA

Membro
  • Registro em

  • Última visita

Tudo que JcA postou

  1. JcA postou uma resposta no tópico em Suporte Tibia OTServer
    È que eu usava o tfs do matk, agr to usando do fire element, e esse não ta dando, com o do matk não precisava nem de script, ah vou tentando aqui, qualquer coisa eu vejo por script É, no tfs do fire element não da certo, tem como me passar esse seu script e adaptar para tfs 0.4? Tipo, só no 1 login dele, ele loga em x sqm
  2. JcA postou uma resposta no tópico em Suporte Tibia OTServer
    Eu entendi, mas é possivel fazer da forma que falei, no meu outro ot eu fiz, só que mudei o tfs, agr isso não funciona mais. Por exemplo Crio a conta num local, e o player nasce nesse msm local a 1 vez. Depois que morre, ele começa a nascer em outro, bom, vou fuçando aqui
  3. JcA postou uma resposta no tópico em Suporte Tibia OTServer
    Estou com essa dúvida de mongoloide, não estou conseguindo acertar. Quero que o acc manager nasca em X local, isso eu editei na database, e editei pro player nascer no local x após criar a conta. Só que quando morre, esse fdp volta onde eu coloquei para nascer a 1 vez, e não pro templo da city. No map tenho 2 town, id 1 id 2, não sei o q fiz de errado?
  4. Achei interessante, apoio
  5. @roriscrave sem erros no console
  6. Por exemplo, quando o player esta preste a morrer, da um leve delay, coisas de milessimos de segundos, mas perceptivel, sabe? Fora do normal, eu removi alguns script que podiam impactar talvez, como deathlist, etc, não tem como saber assim, na sorte, mas para encurtar o caminho, alem do creaturescript, qual outra config que eu possa ter feito sem ter noçao que tenha afetado?
  7. ah vei, preciso igual do absolute que é separado
  8. Alguém pode me fazer? Um igual a esse, porém de mortes:
  9. JcA postou uma resposta no tópico em Suporte Tibia OTServer
    resolvido!
  10. JcA postou uma resposta no tópico em Suporte Tibia OTServer
    Então, esse script não esta reconhecendo o gold ingot id 9971 como dinheiro, ai a alavanca não funciona local config = { price = 100, -- Quantidade de items necessário para comprar. count = 1, -- Quantidade que irá vender. item = 12608, -- ID do item que vai vender. need = 2160; 9971, -- ID do item necessário. alavancaStr = 3332, -- Storage para salvar e checar o tempo time = 5 -- Tempo de espera para usar novamente } function onUse(cid, item) local pos = getCreaturePosition(cid) if item.itemid == 10030 then if getPlayerStorageValue(cid, config.alavancaStr) - os.time() <= 0 then if doPlayerRemoveItem(cid, config.need, config.price) then doPlayerAddItem(cid, config.item, config.count) doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Você acaba de comprar "..config.count.." "..getItemNameById(config.item)..".") doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Desculpe, você precisa de ".. config.price .." ".. getItemNameById(config.need) .." para comprar.") doSendMagicEffect(pos, CONST_ME_POFF) end setPlayerStorageValue(cid, config.alavancaStr, os.time() + config.time) else doPlayerSendCancel(cid, "Voce deve aguardar " ..getPlayerStorageValue(cid, config.alavancaStr) - os.time().." segundos para tentar novamente...") end end return true end
  11. <?xml version = "1.0" encoding = "UTF-8"?> <mod name = "Military Ranks" version = "1.0" author = "Teckman" enabled = "yes"> <config name = "ranks"><![CDATA[ titles = { [5] = "Private First Class", [10] = "Specialist", [15] = "Corporal", [20] = "Sergeant", [25] = "Staff Sergeant", [30] = "Sergeant First Class", [35] = "Master Sergeant", [40] = "First Sergeant", [45] = "Sergeant Major", [50] = "Command Sergeant Major", [55] = "Sergeant Major of the Army", [60] = "Second Lieutenant", [65] = "First Lieutenant", [70] = "Captain", [75] = "Major", [80] = "Lieutenant Colonel", [85] = "Colonel", [90] = "Brigadier General", [95] = "Major General", [100] = "Lieutenant General", [105] = "General", [110] = "General of the Army", [115] = "Marechal", [120] = "Like a Boss" } fragsStorage = 600 ]]></config> <event type = "look" name = "ranksLook" event = "script"><![CDATA[ domodlib("ranks") function onLook(cid, thing, position, lookDistance) if(isPlayer(thing.uid)) then local rank = {rank = "Private", frags = 0} for k, v in pairs(titles) do if(math.max(0, getPlayerStorageValue(thing.uid, fragsStorage)) > k - 1) then if(k - 1 > rank.frags) then rank.rank, rank.frags = v, k - 1 end end end doPlayerSetSpecialDescription(thing.uid, "\n Military Rank: " .. rank.rank) end return true end ]]></event> <event type = "kill" name = "ranksKill" event = "script"><![CDATA[ domodlib("ranks") function onKill(cid, target) if(isPlayer(target)) then setPlayerStorageValue(cid, fragsStorage, math.max(0, getPlayerStorageValue(cid, fragsStorage) + 1)) if(titles[getPlayerStorageValue(cid, fragsStorage)]) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You advanced to military rank: " .. titles[getPlayerStorageValue(cid, fragsStorage)] .. ". Congratulations " .. titles[getPlayerStorageValue(cid, fragsStorage)] .. "!") end end return true end ]]></event> <event type = "login" name = "ranksLogin" event = "script"><![CDATA[ function onLogin(cid) registerCreatureEvent(cid, "ranksKill") registerCreatureEvent(cid, "ranksLook") return true end ]]></event> </mod> Isso é um Rank do Tecman, vou estar removendo para testar Você estava certo, realmente estava em conflito, bom, sera que você faz um de morte pra mim? Death [10]; igual esse?
  12. 16:47 You see Zika memo (Level 896). She is an royal paladin Military Rank: Command Sergeant Major.
  13. o seu não funcionou também, mas não apresentou erros no distro, so aparece o look em mim mesmo. outra coisa, quando eu dou look no amigo, ao em vez de aparecer no look, aparece pra pessoa o frag q ela tem no default 16:47 You see Zika memo (Level 896). She is an royal paladin Military Rank: Command Sergeant Major. ai pra ela aparece: 16:47 [Frags: 14] tfs 0.4 e tb coloquei no login.lua essa parte
  14. Quando dou look em outros players, aparece que eu estou auto me dando look e não mostra as morte [Deaths: 50] 16:20 You see yourself. You are Master Sorcerer. [Frags: 4]
  15. Só mostra os frag se eu mesmo der look, não se outro player der.... function getPlayerFrags(cid) local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC") if(result:getID() ~= -1) then repeat local content = {date = result:getDataInt("date")} if(content.date > times.today) then table.insert(contents.day, content) elseif(content.date > times.week) then table.insert(contents.week, content) else table.insert(contents.month, content) end until not result:next() result:free() end local size = { day = table.maxn(contents.day), week = table.maxn(contents.week), month = table.maxn(contents.month) } return size.day + size.week + size.month end function onLogin(cid) registerCreatureEvent(cid, "fraglook") return true end function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) and thing.uid ~= cid then doPlayerSetSpecialDescription(thing.uid,' [Frags: '..getPlayerFrags(thing.uid)..']') return true elseif thing.uid == cid then doPlayerSetSpecialDescription(cid,' [Frags: '..getPlayerFrags(cid)..']') local string = 'You see yourself.' if getPlayerFlagValue(cid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION) then string = string..' You are '.. getPlayerGroupName(cid) ..'.' elseif getPlayerVocation(cid) ~= 0 then string = string..' You are '.. getPlayerVocationName(cid) ..'.' else string = string..' You have no vocation.' end string = string..getPlayerSpecialDescription(cid)..'' if getPlayerNameByGUID(getPlayerPartner(cid), false, false) ~= nil then string = string..' You are '.. (getPlayerSex(cid) == 0 and 'wife' or 'husband') ..' of '.. getPlayerNameByGUID(getPlayerPartner(cid)) ..'.' end if getPlayerGuildId(cid) > 0 then string = string..' You are ' .. (getPlayerGuildRank(cid) == '' and 'a member' or getPlayerGuildRank(cid)) ..' of the '.. getPlayerGuildName(cid) string = getPlayerGuildNick(cid) ~= '' and string..' ('.. getPlayerGuildNick(cid) ..').' or string..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS) then string = string..'\nHealth: ['.. getCreatureHealth(cid) ..' / '.. getCreatureMaxHealth(cid) ..'], Mana: ['.. getCreatureMana(cid) ..' / '.. getCreatureMaxMana(cid) ..'].' string = string..'\nIP: '.. doConvertIntegerToIp(getPlayerIp(cid)) ..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION) then string = string..'\nPosition: [X:'.. position.x..'] [Y:'.. position.y..'] [Z:'.. position.z..'].' end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string) return false end return true end <event type="look" name="fraglook" event="script" value="fraglook.lua"/>
  16. JcA postou uma resposta no tópico em Suporte Tibia OTServer
    valeu rep
  17. JcA postou uma resposta no tópico em Suporte Tibia OTServer
    o script de critical, não esta adicionando a primeira pedra quando usa, começa contar o primeiro, depois da segunda pedra usada, diferente do dogde do @xWhiteWolf. 15:09 You've Leveled your Dodge Skill to [1/100]. 15:09 You've Leveled your Critical Skill to [0/100]. Critical Action local config = { effectonuse = 13, -- efeito que sai levelscrit = 100, --- leveis que terão storagecrit = 48903 -- storage que será verificado } local notallowed = {5,6,7,8} function onUse(cid, item, frompos, item2, topos) if not isInArray(notallowed, getPlayerVocation(cid)) then if getPlayerStorageValue(cid, config.storagecrit) < config.levelscrit then doRemoveItem(item.uid, 1) doSendMagicEffect(topos,config.effectonuse) doPlayerSendTextMessage(cid,22,"You've Leveled your Critical Skill to ["..(getPlayerStorageValue(cid, config.storagecrit)+1).."/100].") setPlayerStorageValue(cid, config.storagecrit, getPlayerStorageValue(cid, config.storagecrit)+1) elseif getPlayerStorageValue(cid, config.storagecrit) >= config.levelscrit then doPlayerSendTextMessage(cid,22,"You've already reached the MAX level of Critical Skill.\nCongratulations!!!!") return 0 end else doPlayerSendTextMessage(cid,22,"You can't learn this skill because you're "..getPlayerVocationName(cid)..".") return 0 end return 1 end critical creature script function onStatsChange(cid, attacker, type, combat, value) if (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) and isPlayer(attacker) then if (getPlayerStorageValue(attacker, 48903)*1) >= math.random (0,1000) then dano = math.ceil(value*(2)) doTargetCombatHealth(attacker, cid, combat, -dano, -dano, 255) doSendAnimatedText(getCreaturePos(attacker), "CRITICAL", 100) end end return true end script do dodge:
  18. @Vodkart rank distance ta com problema, aparece que eu dei hit com meu shield, e o rank rod n funciona
  19. @Absolute não funcionou, nao ta aparecendo pra outros player dando look, so em mim msm
  20. JcA postou uma resposta no tópico em Suporte Tibia OTServer
    valeus
  21. JcA postou uma resposta no tópico em Suporte Tibia OTServer
    UP
  22. obrigado, aqui funcionou, falta só o da foto
  23. JcA postou uma resposta no tópico em Suporte Tibia OTServer
    ajudou!
  24. obg agr so falta o resto

Informação Importante

Confirmação de Termo