topic replied by MatheusGlad in Barzinho do Éks
Queria saber porque meu nome virou MatheusGlad
topic replied by MatheusGlad in Barzinho do Éks
Queria saber porque meu nome virou MatheusGlad
topic replied by MatheusGlad in Scripts
Ao inves de botar todos os monstros sumonaveis em uma table, melhor fazer if getMonsterInfo(name).summonable then, usa tabela soh pra fazer vocaçoes poderem sumonar monstros que nao sejam sumonaveis.
topic replied by MatheusGlad in Scripts
Bem, não era pra ser desse jeito? Voce abre a porta e o actionid some, se voce usar a chave denovo tranca a porta Oo
topic replied by MatheusGlad in Resolvidos
O certo é Lua não LUA. http://www.lua.org/about.html#name Links: http://lua-users.org/wiki/TutorialDirectory http://www.lua.org/manual/5.1/pt/manual.html
topic replied by MatheusGlad in Linguagens de Programação
O que acontece quando voce abre o reward chest em vez do corpo do boss? Ve se crasha ou se da debug. Tenta mudar a function onKill no arquivo rewardloot.lua por: function onKill(creature, target) targ
topic replied by MatheusGlad in Scripts
Muda: local unlock = door:unlock(item.actionid) ... ... local lock = door:lock(item.actionid) Por: local unlock = door:unlock(item.itemid) ... ... local lock = door:lock(item.itemid) E bota o itemid d
topic replied by MatheusGlad in Scripts
function getPlayerReset(cid) local pid = getPlayerGUID(cid) local qr = db.getResult("SELECT `reset` FROM `players` WHERE `id`= ".. pid..";") rss = qr:getDataInt("reset", pid) if not rss or not tonumbe
topic replied by MatheusGlad in Scripts
Door = {} function Door:new(position, keyaid, openid, closedid) return setmetatable({position=position, keyaid=keyaid, openid=openid, closedid=closedid, locked=true, id=closedid}, {__index = Door}) en
posted a topic in the forum by MatheusGlad in Linguagens de Programação
Creditos: Baseado no code do cbrm: https://otland.net/threads/reward-chest-boss-reward-tfs-1-2.233397/ Instruções:: src/const.h: Embaixo de... ITEM_MARKET = 14405, ...Adicione: ITEM_REWARD_BAG = 21518
topic replied by MatheusGlad in Noticias
Eu acho que deveriam ser pensados criterios de avaliação, dai voce dava nota pra esses criterios e fazia uma media. Aquele que tivesse a melhor media venceria. No caso "o melhor script" é muito subjet
topic replied by MatheusGlad in Websites
<?PHP $name = stripslashes(ucwords(strtolower(trim($_REQUEST['name'])))); if(empty($name)) { $main_content .= 'Here you can get detailed information about a certain player on '.$config['server']['serv
topic replied by MatheusGlad in Actions e Talkactions
Muito bom o code, na parte de tirar os espaços eu nao usaria o %a, pq nomes de monstros não consistem exclusivamente de letras (os normais sim) e poderia bugar se eu tivesse um monstro com o nome "Mka
topic replied by MatheusGlad in Scripts
--[ Script written and published by Orzeleagle/Collocorpus ]-- function addPlayerItem(itemid, amount, cid) if amount%100 > 0 then local iuid = doCreateItemEx(itemid, amount%100) doPlayerAddItemEx(cid,
topic replied by MatheusGlad in Archived
auto 200 if [$level >= 717217] say '!reborn'
topic replied by MatheusGlad in Noticias
Provavelmente eu vou participar.
topic replied by MatheusGlad in Scripts
function onKill(cid, target, damage, flags) local player = Player(cid) local target = Monster(target) if target and target:isMonster() then if(string.lower(target:getName()) == "war wolf") then if (pl
posted a topic in the forum by MatheusGlad in Mods, funções e outros
FAÇA BACKUP DA PASTA MONSTERS E CREATURESCRIPTS ANTES DE UTILIZAR! Funciona para todas as versões TFS 0.3.6+ ate TFS 1.2 (Provavelmente funciona para outras tambem mas não me dei o trabalho de testar)
posted a topic in the forum by MatheusGlad in Mods, funções e outros
Algoritmo para calcular n digitos de 1 raiz. Como os numeros chegam a ser maiores que 2^1024 voce nao pode trabalhar mais com numeros depois disso. Então eu transformei tudo em string e fiz as funçoes
posted a topic in the forum by MatheusGlad in NPCs, monsters e raids
Bem, eu fiz algumas alteraçoes no Npc System para que isso fosse possivel, tambem fiz alteraçoes na source, porem as modificaçoes da source nao sao obrigatorias, porem para um otserver serio seria bem
posted a topic in the forum by MatheusGlad in Archived
To a 1 mes quase tentando simplificar isso aki e n sai de jeito nenhum hehe Colegio Naval 1986 - 1987: a) 1 b) sqrt(2) c) 2 d) 2*sqrt(2) e) 3*sqrt(2) sqrt(2) = raiz quadrada de 2 '-'