Ir para conteúdo

Maarkiin

Membro
  • Registro em

  • Última visita

Tudo que Maarkiin postou

  1. .Qual servidor ou website você utiliza como base? Canary Qual o motivo deste tópico? O script funciona perfeitamente, porém não estou conseguindo ajustar a porcentagem dos itens, não consegui entender a forma de calcular a porcentagem de chance. Precisava de alguns exemplos só pra ter uma boa noção. Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: local tiles = { Position(32163, 32295, 6), Position(32164, 32295, 6), Position(32165, 32295, 6), Position(32166, 32295, 6), -- Center Tile is winning Tile -- Position(32167, 32295, 6), Position(32168, 32295, 6), Position(32169, 32295, 6) } local items = { -- Chance Win / itemid / amount / chance amount (out of 100000) [{1, 10001}] = {itemid = 3079, amount = 1, amountChance = 80000}, -- 1, 10001 = 10000 (100000/10000 = 10% chance to win) [100000 / 80000 = 80% chance for amount to increase] [{10002, 15002}] = {itemid = 3388, amount = 1, amountChance = 70000}, [{15003, 20003}] = {itemid = 43869, amount = 1, amountChance = 60000}, [{20004, 25004}] = {itemid = 43886, amount = 1, amountChance = 50000}, [{25005, 30005}] = {itemid = 43880, amount = 1, amountChance = 40000}, [{30006, 35006}] = {itemid = 43878, amount = 1, amountChance = 30000}, [{35007, 40007}] = {itemid = 3389, amount = 1, amountChance = 25000}, [{40008, 45008}] = {itemid = 3387, amount = 1, amountChance = 15000} } -- local items = { -- -- Chance Win / itemid / amount / chance amount (out of 100000) -- [{1, 80001}] = {itemid = 3387, amount = 5, amountChance = 80000}, -- 1, 10001 = 10000 (100000/10000 = 10% chance to win) [100000 / 80000 = 80% chance for amount to increase] -- [{80002, 85002}] = {itemid = 3388, amount = 5, amountChance = 50000}, -- [{85003, 88003}] = {itemid = 2160, amount = 5, amountChance = 25000} -- } local itemsList = {3387, 3388, 3389, 43869, 43886, 43880, 43878, 3079} local canGetNoItem = false -- If true players can get nothing at all. -- local autoWin = {itemid = 3043, amount = 100, amountChance = 99999999} -- Item that is always won if they have to get something. -- local leverAID = 53452 -- AID in map for item that is used to roll -- local leverItemID = 1723 -- itemid for item that is used to roll -- -- Item required to spin activate roulette -- local itemRequired = 3043 local itemAmount = 100 local roulette = Action() function roulette.onUse(player, item, fromPosition, target, toPosition, isHotkey) if not player:removeItem(itemRequired, itemAmount) then return player:sendCancelMessage("Voce nao tem "..itemAmount.." "..ItemType(itemRequired):getName()..".") end local rand = math.random(100000) local win = false for i, v in pairs(items) do if rand >= i[1] and rand <= i[2] then win = items[i] break end end if not canGetNoItem and not win then win = autoWin end local winAmount = 0 if win then for i = 1, win.amount do local rand = math.random(100000) if rand <= win.amountChance then winAmount = winAmount + 1 end end end rollItems(win, winAmount, 30, player:getName()) return true end function rollItems(winTable, winAmount, spins, name) moveItems() if spins == 3 then if not winTable then spins = spins - 1 addEvent(rollItems, 200, winTable, winAmount, spins, name) return true end Game.createItem(winTable.itemid, winAmount, tiles[1]) spins = spins - 1 addEvent(rollItems, 200, winTable, winAmount, spins, name) return true end if spins >= 1 and spins ~= 3 then local randEmpty = math.random(6) if randEmpty == 1 then spins = spins - 1 addEvent(rollItems, 200, winTable, winAmount, spins, name) return true end local randomItem = itemsList[math.random(#itemsList)] local itemType = ItemType(randomItem) if itemType:isStackable() then Game.createItem(randomItem, math.random(5), tiles[1]) else Game.createItem(randomItem, 1, tiles[1]) end spins = spins - 1 addEvent(rollItems, 200, winTable, winAmount, spins, name) return true end if spins == 0 then giveReward(winTable, winAmount, name) end end function moveItems() local tileItems = {} for i = 1, #tiles do local tile = Tile(tiles[i]) if tile and tile:getTopDownItem() then tileItems[i] = tile:getTopDownItem() elseif tile and not tile:getTopDownItem() then tileItems[i] = false end end for i = 1, #tileItems do if i == 7 and tileItems[i] ~= false then tileItems[i]:remove() return true elseif tileItems[i] ~= false then tileItems[i]:moveTo(tiles[i + 1]) end end end function giveReward(winTable, winAmount, name) local player = Player(name) if not player then return true end if not winTable then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "TESTE") return true end player:addItem(winTable.itemid, winAmount) player:getPosition():sendMagicEffect(CONST_ME_FIREAREA) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Parabens! Voce recebeu um "..ItemType(winTable.itemid):getName()..".") -- player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You won "..winAmount.." "..ItemType(winTable.itemid):getName()..".") end roulette:id(leverItemID) roulette:register() Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  2. Maarkiin postou uma resposta no tópico em Playground (Off-topic)
    passando aqui depois de alguns séculos, bateu saudade, @Vodkart ainda ta apaixonado pela anne motta? kkkkkkkkkkk bjs, anne motta não consegui recuperar a outra conta @Markin
  3. Maarkiin postou uma resposta no tópico em Suporte Tibia OTServer
    Bom, eu baixar aquela base do servidor do malucooo que está pra download, o ot é show, a distro toda limpa, o unico problema é o imbuement system, ele até funciona a maquina, o imbue pega no item, adiciona a descrição ao item porque os imbue não funciona, é como se o item não tivesse nada.
  4. Maarkiin respondeu ao post em um tópico de EdsonJunior em Playground (Off-topic)
    vodkart viadão, annemotta te manda um beijo IUHFSDIJGUISHG
  5. Maarkiin respondeu ao post em um tópico de Maarkiin em Suporte Tibia OTServer
    <?php if(!defined('INITIALIZED')) exit; // DEFINE VARIABLES FOR SCRIPTS AND LAYOUTS (no more notices 'undefinied variable'!) if(!isset($_REQUEST['subtopic']) || empty($_REQUEST['subtopic']) || is_array($_REQUEST['subtopic'])) { $_REQUEST['subtopic'] = "latestnews"; } else $_REQUEST['subtopic'] = (string) $_REQUEST['subtopic']; if(Functions::isValidFolderName($_REQUEST['subtopic'])) { if(Website::fileExists("pages/" . $_REQUEST['subtopic'] . ".php")) { $subtopic = $_REQUEST['subtopic']; } else new Error_Critic('CRITICAL ERROR', 'Cannot load page <b>' . htmlspecialchars($_REQUEST['subtopic']) . '</b>, file does not exist.'); } else new Error_Critic('CRITICAL ERROR', 'Cannot load page <b>' . htmlspecialchars($_REQUEST['subtopic']) . '</b>, invalid file name [contains illegal characters].'); // action that page should execute if(isset($_REQUEST['action'])) $action = (string) $_REQUEST['action']; else $action = ''; $logged = false; $account_logged = new Account(); $group_id_of_acc_logged = 0; // with ONLY_PAGE option we want disable useless SQL queries if(!ONLY_PAGE) { // logged boolean value: true/false $logged = Visitor::isLogged(); // Account object with account of logged player or empty Account $account_logged = Visitor::getAccount(); // group of acc. logged if(Visitor::isLogged()) $group_id_of_acc_logged = Visitor::getAccount()->getPageAccess(); } $layout_name = './layouts/' . Website::getWebsiteConfig()->getValue('layout'); $title = ucwords($subtopic) . ' - ' . Website::getServerConfig()->getValue('serverName'); $topic = $subtopic; $passwordency = Website::getServerConfig()->getValue('passwordType'); if($passwordency == 'plain') $passwordency = ''; $news_content = ''; $vocation_name = array(); foreach(Website::getVocations() as $vocation) { $vocation_name[$vocation->getId()] = $vocation->getName(); } $layout_ini = parse_ini_file($layout_name.'/layout_config.ini'); foreach($layout_ini as $key => $value) $config['site'][$key] = $value; //###################### FUNCTIONS ###################### function microtime_float() { return microtime(true); } function isPremium($premdays, $lastday) { return Functions::isPremium($premdays, $lastday); } function saveconfig_ini($config) { new Error_Critic('', 'function <i>saveconfig_ini</i> is deprecated. Do not use it.'); } function password_ency($password, $account = null) { new Error_Critic('', 'function <i>password_ency</i> is deprecated. Do not use it.'); } function check_name($name) { $name = (string) $name; $temp = strspn("$name", "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM- [ ] '"); if($temp != strlen($name)) return false; if(strlen($name) > 25) return false; return true; } function check_account_name($name) { $name = (string) $name; $temp = strspn("$name", "QWERTYUIOPASDFGHJKLZXCVBNM0123456789"); if ($temp != strlen($name)) return false; if(strlen($name) < 1) return false; if(strlen($name) > 32) return false; return true; } function check_name_new_char($name) { $name = (string) $name; $name_to_check = strtolower($name); //first word can't be: $first_words_blocked = array('gm ','cm ', 'god ','tutor ', "'", '-'); //names blocked: $names_blocked = array('gm','cm', 'god', 'tutor', 'relembra', 'lixo', 'server', 'reset', 'suporte', 'support', 'senior', 'rashid', 'rashid', 'yasir', 'ukea', 'shirith', 'shiriel', 'shanar', 'roderick', 'repenter', 'Olrik', 'maealil', 'llathriel', 'lavirias', 'larfion the shaman', 'irea', 'huntsman', 'guide thelandil', 'finarfin', 'faluae', 'eroth', 'elvith', 'elf guard', 'elathriel', 'edala', 'dreadeye', 'cruleo', 'ceiron', 'captain seagull', 'briasol', 'brasith', 'benevola', 'bashira', 'ashari', 'anerui', 'an Old dragonlord', 'amarie', 'a wrinkled bonelord', 'a sweaty cyclops', 'william', 'trisha', 'toothless tim', 'tibra', 'shauna', 'sarina', 'rowenna', 'rachel', 'queen eloise', 'phillip', 'percybald', 'perac', 'padreia', 'nydala', 'nielson', 'lothar', 'liane', 'legola', 'lector', 'lea', 'karl', 'imalas', 'guide alexena', 'friedolin', 'florentine', 'fenbala', 'eva', 'emma', 'dane', 'dalbrect', 'cornelia', 'cerdras', 'captain greyhound', 'busty bonecrusher', 'bunny bonecrusher', 'blossom bonecrusher', 'benny the baker', 'barbara', 'bambi bonecrusher', 'arkarra', 'alia', 'xelvar', 'uzgod', 'tulf', 'tezila', 'talphion', 'storkus', 'sigurd', 'shortsighted dwarf', 'scutty', 'robson', 'riddler', 'rapanaio', 'pydar', 'pukosch', 'nezil', 'melfar', 'maryza', 'malech', 'lunch', 'lukosch', 'lokur', 'kroox', 'kawill', 'junkar', 'jimbin', 'jagran', 'iwar', 'isimov', 'humnog the guard', 'humgolf', 'grodrik', 'gewen', 'ferus', 'etzel', 'emperor kruzak', 'dwarven guard', 'duria', 'dukosch', 'dronk', 'burt', 'budrik', 'brom', 'brodrosch', 'bezil', 'basilisk', 'alberto', 'a dwarven ghost', 'al dee', 'amber', 'an Orc guard', 'asralius', 'azure frog', 'bog frog', 'coral frog', 'crimson frog', 'deathspawn', 'filth toad', 'green frog', 'infernal frog', 'Orchid frog', 'toad', 'the frog prince', 'quara constrictor', 'quara hydromancer', 'quara mantassin', 'quara pincher', 'quara predator', 'quara constrictor scout', 'quara hydromancer scout', 'quara mantassin scout', 'quara pincher scout', 'quara predator scout', 'renegade quara constrictor', 'renegade quara hydromancer', 'renegade quara mantassin', 'renegade quara pincher', 'renegade quara predator', 'inky', 'sharptooth', 'splasher', 'thul', 'deepling brawler', 'deepling elite', 'deepling guard', 'deepling master librarian', 'deepling scout', 'deepling spellsinger', 'deepling tyrant', 'deepling warrior', 'deepling worker', 'groam', 'jaul', 'Obujos', 'tanjis', 'salamander', 'crystal spider', 'dawn scorpion', 'frost spider', 'giant spider', 'instable sparkion', 'poison spider', 'sacred spider', 'sandstone scorpion', 'scorpion', 'sparkion', 'spider', 'tarantula', 'wailing widow', 'hide', 'mamma longlegs', 'spider queen', 'the bloodweb', 'the Old widow', 'webster', 'blood crab', 'crab', 'crustacea gigantica', 'deepsea blood crab', 'ancient scarab', 'berrypest', 'brimstone bug', 'bug', 'butterfly', 'dawnfly', 'emerald damselfly', 'insect swarm', 'insectoid scout', 'insectoid worker', 'kollos', 'lady bug', 'lancer beetle', 'larva', 'lesser swarmer', 'parasite', 'sandcrawler', 'scarab', 'shimmying butterfly', 'spidris', 'spidris elite', 'spitter', 'swarmer', 'swarmer hatchling', 'terramite', 'wasp', 'waspoid', 'anmothra', 'chopper', 'fleshcrawler', 'fleshslicer', 'hive Overseer', 'maw', 'mindmasher', 'rotspit', 'sulphur scuttler', 'the blightfather', 'willi wasp', 'anmothra', 'centipede', 'crawler', 'wiggler', 'abyssador', 'shadowstalker', 'apocalypse', 'bazir', 'infernatil', 'verminor', 'annihilon', 'golgordan', 'hellgorak', 'latrivan', 'madareth', 'ushuriel', 'zugurosh', 'angry demon', 'askarak demon', 'askarak lord', 'askarak prince', 'choking fear', 'damned soul', 'dark torturer', 'demon', 'demon Outcast', 'destroyer', 'diabolic imp', 'eclipse knight', 'enthralled demon', 'feversleep', 'fire devil', 'frazzlemaw', 'gloombringer', 'gozzler', 'grave guard', 'gravedigger', 'grimeleech', 'guzzlemaw', 'hand of cursed fate', 'harbinger of darkness', 'hellflayer', 'hellhound', 'hellspawn', 'herald of gloom', 'juggernaut', 'lesser fire devil', 'pit berserker', 'nightmare', 'nightmare scion', 'pit battler', 'nightstalker', 'pit blacking', 'pit brawler', 'plaguesmith', 'retching horror', 'rift brood', 'rift lord', 'rift phantom', 'rift scythe', 'rift worm', 'shaburak demon', 'shaburak lord', 'shaburak prince', 'shadow fiend', 'shadow hound', 'shiversleep', 'shock head', 'sight of surrender', 'silencer', 'sin devourer', 'tentacle of the deep terror', 'terrorsleep', 'the fettered shatterer', 'unbound demon', 'unbound demon Outcast', 'vexclaw', 'weakened demon', 'yielothax', 'boogey', 'bretzecutioner', 'flameborn', 'horadron', 'kerberos', 'massacre', 'mawhawk', 'mazoran', 'mephiles', 'monstor', 'Omrafir', 'Orshabaal', 'phrodomo', 'plagirath', 'prince drazzak', 'ragiaz', 'razzagorn', 'shulgrax', 'tarbaz', 'terofar', 'the handmaiden', 'the imperor', 'the shatterer', 'tormentor', 'ungreez', 'zavarash', 'haunter', 'the dreadorian', 'the masked marauder', 'the Obliverator', 'eclipse knight', 'gloombringer', 'harbinger of darkness', 'herald of gloom', 'phrodomo', 'shadow hound', 'spawn of despair', 'morgaroth', 'zoralurk', 'angry plant', 'bane bringer', 'blood beast', 'bog raider', 'carniphila', 'defiler', 'devourer', 'disgusting Ooze', 'empowered glooth horror', 'feeble glooth horror', 'glooth anemone', 'glooth horror', 'haunted treeling', 'hideous fungus', 'humongous fungus', 'humorless fungus', 'leaf golem', 'mechanical fighter', 'Omnivora', 'possessed tree', 'spit nettle', 'swampling', 'wilting leaf golem', 'woodling', 'bane lord', 'deathbine', 'deep terror', 'diseased bill', 'diseased dan', 'lisa', 'the abomination', 'tiquandas revenge', 'glooth blob', 'death blob', 'acid blob', 'mercury blob', 'midnight spawn', 'essence of darkness', 'midnight spawn', 'frost servant', 'ice golem', 'lost time', 'solid frozen horror', 'shardhead', 'breach brood', 'charged energy elemental', 'dread intruder', 'energy elemental', 'high voltage elemental', 'instable breach brood', 'instable sparkion', 'massive energy elemental', 'Overcharged energy elemental', 'reality reaver', 'sparkion', 'stabilizing reality reaver', 'anomaly', 'energy Overlord', 'earth Overlord', 'energy Overlord', 'fire Overlord', 'ice Overlord', 'lord of the elements', 'armadile', 'clay guardian', 'cliff strider', 'control tower', 'crystal crusher', 'damaged worker golem', 'diamond servant', 'diamond servant replica', 'earth elemental', 'elder forest fury', 'enraged crystal golem', 'eternal guardian', 'forest fury', 'gargoyle', 'glooth golem', 'golden servant', 'golden servant replica', 'infected weeper', 'iron servant', 'iron servant replica', 'jagged earth elemental', 'lava golem', 'magma crawler', 'massive earth elemental', 'medusa', 'metal gargoyle', 'minion of versperoth', 'muddy earth elemental', 'Orewalker', 'rustheap golem', 'stone devourer', 'stone golem', 'vulcongra', 'walker', 'war golem', 'weeper', 'worker golem', 'abyssador', 'deathstrike', 'earth Overlord', 'glooth fairy', 'gorgo', 'professor maxxen', 'massive water elemental', 'roaring water elemental', 'slick water elemental', 'spirit of fertility', 'water elemental', 'blazing fire elemental', 'blistering fire elemental', 'fire elemental', 'flame of Omrafir', 'hellfire fighter', 'infected weeper', 'lava golem', 'magma crawler', 'massive fire elemental', 'Orewalker', 'thornfire wolf', 'vulcongra', 'weeper', 'fire Overlord', 'dwarf', 'dwarf guard', 'dwarf geomancer', 'dwarf soldier', 'lost basher', 'lost berserker', 'lost husher', 'lost thrower', 'foreman kneebiter', 'gnomevil', 'lloyd', 'elf', 'elf arcanist', 'elf Overseer', 'elf scout', 'firestarter', 'mornenion', 'behemoth', 'cyclops', 'cyclops drone', 'cyclops smith', 'frost giant', 'frost giantess', 'juvenile cyclops', 'Orclops doomhauler', 'Orclops ravager', 'yeti', 'stonecracker', 'goblin', 'goblin assassin', 'goblin leader', 'goblin scavenger', 'grynch clan goblin', 'muglex clan assassin', 'muglex clan footman', 'muglex clan scavenger', 'Orc', 'Orc berserker', 'Orc leader', 'Orc marauder', 'Orc rider', 'Orc shaman', 'Orc spearman', 'Orc warlord', 'Orc warrior', 'rorc', 'scar tribe shaman', 'hacker', 'frost troll', 'furious troll', 'island troll', 'mountain troll', 'swamp troll', 'troll', 'troll champion', 'troll guard', 'troll legionnaire', 'troll marauder', 'young troll', 'big boss trolliver', 'salamander trainer', 'Ogre brute', 'Ogre savage', 'Ogre shaman', 'amazon', 'valkyrie', 'xenia', 'barbarian bloodwalker', 'barbarian brutetamer', 'barbarian headsplitter', 'barbarian skullhunter', 'barbaria', 'dark monk', 'monk', 'acolyte of darkness', 'blood hand', 'blood priest', 'bride of night', 'necromancer', 'priestess', 'shadow pupil', 'necropharus', 'adventurer', 'angry adventurer', 'assassin', 'bandit', 'black knight', 'crazed beggar', 'crypt defiler', 'elvira hammerthrust', 'feverish citizen', 'gang member', 'gladiator', 'glooth bandit', 'glooth brigand', 'grave robber', 'hero', 'hunter', 'jesse the wicked', 'midnight warrior', 'mornenion', 'mutated human', 'nightslayer', 'nomad', 'poacher', 'primitive', 'renegade knight', 'robby the reckless', 'smuggler', 'stalker', 'thief', 'vicious squire', 'vile grandmaster', 'wild warrior', 'pirate buccaneer', 'pirate corsair', 'pirate cutthroat', 'pirate ghost', 'pirate marauder', 'pirate skeleton', 'brutus bloodbeard', 'captain jones', 'deadeye devious', 'dirtbeard', 'lethal lissy', 'ron the ripper', 'dark apprentice', 'dark magician', 'dawnfire asura', 'fury', 'ice witch', 'infernalist', 'mad scientist', 'midnight asura', 'warlock', 'witch', 'ascending ferumbras', 'yalahari', 'azerus', 'carlin', 'venore', 'thais', 'yalahar', 'liberty bay', 'darashia', 'roshamuul', 'Oramond', 'death priest shargon', 'destabilized ferumbras', 'doctor perhaps', 'ekatrix', 'energized raging mage', 'ferumbras', 'ferumbras essence', 'ferumbras mortal shell', 'ferumbras soul splinter', 'furyosa', 'mad mage', 'raging mage', 'the flaming Orchid', 'the last lore keeper', 'yaga the crone', 'yakchal', 'zarabustor', 'zushuka', 'acolyte of the cult', 'adept of the cult', 'doomsday cultist', 'enlightened of the cult', 'novice of the cult', 'grandfather tridian', 'tzumrah the dazzler', 'doomsday cultist', 'chakoya toolshaper', 'chakoya tribewarden', 'chakoya windcaller', 'Ocyakao', 'dworc fleshhunter', 'dworc venomsniper', 'dworc voodoomaster', 'Oodok witchmaster', 'depowered minotaur', 'execowtioner', 'glooth powered minotaur', 'minotaur', 'minotaur amazon', 'minotaur archer', 'minotaur mage', 'moohtant', 'worm priestess', 'bullwark', 'the horned fox', 'corym charlatan', 'corym skirmisher', 'corym vanguard', 'little corym charlatan', 'bonelord', 'braindeath', 'elder bonelord', 'eye of the seven', 'gazer', 'evil mastermind', 'the evil eye', 'blue djinn', 'efreet', 'green djinn', 'marid', 'fahim the wise', 'merikh the slaughterer', 'kreebosh the exile', 'kongra', 'merlkin', 'sibang', 'yeti', 'freegoiz', 'hairman the huge', 'the hairy One', 'black sheep', 'boar', 'clomp', 'deer', 'desperate white deer', 'doom deer', 'dromedary', 'enraged white deer', 'evil sheep', 'evil sheep lord', 'horse', 'ironblight', 'mad sheep', 'mushroom sniffer', 'pig', 'sheep', 'stampor', 'stone rhino', 'vampire pig', 'water buffalo', 'wereboar', 'white deer', 'wild horse', 'tromphonyte', 'Owin', 'crystal wolf', 'dog', 'ghost wolf', 'gloom wolf', 'hellhound', 'hot dog', 'husky', 'poodle', 'starving wolf', 'thornfire wolf', 'war wolf', 'werewolf', 'wild dog', 'winter wolf', 'wolf', 'feroxa', 'hemming', 'kerberos', 'the big bad One', 'elephant', 'mammoth', 'terrified elephant', 'the bloodtusk', 'cat', 'lion', 'midnight panther', 'mutated tiger', 'noble lion', 'roaring lion', 'tiger', 'zomba', 'badger', 'bat', 'ghoulish hyaena', 'gnarlhound', 'hyaena', 'modified gnarlhound', 'skunk', 'werebadger', 'fleabringer', 'mutated bat', 'mutated human', 'mutated rat', 'mutated tiger', 'bruise payne', 'esmeralda', 'bear', 'panda', 'polar bear', 'undead cavebear', 'werebear', 'bloodpaw', 'cave rat', 'enraged squirrel', 'killer rabbit', 'mutated rat', 'rabbit', 'rat', 'silver rabbit', 'squirrel', 'thieving squirrel', 'esmeralda', 'munster', 'the lord of the lice', 'carrion worm', 'drillworm', 'enraged bookworm', 'rift worm', 'rotworm', 'rottie the rotworm', 'rotworm queen', 'tremor worm', 'versperoth', 'white pale', 'breach brood', 'instable breach brood', 'jellyfish', 'anomaly', 'berserker chicken', 'cave parrot', 'chicken', 'demon parrot', 'dire penguin', 'flamingo', 'marsh stalker', 'meadow strider', 'parrot', 'penguin', 'pigeon', 'seagull', 'terror bird', 'abyssal calamary', 'calamary', 'slug', 'manta ray', 'fish', 'northern pike', 'shark', 'slippery northern pike', 'guilt', 'lizard sentinel', 'lizard snakecharmer', 'lizard templar', 'wyvern', 'heoni', 'high templar cobrass', 'fatality', 'menace', 'lizard chosen', 'lizard dragon priest', 'lizard high guard', 'lizard legionnaire', 'lizard magistratus', 'lizard noble', 'lizard zaogun', 'souleater', 'battlemaster zunzu', 'fazzrah', 'flamecaller zazrak', 'lizard abomination', 'lizard gate guardian', 'mutated zalamon', 'the voice of ruin', 'draken abomination', 'draken elite', 'draken spellweaver', 'draken warmaster', 'draptor', 'wounded cave draptor', 'chizzoron the distorter', 'paiz the pauperizer', 'zulazza the corruptor', 'tirecz', 'crocodile', 'killer caiman', 'thornback tortoise', 'tortoise', 'dreadmaw', 'the snapper', 'cobra', 'hydra', 'sacred snake', 'sea serpent', 'seacrest serpent', 'serpent spawn', 'snake', 'spawn of the welter', 'young sea serpent', 'leviathan', 'snake god essence', 'snake thing', 'the keeper', 'the many', 'the noxious spawn', 'the welter', 'corrupted soul', 'dryad', 'enraged soul', 'ghost', 'ghostly apparition', 'phantasm', 'pirate ghost', 'redeemed soul', 'rift phantom', 'skullfrost', 'soul spark', 'souleater', 'spectre', 'tainted soul', 'tarnished spirit', 'tormented ghost', 'white shade', 'wisp', 'captain jones', 'countess sorrow', 'teneshpar', 'dryad', 'soul spark', 'teneshpar', 'arkhothep', 'ashmunrah', 'dipthrah', 'horestis', 'mahrdis', 'morguthis', 'Omruc', 'rahemos', 'superior death minion', 'thalas', 'the ravager', 'vashresamun', 'minion of skyrr', 'yellow toilet paper man', 'betrayed wraith', 'bonebeast', 'brittle skeleton', 'death dragon', 'demon skeleton', 'dreadbeast', 'honour guard', 'lesser death minion', 'lost soul', 'party skeleton', 'pirate skeleton', 'skeleton', 'skeleton warrior', 'undead cavebear', 'undead dragon', 'undead gladiator', 'undead mine worker', 'dracola', 'ribstride', 'teleskor', 'zanakeph', 'deathbringer', 'slim', 'bane of light', 'banshee', 'blightwalker', 'crypt shambler', 'death priest', 'death reaper', 'duskbringer', 'elder mummy', 'ghoul', 'greater death minion', 'grim reaper', 'lich', 'mummy', 'nightfiend', 'rift scythe', 'shadow tentacle', 'tomb servant', 'unbound blightwalker', 'undead jester', 'undead prospector', 'vampire', 'vampire bride', 'vampire viscount', 'vicious manbat', 'zombie', 'arachir the ancient One', 'armenius', 'arthei', 'bloom of doom', 'boreth', 'devovorga', 'devovorga', 'diblis the fair', 'gravelord Oshuran', 'koshei the deathless', 'lersatio', 'marziel', 'shadow of boreth', 'shadow of marziel', 'sir valorcrest', 'spawn of devovorga', 'the count', 'the pale count', 'the weakened count', 'vulnerable cocoon', 'zevelon duskbringer', 'cursed gladiator', 'baby dragon', 'death dragon', 'dragon', 'dragon essence', 'dragon hatchling', 'dragon lord', 'dragon lord hatchling', 'dragon servant', 'dragon warden', 'dragonking zyrtarch', 'dragonling', 'draptor', 'elder wyrm', 'fallen challenger', 'frost dragon', 'frost dragon hatchling', 'ghastly dragon', 'haunted dragon', 'ice dragon', 'somewhat beatable', 'unbeatable dragon', 'undead dragon', 'wounded cave draptor', 'wyrm', 'demodras', 'dracola', 'ethershreck', 'fury of the emperor', 'gelidrazah the frozen', 'glitterscale', 'grand mother foulscale', 'hatebreeder', 'kalyassa', 'pythius the rotten', 'scorn of the emperor', 'soul of dragonking zyrtarch', 'spite of the emperor', 'tazhadur', 'the first dragon', 'tyrn', 'wrath of the emperor', 'zanakeph', 'zorvorax', 'deathbringer', 'drasilla', 'dragon essence'); //name can't contain: $words_blocked = array('gamemaster', 'game master', 'adm', 'cm', 'gm', 'tutor', 'Adm', 'reset', 'server', 'serve', 'escroto', 'noob', 'relembra', 'game-master', "game'master", '--', "''","' ", " '", '- ', ' -', "-'", "'-", 'fuck', 'sux', 'suck', 'noob', 'tutor'); foreach($first_words_blocked as $word) if($word == substr($name_to_check, 0, strlen($word))) return false; if(substr($name_to_check, -1) == "'" || substr($name_to_check, -1) == "-") return false; if(substr($name_to_check, 1, 1) == ' ') return false; if(substr($name_to_check, -2, 1) == " ") return false; foreach($names_blocked as $word) if($word == $name_to_check) return false; for($i = 0; $i < strlen($name_to_check); $i++) if($name_to_check[$i-1] == ' ' && $name_to_check[$i+1] == ' ') return false; foreach($words_blocked as $word) if (!(strpos($name_to_check, $word) === false)) return false; for($i = 0; $i < strlen($name_to_check); $i++) if($name_to_check[$i] == $name_to_check[($i+1)] && $name_to_check[$i] == $name_to_check[($i+2)]) return false; for($i = 0; $i < strlen($name_to_check); $i++) if($name_to_check[$i-1] == ' ' && $name_to_check[$i+1] == ' ') return false; $temp = strspn("$name", "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM- '"); if ($temp != strlen($name)) return false; if(strlen($name) < 1) return false; if(strlen($name) > 25) return false; return true; } function check_rank_name($name) { $name = (string) $name; $temp = strspn("$name", "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM0123456789-[ ] "); if($temp != strlen($name)) return false; if(strlen($name) < 1) return false; if(strlen($name) > 60) return false; return true; } function check_guild_name($name) { $name = (string) $name; $words_blocked = array('--', "''","' ", " '", '- ', ' -', "-'", "'-", ' '); $temp = strspn("$name", "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM0123456789-' "); if($temp != strlen($name)) return false; if(strlen($name) < 1) return false; if(strlen($name) > 60) return false; foreach($words_blocked as $word) if (!(strpos($name, $word) === false)) return false; return true; } function check_password($pass) { $pass = (string) $pass; $temp = strspn("$pass", "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890"); if($temp != strlen($pass)) return false; if(strlen($pass) > 40) return false; return true; } function check_mail($email) { $email = (string) $email; $ok = "/[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z]{2,4}/"; return (preg_match($ok, $email))? true: false; } function items_on_player($characterid, $pid) { new Error_Critic('', 'function <i>items_on_player</i> is deprecated. Do not use it. It used too many queries!'); } function getReason($reasonId) { return Functions::getBanReasonName($reasonId); } //################### DISPLAY FUNCTIONS ##################### //return shorter text (news ticker) function short_text($text, $chars_limit) { if(strlen($text) > $chars_limit) return substr($text, 0, strrpos(substr($text, 0, $chars_limit), " ")).'...'; else return $text; } //return text to news msg function news_place() { return ''; } //set monster of week function logo_monster() { new Error_Critic('', 'function <i>logo_monster</i> is deprecated. Do not use it!'); } // we don't want to count AJAX scripts/guild images as page views, we also don't need status if(!ONLY_PAGE) { // STATUS CHECKER $statustimeout = 1; foreach(explode("*", str_replace(" ", "", $config['server']['statusTimeout'])) as $status_var) if($status_var > 0) $statustimeout = $statustimeout * $status_var; $statustimeout = $statustimeout / 1000; $config['status'] = parse_ini_file('cache/DONT_EDIT_serverstatus.txt'); if($config['status']['serverStatus_lastCheck']+$statustimeout < time()) { $config['status']['serverStatus_checkInterval'] = $statustimeout+3; $config['status']['serverStatus_lastCheck'] = time(); $statusInfo = new ServerStatus($config['server']['ip'], $config['server']['statusPort'], 1); if($statusInfo->isOnline()) { $config['status']['serverStatus_online'] = 1; $config['status']['serverStatus_players'] = $statusInfo->getPlayersCount(); $config['status']['serverStatus_playersMax'] = $statusInfo->getPlayersMaxCount(); $h = floor($statusInfo->getUptime() / 3600); $m = floor(($statusInfo->getUptime() - $h*3600) / 60); $config['status']['serverStatus_uptime'] = $h.'h '.$m.'m'; $config['status']['serverStatus_monsters'] = $statusInfo->getMonsters(); } else { $config['status']['serverStatus_online'] = 0; $config['status']['serverStatus_players'] = 0; $config['status']['serverStatus_playersMax'] = 0; } $file = fopen("cache/DONT_EDIT_serverstatus.txt", "w"); $file_data = ''; foreach($config['status'] as $param => $data) { $file_data .= $param.' = "'.str_replace('"', '', $data).'" '; } rewind($file); fwrite($file, $file_data); fclose($file); } //PAGE VIEWS COUNTER $views_counter = "cache/DONT_EDIT_usercounter.txt"; // checking if the file exists if (file_exists($views_counter)) { $actie = fopen($views_counter, "r+"); if ($actie) { $page_views = fgets($actie, 9); $page_views++; rewind($actie); fputs($actie, $page_views, 9); fclose($actie); } } else { // the file doesn't exist, creating a new one with value 1 $actie = fopen($views_counter, "w"); $page_views = 1; fputs($actie, $page_views, 9); fclose($actie); } }
  6. Maarkiin postou uma resposta no tópico em Suporte Tibia OTServer
    Toda vez que abro o site aparece os seguintes erros a baixo... logo depois o site abre normal porem fica um grande espaço no topo do site.
  7. Maarkiin respondeu ao post em um tópico de Maarkiin em Suporte Bots
    up
  8. Maarkiin postou uma resposta no tópico em Suporte Bots
    Boa noite, não sei se alguem aqui ainda mexe com xenobot, mas se mexer... Gostaria de um script pra treinar ML em quanto estou caçando na hunt. Exemplo: Sempre que minha mana for maior que 90% do total, usar a magia 'utana vid"... crio que pra quem entende deve ser facil. Agradeço desde já.
  9. Maarkiin respondeu ao post em um tópico de Maarkiin em Suporte Tibia OTServer
    Aaaah sim, então não precisa mais... obrigado pela resposta!
  10. Maarkiin postou uma resposta no tópico em Suporte Tibia OTServer
    Boa noite, baixar o GesiorACC 2012 porém o index.php dele esta diferente dos outros... lembro que antigamente tinha que adicionar tags no index.php mais ou menos assim case "killstatistics"; $topic = "Last Kills"; $subtopic = "killstatistics"; include("killstatistics.php"); break; porém agora dentro do meu index.php esta assim... <?php // comment to show E_NOTICE [undefinied variable etc.], comment if you want make script and see all errors error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE); // true = show sent queries and SQL queries status/status code/error message define('DEBUG_DATABASE', false); define('INITIALIZED', true); // if not defined before, set 'false' to load all normal if(!defined('ONLY_PAGE')) define('ONLY_PAGE', false); // check if site is disabled/requires installation include_once('./system/load.loadCheck.php'); // fix user data, load config, enable class auto loader include_once('./system/load.init.php'); // DATABASE include_once('./system/load.database.php'); if(DEBUG_DATABASE) Website::getDBHandle()->setPrintQueries(true); // DATABASE END // LOGIN if(!ONLY_PAGE) include_once('./system/load.login.php'); // LOGIN END // COMPAT // some parts in that file can be blocked because of ONLY_PAGE constant include_once('./system/load.compat.php'); // COMPAT END // LOAD PAGE include_once('./system/load.page.php'); // LOAD PAGE END // LAYOUT // with ONLY_PAGE we return only page text, not layout if(!ONLY_PAGE) include_once('./system/load.layout.php'); else echo $main_content; // LAYOUT END como faço pra adicionar aquela tag? qual aquivo tenho que abrir pra adicionar essa tag? case "killstatistics"; $topic = "Last Kills"; $subtopic = "killstatistics"; include("killstatistics.php"); break;
  11. Maarkiin respondeu ao post em um tópico de Maarkiin em Suporte & Pedidos
    Então, os mais antigos devem até lembrar de mim aqui no fórum, já fui mod um tempinho... Markin ou AnneMotta, como preferirem... Eu mexi com OTserver durante um loooooooongo tempo, sei um pouquinho de cada coisa, o meu plano era mudar um pouco do servidor em relação ao mapa, adicionar algumas quests no mesmo padrão do global, mas sem perder o gosto do servidor.
  12. Maarkiin postou uma resposta no tópico em Suporte & Pedidos
    Eu estava pensando em abrir um servidor global na versão 8.60, exp na media de 300x stages e loot baseado nos 4x... Já esta com site pronto, o mapa dei uma alterada, ajeitei alguns scripts e estava pensando em colocá-lo online, gostaria da opinião de vocês, será que vale a pena? Investir dinheiro e tempo nisso? Será que ainda é capaz de um global dar certo?
  13. Maarkiin respondeu ao post em um tópico de Maarkiin em Suporte & Pedidos
    Fiquei chateado quando vi o que aconteceu, quando parei de jogar o tibia ja estava morto, porém ainda tinha uma boa quantia de servidores de qualidade que dava pra brincar, agora a unica coisa que restou foram baiaks... complicado...
  14. Maarkiin postou uma resposta no tópico em Suporte & Pedidos
    O que aconteceu com os servidores 8.60 mapa global? Fui fuçar na otservlist e só tem baiak... morreu de vez os servidores global?
  15. tuts tuts #annemotta
  16. Maarkiin respondeu ao post em um tópico de Shiro em Suporte & Pedidos
    E eu entro só para dizer que sou o Best Fizz BR, abç.
  17. Maarkiin respondeu ao post em um tópico de Shiro em Suporte & Pedidos
    Não queria falar não mais... Best Fizz BR.
  18. Maarkiin respondeu ao post em um tópico de Shiro em Suporte & Pedidos
    Enfim, não vou discutir com criança... Hoje mais a noite entro no seu servidor para brincar rs, se estiver online.
  19. Maarkiin respondeu ao post em um tópico de Shiro em Suporte & Pedidos
    Eu garanto que o que eu sei de Tibia/otserver em geral você não sabe nem 1/3 e o mínimo que você precisaria saber é descobrir quem eu sou. warwolf sabe quem eu sou... E o arthurluna se prestar atenção sabe quem sou também, você é um mero anônimo aqui, bj.
  20. Maarkiin respondeu ao post em um tópico de Shiro em Suporte & Pedidos
    Se alguém me arrumar um vps eu boto um ot e ganho dinheiro, foda-se os players. Se vocês querem se divertir vai jogar LOL que é de graça (: @Gasta dinheiro quem quer, ganha quem quer.
  21. Maarkiin respondeu ao post em um tópico de Shiro em Suporte & Pedidos
    Não tem como você por uma media de lucro em um servidor... Primeiro que tem dias que as crianças não guardam o dinheiro do lanche para botar vip... Ai o ot não lucraria. Já outro dia as 2 crianças guardariam o dinheiro do lanche para por vip então o lucro seria dobrado. E outra, 99% dos donos de servidores só querem dinheiro e tão pouco se fudendo para o servidor.(Claro que uma vez ou outra da um update ou arruma algum bug e os players já ficam todos alegres).
  22. 8.54~57
  23. Maarkiin respondeu ao post em um tópico de Maarkiin em Playground (Off-topic)
    Eu também tenho, sefóde HUAUHAUHAUHAUHAUHAHUAHUAHAHU
  24. Maarkiin respondeu ao post em um tópico de Maarkiin em Playground (Off-topic)
    caso alguém queria assistir D: http://pt-br.twitch.tv/riotgamesbrazil
  25. Maarkiin postou uma resposta no tópico em Playground (Off-topic)
    Campeonato brasileiro de League of Legends quando... dava para ver nitidamente o T.K mas não teu para printar antes D:

Informação Importante

Confirmação de Termo