Histórico de Curtidas
-
Tiodarsa. recebeu reputação de Anderson147147 em [8.60]Baiak Barao Editado DeathRocksComo funciona esse cast system seu?
-
Tiodarsa. recebeu reputação de Fabricio Soares em [8.60]Baiak Barao Editado DeathRocksestou testando em sqlite criei account e password apos sair do account manager e logar na conta que criei aparece senha invalida.
-
Tiodarsa. recebeu reputação de Fabricio Soares em [8.60]Baiak Barao Editado DeathRocksComo funciona esse cast system seu?
-
Tiodarsa. recebeu reputação de hudsonof em Qual desses VPS escolher?não quero fazer propaganda mais uma vez comprei da http://weblara.com.br um global que eles diziam ser muito "Bom"
na primeira semana consegui mais de 150 players online, partir dai não sei se era Bug no map ou Ataque etc....
servidor era linux que muitos dizem ser muito bom contra ataques DDos resumindo acabaram com meu projeto em menus de 1 dia.
não adianto iptables e etc... fora atendimento que não foi o que eu esperava.
estou com um novo projeto e não tenho duvidas servercore tem os melhores planos,podem até ser um pouco "salgado" mais se voce não quer se incomodar futuramente servercore com certeza.
-
Tiodarsa. recebeu reputação de Augusto em Monster Loot Checker 1.5Bom pessoal esse é meu primeiro Tópico que estou trazendo pro TK espero que gostem.
Como eu vi muita gente que tem problema com loot de monstros,
resolvi compartilhar com vocês um arquivo .PHP que tenho guardado a muito tempo e que já me ajudou muito a um tempo atrás, que com certeza vai ajudar muita gente.
Você roda no site e ele vai analisar os monstros do seu otServ e vai trazer a lista dos itens
pra você ele traz também se o drop do itens é 100%,Semi-Raro, ou Raro.
Imagem:
antes de Rodar o arquivo abra ele e procure por:
$otdir = 'C:\Global 8.60';
Troque 'C:\Global 8.60'; pela Localização do Seu servidor.
OBs:
C:/ = Corresponde ao seu Disco Local seu (HD),
caso use mais de um disco verifique antes de rodar caso contrario não vai funcionar.
<?php ###### MONSTER LOOT CHECKER ###### ###### VERSION: 1.5 ###### AUTHOR: Colandus $otdir = 'C:\Global 8.60'; // In percent (highest first). $rarity = array( 'Not Rare' => 7, 'Semi Rare' => 2, 'Rare' => 0.5, 'Very Rare' => 0 ); ?> <html> <head> <title>Colandus' Monster Loot Checker 1.5</title> </head> <body style="background-color: #434343; color: #C4C4FF"> <script language="javascript"> function toggleVisibility(obj) { var el = document.getElementById('d' + obj.id); var name = obj.innerHTML.substring(4); if(el.style.display == 'none') { obj.innerHTML = '[ -]'; el.style.display = 'block'; } else { obj.innerHTML = '[+]'; el.style.display = 'none'; } obj.innerHTML += ' ' + name; } </script> <style type="text/css"> a { color:red; font: bold 13px verdana; text-decoration: none; } a:hover { text-decoration: underline; } </style> <?php if(isset($_GET['lootrate'])) $add = '&lootrate'; echo '<a href="' . $_SERVER['PHP_SELF'] . ($add ? '?lootrate' : '') . '">Hide None</a> | '; echo '<a href="?hidefail' . $add . '">Hide Not Found</a> | '; echo '<a href="?hideempty' . $add . '">Hide Monsters Without Loot</a> |'; echo '<a href="?hideempty&hidefail' . $add . '">Hide All</a>'; ?> <br /><br /><a href="?lootrate">Use Server Loot Rate</a> <br /><br /> <?php $items = simplexml_load_file($otdir . '/data/items/items.xml') or die('<b>Could not load items!</b>'); foreach($items->item as $v) $itemList[(int)$v['id']] = $v['name']; if(isset($_GET['lootrate'])) { $config = parse_ini_file($otdir . '/config.lua'); $lootRate = $config['rateLoot']; } $monsters = simplexml_load_file($otdir . '/data/monster/monsters.xml') or die('<b>Could not load monsters!</b>'); foreach($monsters->monster as $monster) { $loot = simplexml_load_file($otdir . '/data/monster/' . $monster['file']); if($loot) { if($item = $loot->loot->item) { echo ' <a id="' . ++$i . '" style="text-decoration: none; font: bold 14px verdana; color: orange;" href="javascript:void(0);" onclick="toggleVisibility(this)">[+] ' . $monster['name'] . '</a> <br /><div style="display: none;" id="d' . $i . '"> <pre>>>> <b><u>' . $otdir . '/' . $monster['file'] . '</u></b><br /><br />'; addLoot($item); echo '</pre></div>'; } elseif(!isset($_GET['hideempty'])) echo '<span style="font: bold 14px verdana; color: red;">[x] ' . $monster['name'] . '</span><br />'; } elseif(!isset($_GET['hidefail'])) echo '<span style="color: white;">Failed to load monster <b>' . $monster[name] . '</b> <i>(' . $monster[file] . ')</i><br />'; } function addLoot($loot, $level=1) { foreach($loot as $test) { $chance = $test['chance']; if(!$chance) $chance = $test['chance1']; printLoot($level, $test['id'], $test['countmax'], $chance); foreach($test as $k => $v) addLoot($v->item, $level + 1); } } function printLoot($level, $itemid, $count, $chance) { global $itemList, $rarity; $chance /= 1000; if(isset($_GET['lootrate'])) { global $lootRate; $chance *= $lootRate; } foreach($rarity as $lootRarity => $percent){ if($chance >= $percent) { echo str_repeat("... ", $level) . '<u>' . ($count ? $count : 1) . '</u> <span style="color: #7878FF; font-weight: bold;">' . $itemList[(int)$itemid] . '</span> ' . $itemid . ' <span style="color: #C45; font-weight: bold;">' . $lootRarity . '</span> (<span style="color: #FF9A9A;">' . $chance . '%</span>)<br />'; break; } } } ?> </body> </html> Se gostou da um rep+ aew
Creditos :
Colandus - Scripts
Eu - Por trazer para o TK
-
Tiodarsa. deu reputação a MaXwEllDeN em (Resolvido)[DUVIDA] Verificação players (função getTop())Não estava funcionando porque skill possuía um valor nulo, já que não foi declarado. Tenta assim:
local function getTop() -- função by vodkart local query = db.getResult("SELECT `name`, `level` FROM `players` WHERE `id` > 6 AND `group_id` < 2 ORDER BY `level` DESC, `name` ASC;") if (query:getID() ~= -1) then return {query:getDataString("name"),query:getDataInt("level")} end return false end function onAdvance(cid, skill, oldLevel, newLevel) local top = getTop() if skill == 8 then if newLevel > top[2] and getCreatureName(cid) ~= top[1] then doBroadcastMessage(getCreatureName(cid).." é o novo TOP do servidor, ele está no level " .. newLevel .. ".", 22) end end return true end -
Tiodarsa. deu reputação a DeathRocks em [8.60]Baiak Barao Editado DeathRockso erro de save só esta ai
porq eu deixei o ot on varios dias e ta tudo ok
@Edit
Poste o erro
-
Tiodarsa. deu reputação a MaXwEllDeN em (Resolvido)[Ajuda] Recompensa diarialocal config = { storage = 27364, exhauststorage = 20932, days = { ["Monday"] = {itemid = 2476, count = 1, storagevalue = 1}, ["Tuesday"] = {itemid = 2488, count = 1, storagevalue = 2}, ["Wednesday"] = {itemid = 2195, count = 1, storagevalue = 3}, ["Thursday"] = {itemid = 2497, count = 1, storagevalue = 4}, ["Friday"] = {itemid = 2270, count = 1, storagevalue = 5}, ["Saturday"] = {itemid = 2141, count = 1, storagevalue = 6}, ["Sunday"] = {itemid = 2656, count = 1, storagevalue = 7} }, } function onUse(cid, item, fromPosition, itemEx, toPosition) local x = config.days[os.date("%A",os.time())] if(getPlayerStorageValue(cid, config.storage) == x.storagevalue and os.time() - getPlayerStorageValue(cid, config.exhauststorage) < 86400) then return doPlayerSendCancel(cid, "The chest is empty, come back tomorrow for a new reward.") end local info = getItemInfo(x.itemid) if(x.count > 1) then text = x.count .. " " .. info.plural else text = info.article .. " " .. info.name end local item = doCreateItemEx(x.itemid, x.count) if(doPlayerAddItemEx(cid, item, false) ~= RETURNVALUE_NOERROR) then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) text = "You have found a reward weighing " .. getItemWeight(item) .. " oz. It is too heavy or you have not enough space." else text = "You have received " .. text .. "." setPlayerStorageValue(cid, config.storage, x.storagevalue) setPlayerStorageValue(cid, config.exhauststorage, os.time()) end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, text) return true end
-
Tiodarsa. deu reputação a MaTTch em premiação para os 5 tops ranksAcabei de fazer aqui, mas nao testei:
local function doPlayerAddDepotItems(pid, item, count) local result = db.getResult("SELECT `sid` FROM `player_depotitems` WHERE `player_id` = "..pid.." ORDER BY `sid` DESC LIMIT 1;") if (result:getID() ~= -1) then local ls = tonumber(result:getDataInt("sid")) return db.executeQuery("INSERT INTO `player_depotitems` (`player_id`, `sid`, `pid`, `itemtype`, `count`, `attributes`) VALUES ("..pid..", "..(ls+1)..", 101, "..item..", "..count..", '');") end end local config = { --[posiçao do rank] = {premio, quantidade} [1] = {2160,100}, -- TOP 1 [2] = {2160,60}, -- TOP 2 [3] = {2160,40}, -- TOP 3 [4] = {2160,20}, -- TOP 4 [5] = {2160,10} -- TOP 5 } local days = {"sunday"} -- {Segunda = Monday, Terça = Tuesday, Quarta = Wednesday, Quinta = Thursday, Sexta = Friday, Sabado = Saturday, Domingo = Sunday} local players = {} function onTimer(interval) for d = 1, #days do if os.date("%A"):lower() ~= days[d]:lower() then return true end end local string = "Ganhadores dos premios TOP Rank:\n" for i = 1, #config do local result = db.getResult("SELECT `name`, `id` FROM `players` WHERE `group_id` < 3 AND deleted = 0 ORDER BY `level` DESC, `experience` DESC LIMIT "..(i-1)..", "..i..";") table.insert(players, result:getDataInt("id")) local name = result:getDataString("name") local on = getPlayerByNameWildcard(name) if isCreature(on) then doPlayerAddItem(on, config[i][1], config[i][2]) else doPlayerAddDepotItems(players[i], config[i][1], config[i][2]) end string = string..""..i.." "..name..", premio: "..config[i][2].." "..getItemNameById(config[i][1])..""..(config[i][2] > 1 and "s" or "").."\n" end return doBroadcastMessage(string, MESSAGE_EVENT_ADVANCE) end TAG:
<globalevent name="TopReward" time="21:00" event="script" value="Nome Do Arquivo.lua"/> -
Tiodarsa. deu reputação a luanluciano93 em (Resolvido)Aparecer pk, pk red no gesiorDepois disso:
$number_of_players_online++; Add isso:
$skull = ''; if ($player['skull'] == 4) $skull = "<img style='border: 0;' src='./images/skulls/redskull.gif'/>"; elseif ($player['skull'] == 5) $skull = "<img style='border: 0;' src='./images/skulls/blackskull.gif'/>";
E isso:
<TD WIDTH=70%>'.$flag.'<A HREF="index.php?subtopic=characters&name='.urlencode($player['name']).'">'.$player['name'].'</A></TD> Troque por isso:
<TD WIDTH=70%>'.$flag.'<A HREF="index.php?subtopic=characters&name='.urlencode($player['name']).'">'.$player['name'].''.$skull.'</A></TD> Acho que é só isso, teste e me avise!