Tudo que JcA postou
-
(Resolvido)Player não pega frag
Excelente jhowwwwwwww
-
(Resolvido)comando !rank com falha
distro 64x
-
(Resolvido)comando !rank com falha
Mano, você vai ficar bravo, mas ainda não funcionou, wtf? Sera que é minha database? Sera que por mod fumfa? '-'
-
(Resolvido)Player não pega frag
Pode matar quantas vezes quiser, que não pega frag, não acho o problema: 18:27 Warning! The murder of Paladin was not justified. 18:28 You currently have 0 frags today, 0 this week and 0 this month. 18:28 You have [0/30] to red skull. 18:28 You have [0/150] to black skull. login.lua local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } pos = {x=927, y=927, z=7} function onLogin(cid) local maxaccbyip = 2 local accm = {} local pbi = getPlayersByIp(getPlayerIp(cid)) function antiTumb(cid) for _,player in ipairs(pbi) do if getCreatureName(player) == "Account Manager" then table.insert(accm, player) end end if #accm > maxaccbyip then print("Foi ultrapassado o limite maximo de contas online com o seguinte ip "..convertIntToIP(getPlayerIp(cid)).."\npor motivos de seguranca todos os accounts managers com esse ip foram kickados\nAnti-Nuker System 2.0") for _,player in ipairs(accm) do doRemoveCreature(player) end end return true end addEvent(antiTumb, 10, cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else doTeleportThing(cid, pos, true) str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "Mail") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "Idle") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") end registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "EffectCheck") registerCreatureEvent(cid, "EffectDeath") registerCreatureEvent(cid, "EpicAol") registerCreatureEvent(cid, "EpicRedAol") registerCreatureEvent(cid, "RedAol") registerCreatureEvent(cid, "VocReward") registerCreatureEvent(cid, "newlook") registerCreatureEvent(cid, "hmup") registerCreatureEvent(cid, "perderefeito") registerCreatureEvent(cid, "SafeCombat") registerCreatureEvent(cid, "SafeTarget") registerCreatureEvent(cid, "critical") registerCreatureEvent(cid, "dodge") if getPlayerStorageValue(cid, 48902) == -1 then setPlayerStorageValue(cid, 48902, 0) end if getPlayerStorageValue(cid, 48903) == -1 then setPlayerStorageValue(cid, 48903, 0) end return true end config useFragHandler = true redSkullLength = 30 * 24 * 60 * 60 blackSkullLength = 45 * 24 * 60 * 60 dailyFragsToRedSkull = 30 weeklyFragsToRedSkull = 50 monthlyFragsToRedSkull = 100 dailyFragsToBlackSkull = 150 weeklyFragsToBlackSkull = 300 monthlyFragsToBlackSkull = 450 dailyFragsToBanishment = 1000 weeklyFragsToBanishment = 1500 monthlyFragsToBanishment = 2000 blackSkulledDeathHealth = 40 blackSkulledDeathMana = 0 useBlackSkull = true advancedFragList = false
-
(Resolvido)Talkction de food
Talkction de food com as descrições abaixo. TFS 0.4 ID: 2789 !food "Você ganhou 100 brown mushrooms." "Desculpe, você não tem 100k para comprar food." "Você deve aguardar 60 minutos para utilizar novamente esse comando."
-
Colunas?
Rapaziada, cadê aquele tópico de tabelas mysql e sql, apagaram?
-
(Resolvido)comando !rank com falha
Windows, obrigado, no aguardo
-
(Resolvido)comando !rank com falha
-
(Resolvido)comando !rank com falha
@Vodkart Não consegui resolver, você não pode reformular o código pra uma forma diferente?
-
(Resolvido)comando !rank com falha
Sim é sql no momento, quando eu finalizar vou por em mysql, bom, deve ser algum script em conflito
-
(Resolvido)comando !rank com falha
Sem erros Vodkart, só não mostra nada quando usa as seguintes funções no comando: other_skills = { [''] = "level", ['level'] = "level", ['magic'] = "maglevel", ['health'] = "healthmax", ['reset'] = "reset", ['mana'] = "manamax"
-
Aumentar velocidade do helmet debaixo d'água
Também estou na duvida
-
Andar sobre a agua rapido
Como é esse movement drown?
-
Andar sobre a agua rapido
-
(Resolvido)comando !rank com falha
Então, essa parte do other_skills, esses rank, level, mag, health, reset e mana não estão funcionando: distro tfs 0.4 local config = { MaxPlayer = 20, fight_skills = { ['fist'] = 0, ['club'] = 1, ['sword'] = 2, ['axe'] = 3, ['distance'] = 4, ['shielding'] = 5, ['fishing'] = 6, ['dist'] = 4, ['shield'] = 5, ['fish'] = 6, }, other_skills = { [''] = "level", ['level'] = "level", ['magic'] = "maglevel", ['health'] = "healthmax", ['reset'] = "reset", ['mana'] = "manamax" }, vocations = { ['sorcerer'] = {1,5}, ['druid'] = {2,6}, ['paladin'] = {3,7}, ['knight'] = {4,8} } } function onSay(cid, words, param) local store,exausted = 156201,5 local param,str = string.lower(param),"" if not config.fight_skills[param] and not config.other_skills[param] and not config.vocations[param] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "this ranking does not exists.") return true elseif getPlayerStorageValue(cid, store) >= os.time() then doPlayerSendCancel(cid, "wait " .. getPlayerStorageValue(cid, store) - os.time() .. " seconds to use this command again.") return true end str = "--[ RANK "..(param == "" and "LEVEL" or string.upper(param)).." ]--\n\n" query = config.fight_skills[param] and db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = "..config.fight_skills[param].." ORDER BY `value` DESC;") or config.other_skills[param] and db.getResult("SELECT `name`, `"..config.other_skills[param].."` FROM `players` WHERE `id` > 6 AND `group_id` < 2 ORDER BY `"..config.other_skills[param].."` DESC, `name` ASC;") or db.getResult("SELECT `name`, `level` FROM `players` WHERE `group_id` <= 2 AND `vocation` = "..config.vocations[param][1].." or `vocation` = "..config.vocations[param][2].." ORDER BY `level` DESC;") if (query:getID() ~= -1) then k = 1 while true do str = str .. "\n " .. k .. ". "..(config.fight_skills[param] and getPlayerNameByGUID(query:getDataString("player_id")) or query:getDataString("name")).." - [" .. query:getDataInt((config.fight_skills[param] and "value" or config.vocations[param] and "level" or config.other_skills[param])) .. "]" k = k + 1 if not(query:next()) or k > config.MaxPlayer then break end end query:free() end doShowTextDialog(cid,6500, str) setPlayerStorageValue(cid, store, os.time()+exausted) return true end
-
/t master
Não sei quem fez, mas para quem tiver problema com o comando /t por parar de funcionar do nada, ou porque você alterou as town, e ainda sim não funcionou, use esse comando abaixo: teleporttown.lua function onSay(cid, words, param, channel) local tid = cid if(param ~= '') then tid = getPlayerByNameWildcard(param) if(not tid or (isPlayerGhost(tid) and getPlayerGhostAccess(tid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.") return true end end local pos = getPlayerTown(tid) local tmp = getTownName(pos) if(not tmp) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Home town does not exists.") return true end pos = getTownTemplePosition(pos) if(not pos or isInArray({pos.x, pos.y}, 0)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong temple position for town " .. tmp .. ".") return true end pos = getClosestFreeTile(tid, pos) if(not pos or isInArray({pos.x, pos.y}, 0)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Destination not reachable.") return true end tmp = getCreaturePosition(tid) if(doTeleportThing(tid, pos, true) and not isPlayerGhost(tid)) then doSendMagicEffect(tmp, CONST_ME_POFF) doSendMagicEffect(pos, CONST_ME_TELEPORT) end return true end talk.xml <talkaction log="yes" words="/t" access="3" event="script" value="teleporttown.lua"/>
-
(Resolvido)login x
Funcional, obrigado!
-
pedido de hunt do global, não achei
Rapaziada, alguém pode postar aqui só a dragon lair do Ghasty Dragon? Só a parte da hunt msm, baixei uns global 8.60 e não tinha
-
Andar sobre a agua rapido
É possivel fazer algum item que o player use, ou adicionar um comando, ou atributo em item para andar sobre a agua de forma mais rapida? Tipo, tem uma hunt de quara, quero q ele ande na agua mais rapido como se fosse piso normal.
-
(Resolvido)login x
927 927 7
-
(Resolvido)login x
local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) local maxaccbyip = 2 local accm = {} local pbi = getPlayersByIp(getPlayerIp(cid)) function antiTumb(cid) for _,player in ipairs(pbi) do if getCreatureName(player) == "Account Manager" then table.insert(accm, player) end end if #accm > maxaccbyip then print("Foi ultrapassado o limite maximo de contas online com o seguinte ip "..convertIntToIP(getPlayerIp(cid)).."\npor motivos de seguranca todos os accounts managers com esse ip foram kickados\nAnti-Nuker System 2.0") for _,player in ipairs(accm) do doRemoveCreature(player) end end return true end addEvent(antiTumb, 10, cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "Mail") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "Idle") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") end registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "EffectCheck") registerCreatureEvent(cid, "EffectLogin") registerCreatureEvent(cid, "Aol") registerCreatureEvent(cid, "DeusRedAol") registerCreatureEvent(cid, "RedAol") registerCreatureEvent(cid, "VocReward") registerCreatureEvent(cid, "fraglook") registerCreatureEvent(cid, "hmup") registerCreatureEvent(cid, "perdereifeto") registerCreatureEvent(cid, "SafeCombat") registerCreatureEvent(cid, "SafeTarget") registerCreatureEvent(cid, "dodge") if getPlayerStorageValue(cid, 48902) == -1 then setPlayerStorageValue(cid, 48902, 0) end if getPlayerStorageValue(cid, 48903) == -1 then setPlayerStorageValue(cid, 48903, 0) end return true end
-
(Resolvido)login x
Tem geito de fazer um script que faz o player na primeira vez que ele loga apenas, apenas na 1 vez q ele logar no ot, para ir pra tal coordenada.
-
(Resolvido)Death Look Frags
up bump
-
Safe Mod para tibia 8.6
Excelente
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)