Tudo que Werner postou
- Guild System
-
sistema reset que volte a vida e mana
fraglook.lua --Script By Theax "" 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 getResets(cid) resets = getCreatureStorage(cid, 54676) if resets < 0 then resets = 0 end return resets 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)..']\n[Resets: '..getResets(thing.uid)..']') return true elseif thing.uid == cid then doPlayerSetSpecialDescription(thing.uid,'[Frags: '..getPlayerFrags(thing.uid)..']\n[Resets: '..getResets(thing.uid)..']') 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
-
sistema reset que volte a vida e mana
Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum! <?xml version="1.0" encoding="UTF-8"?> <mod name="Reset System" version="1.0" author="Kimoszin" contact="tibiaking.com" enabled="yes"> <!-- Configuracao --> <config name="reset_config"><![CDATA[ config = { level = 100, premium = false, storage = 54676, } function getResets(cid) resets = getCreatureStorage(cid, config.storage) if resets < 0 then resets = 0 end return resets end function reset(cid) if (config.premium and not(isPremium(cid)) ) then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You need have a premium account.") end if (getPlayerLevel(cid) < config.level) then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Voce precisa ser lvl "..config.level..".") end if not(getTilePzInfo(getCreaturePosition(cid))) then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Voce precisa estar em area pz para resetar") end doPlayerAddLevel(cid, - (getPlayerLevel(cid) - 8)) doCreatureSetStorage(cid, config.storage, getResets(cid)+1) doRemoveCreature(cid) db.query("UPDATE `players` SET `health`= "..resethp..",`healthmax`= "..resethp.." WHERE `players`.`id`= ".. playerid .."") db.query("UPDATE `players` SET `mana`= "..resetmana..",`manamax`= "..resetmana.." WHERE `players`.`id`= ".. playerid .."") return true end ]]></config> <!-- Talkaction para resetar --> <talkaction words="!reset" event="buffer"><![CDATA[ domodlib('reset_config') if isInArray({1,2}, getPlayerVocation(cid)) then resethp = (getResets(cid)+1)*1 resetmana = (getResets(cid)+1)*1 elseif getPlayerVocation(cid) == 3 then resethp = (getResets(cid)+1)*1 resetmana = (getResets(cid)+1)*1 elseif getPlayerVocation(cid) == 4 then resethp = (getResets(cid)+1)*1 resetmana = (getResets(cid)+1)*1 end playerid = getPlayerGUID(cid) reset(cid) ]]></talkaction> <!-- Talkaction para ver quantos resets tem --> <talkaction words="!myresets" event="buffer"><![CDATA[ domodlib('reset_config') return doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Voce Tem "..getResets(cid).." Resets.") ]]></talkaction> <!-- Tile --> <movevent type="StepIn" actionid="9911" event="script"><![CDATA[ domodlib('reset_config') function onStepIn(cid, item, position, fromPosition) local minResets = 1 if (not(getResets(cid) >= minResets)) then doPlayerSendCancel(cid, "Desculpe, vc precisa ter "..minResets.." Resets para passar por aqui.") return doTeleportThing(cid, fromPosition) end doPlayerSendCancel(cid, "Bem Vindo") end ]]></movevent> <!-- Porta --> <action actionid="9910" event="script"><![CDATA[ domodlib('reset_config') function onUse(cid, item, position, fromPosition) local minResets = 5 if not(getResets(cid) >= minResets) then return doPlayerSendCancel(cid, "Desculpe, vc precisa ter "..minResets.." Resets para passar por aqui.") end doPlayerSendCancel(cid, "Bem Vindo") end ]]></action> </mod> level=100 (level necessário para reset) resethp = (getResets(cid)+1)*1 (quanto vai ganhar de vida ao resetar, neste caso nada) resetmana = (getResets(cid)+1)*1 (quanto de mana vai ganhar ao resetar, neste caso nada) Arrumei os erros de português do script ; )
- Bleach Sprites RTSonline
-
BUG'S
items.xml tenta ae
-
BUG'S
Cara ele deu a linha com erro ja pra vc(line 16513), n precisa refazer tudo. O erro é em algum atributo, que vc provavelmente colocou errado. Se n consegue ver as linhas quando abre o arquivo, baixa o notepad++ que ele mostra.
-
BUG'S
Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum! Em que line ta dando erro? posta ela ai...
-
Remere's Map Editor - Dúvidas e soluções de bugs
Olá. Ultimamente vejo que estão criando muitos tópicos com duvidas quanto ao rme, muitas que ja foram solucionadas. Então para facilitar a pesquisa, colocarei alguns erros comuns do RME e sua solução neste tópico juntamente com um simples tutorial de introdução ao mapping, para facilitar a pesquisa e soluções, tudo junto em um só tópico. O tutorial de introdução é bem superficial. Caso queira aprofundar-se no assunto, existem tópicos próprios para isso. Tutorial de Introdução: __ Esta parte será voltada para solução de erros. 1. Could not locate tibia.dat and/or tibia.spr, please navigate to your tibia insalation folder. 2. Invalid Itens (fica um piso vermelho, ou determinado item com sprite de outro) 3. Lag no RME 4. Rme stop working
-
Opiniões para um novo projeto
Muita gente diz estar com ideias para novos projetos, até mesmo aqui no forum. Além da enquete, da uma pesquisada para fazer algo diferente, pois infelizmente muitos estão caminhando para o mesmo lugar.
-
Bug Remers
colocou o items.xml do seu servidor na pasta da version que ta usando no rme? (no %appdata%)
- BUG NO RME
-
Otserv Case Sensitive alguem da dicas
Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum! Importa os monsters do seu server no RME e vê se vai. No caso dos trainers, dps que importar veja se no monsters.xml eles tao como "trainer.xml" ou "treiner.xml" ou saco de "pancada.xml" etc, ai coloca no mapa, o que está com o mesmo nome do arquivo.
-
Ajuda problema o mapa e no login
Importa os monsters no rme, e ve se esta com spawns no mapa
-
ILHA DE FOGO - FIRE ISLAND
Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP.
-
CSF FIREWALL
Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum!
-
remeres com defeito no mapa
No RME, vá em "file" -> "Preferences" -> "Client Version" em "Default Client" coloque a do seu servidor, no caso 10.98 e em "Version 10.98 search path" coloque o a sua pasta world do servidor. Após fazer isso, clique Windows+R (ou procure na pesquisa por "executar") e coloque %appdata% e de Enter. Abra a pasta Remere's Map Editor, abra "data" e coloque o items.otb do seu servidor dentro da pasta da versão do server. Agora abra o RME, vá em File/Import/Import Map e procure o world do seu server e veja se o problema foi solucionado.
-
remeres com defeito no mapa
- Best Baiak Completo
- Procuro alguem que saiba de otserv
-
Ajuda com client
Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum!
-
Best Baiak Completo
DROP TABLE IF EXISTS z_ots_comunication; CREATE TABLE z_ots_comunication ( id INT( 11 ) NOT NULL, name VARCHAR( 255 ) NOT NULL, type VARCHAR( 255 ) NOT NULL, [action] VARCHAR( 255 ) NOT NULL, param1 VARCHAR( 255 ) NOT NULL, param2 VARCHAR( 255 ) NOT NULL, param3 VARCHAR( 255 ) NOT NULL, param4 VARCHAR( 255 ) NOT NULL, param5 VARCHAR( 255 ) NOT NULL, param6 VARCHAR( 255 ) NOT NULL, param7 VARCHAR( 255 ) NOT NULL, delete_it INT( 2 ) NOT NULL DEFAULT '1', PRIMARY KEY ( id ) );
-
(Resolvido)[AJUDA] Erro na source TFS 0.4
Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum!
-
Check de monster em um determinado lugar.
Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum!
-
Melhor Versão de OT em 2018
Depende muito de qual é seu interesse com o servidor. Se for para fins lucrativos, escolha as ultimas versões por ter mais coisas para vender e no momento estar atraindo mais jogadores da comunidade. Se for apenas por hobby coloque seus interesses acima tudo ( no meu caso optaria por 8.6)
-
[Erros Distro 10.90]
Compara a script desses bixos editados que sao de outra versão provavelmente e ve o que ta de diferente dos originais do servidor e vai fazendo as modificações...