Tudo que mikaelkelvin postou
-
Sistema Bugado
pra mim o frag(seria quantas vezes voce matou) é o deaths (quantas vezes voc morreu.
-
Rockguard War Alguem Passar?
Boa noite galera , antigamente tinha uns servidores rockguard war aqui no tibia king hj ja n se encontra , alguem compartilhar ae.
-
(Resolvido)Ao Char Criar Ja Tem Pre-Skills
Galera é o Seguinte , Eu Queria Que Quando Os Char Criado é entra-se no meu ot ja tivesse com skill 40 é ML 35 @Jobs @Dragon Ball Hiper @Werner
-
Criar Channel quando toda vez q o char longa ele estiver lá aberto
botei assim= local config = { onlypremium = false, -- se precisa ser premium para não perder nada exp = true, -- se ao morrer o jogador irá perder exp skills = false, -- se ao morrer vai perder skills magic = false, -- se vai perder magic level loot = false, -- se ao morrer o jogador irá perder o loot level = 700000 -- até que level irá proteger o player } function onDeath(cid, corpse, deathList) if isPlayer(cid) and getPlayerLevel(cid) <= config.level then if config.onlypremium == true and isPremium(cid) then if config.loot == false then doCreatureSetDropLoot(cid, false) end if config.magic == false then doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 0) end if config.skills == false then doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0) end if config.exp == false then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0) end end end return true end
-
Sistema Bugado
pelo que eu saiba era pra ser Frags(quANTO mATOU) Death(Quantas Vezes Morreu) , Dai Pra MIM Ta errado o codigo é esse= function getDeaths(cid) local query, d = db.getResult("SELECT `player_id` FROM `player_killers` WHERE `player_id` = " ..getPlayerGUID(cid)), 0 if (query:getID() ~= -1) then repeat d = d+1 until not query:next() query:free() end return d endfunction 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.monthendfunction onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) and thing.uid ~= cid then return doPlayerSetSpecialDescription(thing.uid, '\n'.. '[Frags: ' .. getPlayerFrags(thing.uid) .. ' - Deaths: ' .. getDeaths(thing.uid) .. ']') elseif thing.uid == cid then 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 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 string = string..'\n'.. '[Frags: ' .. getPlayerFrags(cid) .. ' - Deaths: ' .. getDeaths(cid) .. ']' 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 return false, doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string) end return 1end
-
Sistema Bugado
O Sistema Esta Contando Errado [Frags: 25 - Deaths: 52]. que era pra ser Frags: 25 - Deaths: 52].
-
Criar Channel quando toda vez q o char longa ele estiver lá aberto
adicionei mais o char continuar perdendo ml é skill
-
Erro Record
funcinou valeu
-
Erro Record
no compat.lua?
-
Erro Record
100-compat.lua
-
Erro Record
function onRecord(current, old, cid) db.executeQuery("INSERT INTO `server_record` (`record`, `world_id`, `timestamp`) VALUES (" .. current .. ", " .. getConfigValue('worldId') .. ", " .. os.time() .. ");") addEvent(doBroadcastMessage, 150, "New record: " .. current .. " players are logged in.", MESSAGE_STATUS_DEFAULT) end eu ja mudei varios scripts de outros ot mais continuar dando erro.
-
Erro Record
Ai Galera o Seguinte , meu ot ta dando esse erro infeliz q ta atrapalhando na contagem do record de player @Jobs
-
Criar Channel quando toda vez q o char longa ele estiver lá aberto
em login eu boto oque mano? mano manda ai o codigo q e pra botar no login porfavor , botei 1 mais deu erro.
-
Criar Channel quando toda vez q o char longa ele estiver lá aberto
esse do ml eh pra botar onde? Ops Jobs eu errei , é pra ser Skills (All) pra quando morrer n perder. continuar de onde tava @Gabriel 72
-
Criar Channel quando toda vez q o char longa ele estiver lá aberto
job vc tbm poderia ensina como botar pra nao perder ML nem lvl quando morrer , pois meu ot é de war
-
(Resolvido)Death Channel
como eu crio o channel é configuro?
-
(Resolvido)BUG Ao morrer
tirei , ta dando mais não.
-
Criar Channel quando toda vez q o char longa ele estiver lá aberto
Alguem Ajudar a criar o Death Chanel porfavor? é eu configurar pra quanto de mana precisar ter pra usar a paralayze? É Tbm botar pra quando o char morrer não nem level nem ml. @Werner @Dragon Ball Hiper @Jobs
-
(Resolvido)ALGUEM Ensina a botar esse script
tem como vc ensina a tirar um erro do record?
-
(Resolvido)ALGUEM Ensina a botar esse script
Galera eu queria algum script tipo , ao player da lock no outro aparece quanto frag o outro player tem etc , é tbm quando alguem morrer no servidor aparecer uma msg tipo , O Player "Chupa Cabra" Lvl 300 , Morreu Pra O Demon Ou "Caçador de urubu" Lvl 500 @Werner
-
(Resolvido)BUG Ao morrer
Eu Achei Um Script de dance function onDirection(cid, old, current) local storage = 123456 local triesStorage = 123457 local set = 0 if (exhaustion.check(cid, storage)) then local tries = getCreatureStorage(cid, triesStorage) if (tries >= 20) then doCreatureAddHealth(cid, -(getCreatureMaxHealth(cid) * 0.25)) else set = tries + 1 end end doCreatureSetStorage(cid, triesStorage, set) exhaustion.make(cid, storage, 1) return true end
-
(Resolvido)BUG Ao morrer
é tem outro erro no Records.lua rpz eu achei um script de dance sera que é isso? function onDirection(cid, old, current) local storage = 123456 local triesStorage = 123457 local set = 0 if (exhaustion.check(cid, storage)) then local tries = getCreatureStorage(cid, triesStorage) if (tries >= 20) then doCreatureAddHealth(cid, -(getCreatureMaxHealth(cid) * 0.25)) else set = tries + 1 end end doCreatureSetStorage(cid, triesStorage, set) exhaustion.make(cid, storage, 1) return true end
-
(Resolvido)BUG Ao morrer
que script?
-
(Resolvido)BUG Ao morrer
galera o seguinte , no meu ot o player ta morrendo dai quando ele entrar dnv ta morrendo no templo= 16:43 You see a dead human (Vol:10). You recognize Arvalloc. He was killed by undefined. ItemID: [3058]. DecayTo: [3059]. Position: [X: 1000] [Y: 1003] [Z: 7]. toda vez quando ele botar pro char dança
-
(Resolvido)Criar Bau
Pegou fiz como tu falou , valeuuu