Tudo que sidneivascao postou
-
Storage para torneio
Eu sei, sou muito bom no portugues nao. Tipo, o torneio começou, e ai os player tao la lutando, quando sobrasse apenas um player no torneio, ele ir ate uma porta , clica-se nela e ai ele passava para receber o premio automatico, so que tipo queria que funcionasse issu para o player passa na porta quando restasse apenas um jogador...
-
[Event New] Últimos Sobreviventes
ei amigo, teria como mi ensinar tipo, fiz um torneio, e ai quando torneio começar, os player tao la se matando, e o ultimo que restar, esse player ir numa porta e ai abrir ela, mais queria q funcionasse issu apenas quando restar apenas 1 player entendeu? teria como mi ajudar ...
- Storage para torneio
-
Ajuda Gesior Shop entregar item e vip aos players
eu conseguir shoop meu do site os item chega na acc em 15 segundos, so nao consigo criar um item que quando abrir dar vip, alguem poderia mi ajudar?
-
Add e Remover Premium points por comando
nao funciona
- Desbugar Base
- (Resolvido)[AJUDA] Aparece issu no shop do website
- (Resolvido)[AJUDA] Aparece issu no shop do website
-
(Resolvido)[AJUDA] Aparece issu no shop do website
<?php class shop { function connect() { $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); return $ots->getDBHandle(); } function isInstalled() { require('config.php'); $con = mysql_connect($config['database']['host'], $config['database']['login'], $config['database']['password']); mysql_select_db($config['database']['database'],$con); if(mysql_query("SELECT * FROM shop_offer,shop_history")) return true; else return false; } function points($account) { $SQL = $this->connect(); $points = $SQL->query('SELECT premium_points FROM accounts WHERE name = "'.$account.'"')->fetch(); return $points['premium_points']; } function getPlayerAccount($name) { $SQL = $this->connect(); $player = $SQL->query('SELECT account_id FROM players WHERE name = "'.$name.'"')->fetch(); return $SQL->query('SELECT * from accounts WHERE id = '.$player['account_id'].''); } function AddPremium($name,$days) { $SQL = $this->connect(); $account = $this->getPlayerAccount($name)->fetch(); return $SQL->query('UPDATE accounts SET premdays = (premdays + '.$days.') WHERE name = "'.$account['name'].'"'); } function CharacterList($account) { $SQL = $this->connect(); $id = $SQL->query('SELECT id FROM accounts WHERE name = "'.$account.'"')->fetch(); return $SQL->query('SELECT * FROM players WHERE account_id = '.$id['id'].''); } function isOnline($name) { $SQL = $this->connect(); $player = $SQL->query('SELECT online FROM players WHERE name = "'.$name.'"')->fetch(); return $player['online']; } function isBanned($name) { $SQL = $this->connect(); $ID = $this->getPlayerAccount($name)->fetch(); return $SQL->query('SELECT * FROM bans WHERE value = '.$ID['id'].''); } function UnBan($name) { $SQL = $this->connect(); $ID = $this->getPlayerAccount($name)->fetch(); return $SQL->query('DELETE FROM bans WHERE value = '.$ID['id'].''); } function execute_file($file) { if (!file_exists($file)) { $this->last_error = "The file $file does not exist."; return false; } $str = file_get_contents($file); if (!$str) { $this->last_error = "Unable to read the contents of $file."; return false; } // split all the queries into an array $quote = ''; $line = ''; $sql = array(); $ignoreNextChar = ''; for ($i = 0; $i < strlen($str); $i++) { if ( !$ignoreNextChar ) { $char = substr($str, $i, 1); $line .= $char; if ($char == ';' && $quote == '') { $sql[] = $line; $line = ''; } else if ( $char == '\\' ) { // Escape char; ignore the next char in the string $ignoreNextChar = TRUE; } else if ($char == '"' || $char == "'" || $char == '`') { if ( $quote == '' ) // Start of a new quoted string; ends with same quote char $quote = $char; else if ( $char == $quote ) // Current char matches quote char; quoted string ends $quote = ''; } } else $ignoreNextChar = FALSE; } if ($quote != '') return false; foreach ($sql as $query) { if (!empty($query)) { $r = mysql_query($query); if (!$r) { $this->last_error = mysql_error(); return false; } } } return true; } function install() { $SQL = $this->connect(); if ($this->isInstalled()) return false; else return $this->execute_file("gifts/config/Shop.sql"); } } ?>
-
(Resolvido)[AJUDA] Aparece issu no shop do website
no caso o link e esse http://pokelute.com/index.php/p/v/shop e o arquivo que eu achei foi esse aqui shop que fica na parte Xampp\htdocs\system\pages/shop <div class='message'> <div class='title'>Otpokemon.com</div> <div class='content'> <?PHP require("config.php"); $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); $SQL = $ots->getDBHandle(); $ide = new IDE; $light = '#151515'; $dark = '#070707'; if ($ide->isLogged() == true) { include("shop/gifts.php"); } else echo '<div align="center"><br />Voce Precisa Estar Logado Para Ver Nosso Shop</div>'; ?> </div></div>
- (Resolvido)[AJUDA] Aparece issu no shop do website
-
(Resolvido)[AJUDA] Aparece issu no shop do website
esse aki e no globalevents function onThink(interval, lastExecution, thinkInterval) local result = db.getResult("SELECT * FROM shop_history WHERE `processed` = 0;") if(result:getID() ~= -1) then while(true) do cid = getCreatureByName(tostring(result:getDataString("player"))) product = tonumber(result:getDataInt("product")) itemr = db.getResult("SELECT * FROM shop_offer WHERE `id` = "..product..";") if isPlayer(cid) then local id = tonumber(itemr:getDataInt("item")) local tid = tonumber(result:getDataInt("id")) local count = tonumber(itemr:getDataInt("count")) local tipe = tonumber(itemr:getDataInt("type")) local productn = tostring(itemr:getDataString("name")) if isInArray({5,8},tipe) then if getPlayerFreeCap(cid) >= getItemWeightById(id, count) then if isContainer(getPlayerSlotItem(cid, 3).uid) then received = doAddContainerItem(getPlayerSlotItem(cid, 3).uid, id,count) if received then doPlayerSendTextMessage(cid,19, "Você Recebeu >> "..productn.." << Item do Shop PokeLute.") db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";") else doPlayerSendTextMessage(cid,19, "Sorry, you don't have enough space on container to receive >> "..productn.." <<") end else doPlayerSendTextMessage(cid,19, "Sorry, you don't have a container to receive >> "..productn.." <<") end else doPlayerSendTextMessage(cid,19, "Sorry, you don't have enough capacity to receive >> "..productn.." << (You need: "..getItemWeightById(id, count).." Capacity)") end elseif isInArray({6,7},tipe) then if tipe == 6 then bcap = 8 bid = 1987 elseif tipe == 7 then bcap = 20 bid = 1988 end if isItemRune(id) then count = 1 end if getPlayerFreeCap(cid) >= (getItemWeightById(1987, 1) + getItemWeightById(id,count * bcap)) then local bag = doCreateItemEx(bid, 1) for i = 1,bcap do doAddContainerItem(bag, id, count) end received = doPlayerAddItemEx(getPlayerSlotItem(cid, 3).uid, bag) if received == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid,19, "You have received >> "..productn.." << from PkS Shop.") db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";") else doPlayerSendTextMessage(cid,19, "Sorry, you don't have enough space to receive >> "..productn.." <<") end else doPlayerSendTextMessage(cid,19, "Sorry, you don't have enough capacity to receive >> "..productn.." << (You need: "..getItemWeightById(id, count).." Capacity)") end end end itemr:free() if not(result:next()) then break end end result:free() end return true end
- (Resolvido)[AJUDA] Aparece issu no shop do website
- (Resolvido)[AJUDA] Aparece issu no shop do website
-
Duvidas kpdo server!
alguem sabe arruma, tipo um player level 500 , os pokemons deles nao estao mais upando, aonde eu arrumo issu?
- Pagseguro entrega de pontos
- Pagseguro entrega de pontos
-
Pagseguro entrega de pontos
// Sistema automatico Pagseguro by tatu_hunter // Seu email cadastrado no pagseguro $config['pagseguro']['email'] = 'meu email'; // Nome do Produto $config['pagseguro']['produtoNome'] = 'Pontos VIP'; // Valor unitario do produto ou seja valor de cada ponto Exemplo de valores // 100 = R$ 1,00 // 235 = R$ 2,35 // 4254 = R$ 42,54 $config['pagseguro']['produtoValor'] = '100'; // Token gerado no painel do pagseguro --token você pega após confirmar que tem mais de 18 anos para receber as donations-- $config['pagseguro']['token'] = 'MEU TOKEN'; ta assim la no config
- Pagseguro entrega de pontos
- Pagseguro entrega de pontos
- [Pagseguro Automático] 100% e com Double Points OPCIONAL
- ajuda como edita o website hpokemon
-
Duvidas kpdo server!
alguem sabe arruma, tipo um player level 500 , os pokemons deles nao estao mais upando, aonde eu arrumo issu?
-
[Modernacc] Novo Website HPokemon
como ativa o shop, e como adiciona ele la?
- ajuda base kpdo