Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''erro''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

  1. Olá, atualmente, estou tentando colocar um site on através do xampp, os arquivos já vieram prontos e não manjo nada de script/php e quando tento entrar no localhost, aparece o seguinte erro: Parse error: syntax error, unexpected $end in C:\xampp\htdocs\inc\db.class.php on line 397 vou postar o script inteiro, gostaria muito de ajuda, muito obrigado!! <?php // constants used by class define('MYSQL_TYPES_NUMERIC', 'int real '); define('MYSQL_TYPES_DATE', 'datetime timestamp year date time '); define('MYSQL_TYPES_STRING', 'string blob '); require 'configs.php'; if (!defined('_VALID_'))header("Location: index"); class db_class { var $last_error; // holds the last error. Usually mysql_error() var $last_query; // holds the last query executed. var $row_count; // holds the last number of rows from a select private $server = ''; //database server private $pw = ''; //database login password private $database = ''; //database name private $pre = ''; //table prefix private $err_email = ADMIN_EMAIL; /* // private váriaveis private $USER_TABLE = ''; private $NEWS_TABLE =''; private $ADMIN_TABLE=''; private $CONFIG_TABLE=''; */ private $errlog = true; // true or false private $error = ''; private $errno = 0; var $link_id; // current/last database link identifier var $auto_slashes; // the class will add/strip slashes when it can public function db_class() { $this->server=DB_HOST; $this->user=DB_USER; $this->pw=DB_PASS; $this->database=DB_NAME; $this->pre=DB_TABLE; /* // private váriaveis $this->USER_TABLE=TABLE_USER; $this->NEWS_TABLE=TABLE_NEWS; $this->ADMIN_TABLE=TABLE_ADMIN; $this->CONFIG_TABLE=CONFIG_TABLE; */ $this->auto_slashes = true; } public function connect($new_link=false, $persistant=false) { if ($persistant) $this->link_id =@mysql_connect($this->server,$this->user,$this->pw,$new_link); else $this->link_id =@mysql_connect($this->server,$this->user,$this->pw,$new_link); if (!$this->link_id) { $this->last_error = mysql_error(); $this->print_last_error("Connection close failed."); return false; } if(!@mysql_select_db($this->database, $this->link_id)) {//no database $this->last_error = mysql_error(); } if (!$this->select_db($this->database, $this->link_id)) return false; return $this->link_id; // success } public function close() { if(!mysql_close($this->link_id)){ $this->last_error = "Connection close failed."; } } private function escape($string) { if(get_magic_quotes_gpc()) $string = stripslashes($string); return mysql_real_escape_string($string); } function select_db($db='') { if (!empty($db)) $this->db = $db; if (!mysql_select_db($this->db)) { $this->last_error = mysql_error(); return false; } return true; } function select($sql) { $this->last_query = $sql; $r = mysql_query($sql); if (!$r) { $this->last_error = mysql_error(); return false; } $this->row_count = mysql_num_rows($r); return $r; } function select_array($sql) { $this->last_query = $sql; $r = mysql_query($sql); if (!$r) { $this->last_error = mysql_error(); return false; } $this->row_count = mysql_fetch_array($r); return $r; } public function query($query) { $r = mysql_query($sql); if (!$r) { $r->result = mysql_query($query); } else { $r->result = null; } } function select_one($sql) { $this->last_query = $sql; $r = mysql_query($sql); if (!$r) { $this->last_error = mysql_error(); return false; } if (mysql_num_rows($r) > 1) { $this->last_error = "Your query in function select_one() returned more that one result."; return false; } if (mysql_num_rows($r) < 1) { $this->last_error = "Your query in function select_one() returned no results."; return false; } $ret = mysql_result($r, 0); mysql_free_result($r); if ($this->auto_slashes) return stripslashes($ret); else return $ret; } function get_row($result, $type='MYSQL_BOTH') { if (!$result) { $this->last_error = "Invalid resource identifier passed to get_row() function."; return false; } if ($type == 'MYSQL_ASSOC') $row = mysql_fetch_array($result, MYSQL_ASSOC); if ($type == 'MYSQL_NUM') $row = mysql_fetch_array($result, MYSQL_NUM); if ($type == 'MYSQL_BOTH') $row = mysql_fetch_array($result, MYSQL_BOTH); if (!$row) return false; if ($this->auto_slashes) { foreach ($row as $key => $value) { $row[$key] = stripslashes($value); } } return $row; } function dump_query($data,$data2,$data3) { $r = $this->select("SELECT * FROM $data WHERE $data2=$data3"); if (!$r) return false; echo "<table cellpadding=\"3\" cellspacing=\"1\" border=\"0\" width=\"100%\">\n"; $i = 0; while ($row = mysql_fetch_assoc($r)) { if ($i == 0) { foreach ($row as $col => $value) { echo "<td bgcolor=\"#E6E5FF\"><span style=\"font-face: sans-serif; font-size: 9pt; font-weight: bold;\">$col</span></td>\n"; } echo "</tr>\n"; } $i++; if ($i % 2 == 0) $bg = '#E3E3E3'; else $bg = '#F3F3F3'; echo "<tr>\n"; foreach ($row as $value) { echo "<td bgcolor=\"$bg\"><span style=\"font-face: sans-serif; font-size: 9pt;\">$value</span></td>\n"; } echo "</tr>\n"; } echo "</table></div>\n"; } function insert_sql($sql) { $this->last_query = $sql; $r = mysql_query($sql); if (!$r) { $this->last_error = mysql_error(); return false; } $id = mysql_insert_id(); if ($id == 0) return true; else return $id; } function update_sql($sql) { $this->last_query = $sql; $r = mysql_query($sql); if (!$r) { $this->last_error = mysql_error(); return false; } $rows = mysql_affected_rows(); if ($rows == 0) return true; else return $rows; } function insert_array($table, $data) { if (empty($data)) { $this->last_error = "You must pass an array to the insert_array() function."; return false; } $cols = '('; $values = '('; foreach ($data as $key=>$value) { $cols .= "$key,"; $col_type = $this->get_column_type($table, $key); if (!$col_type) return false; if (is_null($value)) { $values .= "NULL,"; } elseif (substr_count(MYSQL_TYPES_NUMERIC, "$col_type ")) { $values .= "$value,"; } elseif (substr_count(MYSQL_TYPES_DATE, "$col_type ")) { $value = $this->sql_date_format($value, $col_type); $values .= "'$value',"; } elseif (substr_count(MYSQL_TYPES_STRING, "$col_type ")) { if ($this->auto_slashes) $value = addslashes($value); $values .= "'$value',"; } } $cols = rtrim($cols, ',').')'; $values = rtrim($values, ',').')'; $sql = "INSERT INTO $table $cols VALUES $values"; return $this->insert_sql($sql); } function update_array($table, $data, $condition) { if (empty($data)) { $this->last_error = "You must pass an array to the update_array() function."; return false; } $sql = "UPDATE $table SET"; foreach ($data as $key=>$value) { $sql .= " $key="; $col_type = $this->get_column_type($table, $key); if (!$col_type) return false; if (is_null($value)) { $sql .= "NULL,"; } elseif (substr_count(MYSQL_TYPES_NUMERIC, "$col_type ")) { $sql .= "$value,"; } elseif (substr_count(MYSQL_TYPES_DATE, "$col_type ")) { $value = $this->sql_date_format($value, $col_type); $sql .= "'$value',"; } elseif (substr_count(MYSQL_TYPES_STRING, "$col_type ")) { if ($this->auto_slashes) $value = addslashes($value); $sql .= "'$value',"; } } $sql = rtrim($sql, ','); if (!empty($condition)) $sql .= " WHERE $condition"; return $this->update_sql($sql); } 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; } $this->last_query = $str; $sql = explode(';', $str); foreach ($sql as $query) { if (!empty($query)) { $r = mysql_query($query); if (!$r) { $this->last_error = mysql_error(); return false; } } } return true; } function get_column_type($table, $column) { $r = mysql_query("SELECT $column FROM $table"); if (!$r) { $this->last_error = mysql_error(); return false; } $ret = mysql_field_type($r, 0); if (!$ret) { $this->last_error = "Unable to get column information on $table.$column."; mysql_free_result($r); return false; } mysql_free_result($r); return $ret; } function sql_date_format($value) { if (gettype($value) == 'string') $value = strtotime($value); return date('Y-m-d H:i:s', $value); } function print_last_error($show_query=true) { ?> <div style="border: 1px solid red; font-size: 9pt; font-family: monospace; color: red; padding: .5em; margin: 8px; background-color: #FFE2E2"> <span style="font-weight: bold">db.class.php Error:</span><br><?= $this->last_error ?> </div> <? if ($show_query && (!empty($this->last_query))) { $this->print_last_query(); } } public function get_link_id() { return $this->link_id; } function print_last_query() { ?> <div style="border: 1px solid blue; font-size: 9pt; font-family: monospace; color: blue; padding: .5em; margin: 8px; background-color: #E6E5FF"> <span style="font-weight: bold">Last SQL Query:</span><br><?= str_replace("\n", '<br>', $this->last_query) ?> </div> <? } function filter($data) { $this->connect(); $data = trim(htmlentities(strip_tags($data))); if (get_magic_quotes_gpc()) $data = stripslashes($data); $data = mysql_real_escape_string($data); return $data; } function page () { ob_start(); session_start('WebATS'); include ("inc/htmltags.php"); include ("inc/class.content.php"); $Content = new Content(); $Content->ShowContent(PAGE); echo '<title>'.$title.' - '.utf8_decode(PAGENAME).'</title>'; include ("inc/footer.php"); } function account ($data) { if($data == 'createaccount'){ define('_PAGETYPEREGISTER_','active'); } elseif ($data == 'login'){ define('_PAGETYPELOGIN_','active'); }elseif($data == ''){ define('_PAGETYPEREGISTER_','active'); }elseif($data == 'forgot_password'){ define('_PAGETYPEFORGOT_','active'); }elseif($data == 'active'){ define('_PAGETYPEACTIVE_','active'); } } } ?> obs: a linha 397 é a ultima linha, que contem ?> up
  2. Gente preciso muito de ajuda já vi todos os tutorial possível mais não consigo por items no shop guild alguém me ajuda?
  3. Olá pessoal, tudo suave? Bom, ontem estava com o Remere's aberto fazendo algumas edições, quando a energia caiu, por causa de uma manuntenção não avisada da empresa, e depois disso meu mapa não abre mais. Nem no jogo nem no remere's. No remere's não passa dos 9% e no jogo simples não vai. Tem alguma maneira de recuperar partes deste mapa?
  4. eu uso o qt 4.8.0 >> https://download.qt.io/archive/qt/4.8/4.8.0/ <<eao tentar compilar essas sources >> https://mega.nz/#!LNV0nJQI!XqaqVsq_wFsXDGZWCeQjH-DM51L0JlJmi0BF8VM39uc<< (instalador do visual studio 2008 está junto) no visual studio 2008 express, tive esses erros, alguém poderia me ajudar? PS: Já tentei usar o <cstdint> e o stdint.h e ambos vão pedindo outros arquivos e qdo chega no 3º arquivo da esses erros tudo ai denovo
  5. Boa Noite Galera!! Coloquei um sistema de auro no meu servidor, dai quando o player desloga do server da esse erro alguém pode arrumar pra mim ?? aqui esta o erra que aparece no Distro, estou usando o fts 0.4 [25/02/2016 19:27:19] [Error - CreatureScript Interface] [25/02/2016 19:27:19] In a timer event called from: [25/02/2016 19:27:19] data/creaturescripts/scripts/login.lua:onLogin [25/02/2016 19:27:19] Description: [25/02/2016 19:27:19] (luaGetThingPosition) Thing not found [25/02/2016 19:27:19] [Error - CreatureScript Interface] [25/02/2016 19:27:19] In a timer event called from: [25/02/2016 19:27:19] data/creaturescripts/scripts/login.lua:onLogin [25/02/2016 19:27:19] Description: [25/02/2016 19:27:19] (internalGetPlayerInfo) Player not found when requesting player info #6 [25/02/2016 19:27:19] [Error - CreatureScript Interface] [25/02/2016 19:27:19] In a timer event called from: [25/02/2016 19:27:19] data/creaturescripts/scripts/login.lua:onLogin [25/02/2016 19:27:19] Description: [25/02/2016 19:27:19] (internalGetPlayerInfo) Player not found when requesting player info #6 [25/02/2016 19:27:19] [Error - CreatureScript Interface] [25/02/2016 19:27:19] In a timer event called from: [25/02/2016 19:27:19] data/creaturescripts/scripts/login.lua:onLogin [25/02/2016 19:27:20] Description: [25/02/2016 19:27:20] (luaGetCreatureStorage) Creature not found [25/02/2016 19:27:20] [Error - CreatureScript Interface] [25/02/2016 19:27:20] In a timer event called from: [25/02/2016 19:27:20] data/creaturescripts/scripts/login.lua:onLogin [25/02/2016 19:27:20] Description: [25/02/2016 19:27:20] data/lib/Pivi.lua:34: attempt to compare number with boolean [25/02/2016 19:27:20] stack traceback: [25/02/2016 19:27:20] data/lib/Pivi.lua:34: in function <data/lib/Pivi.lua:19> Aqui esta o arquivo .lua function doUseGem(cid, item) local voc = getPlayerVocation(cid) local interval = gems.interval[voc] if item.itemid ~= gems.id[voc] or getPlayerStorageValue(cid, gems.storage[voc]) > 0 then return FALSE end setPlayerStorageValue(cid, gems.storage[voc], 1) sendGemEffect(cid, gems.storage[voc], gems.interval[voc]) doRemoveItem(item.uid, 1) return TRUE end function sendGemEffect(cid, storage, interval) local pos = getThingPos(cid) local voc = getPlayerVocation(cid) local color = 1 if voc == 5 then color = gemMsg.colorDruid[math.random(1,#gemMsg.colorElderDruid)] elseif voc == 6 then color = gemMsg.colorSorcerer[math.random(1,#gemMsg.colorMasterSorcerer)] elseif voc == 7 then color = gemMsg.colorPaladin[math.random(1,#gemMsg.colorRoyalPaladin)] elseif voc == 8 then color = gemMsg.colorKnight[math.random(1,#gemMsg.colorEliteKnight)] end doSendAnimatedText(pos, gemMsg.rnd[math.random(1,#gemMsg.rnd)], color) if getPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)]) >= 1 then addEvent(sendGemEffect, interval, cid, storage, interval) end end function doRemoveGemEffect(cid) if getPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)]) < 1 then return FALSE end setPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)], 0) return TRUE end function doRemoveAllGemEffect(cid) for i = 1, table.maxn(gms.storage) do setPlayerStorageValue(cid, gems.storage[i], 0) end return TRUE end function isGemActivated(cid) if getPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)]) > 0 then return TRUE end return FALSE end
  6. Olá pessoal , gostaria que alguém me ajudasse com seguinte erro na hora de criar a conta do usuário sendo que não era para essa opção estar ali.... HELP-ME print abaixo http://prntscr.com/a7n7nc Por favor ajudem... Sou novo aqui no Xtibia... mas bastante gente Boa aqui .. Aprendei tudo sobre website com vocês....... :smile_positivo:
  7. Boa tarde, estou tentando configurar um gesior para ot 8.60 com o Xampp 1.7.3, porém quando vou acessar a pagina do localhost para configurar o site aparece o seguinte erro: Fatal error: Call to a member function query() on a non-object in C:\Xampp\htdocs\install.php on line 4 A linha 4 em questão no install.php está assim: $query = $SQL->query("SELECT * FROM `players` ORDER BY `experience` DESC")->fetch(); Agradeço desde já quem puder me ajudar.
  8. Boa noite, estou com problema ao criar o website, eu ja fiz a conta da database, ja configurei o config.lua, ja importei a database, ja fiz td mas ao eu clicar em admin do apache da esse erro Warning: parse_ini_file(D:/Documents and Settings/User/Pulpit/4235/config.lua) [function.parse-ini-file]: failed to open stream: Permission denied in C:\xampp\htdocs\config-and-functions.php on line 13 Database error. Unknown database type in D:/Documents and Settings/User/Pulpit/4235/config.lua . Must be equal to: "mysql" or "sqlite". Now is: "" Por favor me ajuda. Obs: esta mudado na config.lua o sqlite para mysql
  9. Fala galera estava vendo que TFS 1.0 compilado em MSVC pode ativar uma função que gera logs dos Crash. Tentei fazer o mesmo com TFS 0.3.6 infelizmente não encontrei lib e include para compilar com visual basic 2010. Gostaria de Pedir pra quem tiver ambas que postem link, ou que ajudem com o funcionamento do Parametro -D__EXCEPTION_TRACER__ que me afirmarão que faria oque eu procuro, já tentei usando -Wl,-Map=forgottenserver.map mais ainda assim aparece um erro dizendo que o arquivo forgottenserver.map nao foi encontrado. Deis de ja agradeço (y) @up UP UP
  10. Boos

    ItemEditor

    Gente Quando Eu Coloco Nas Preferências meu client 854 estendido, e coloco meu item.otb da esse erro ai VVVVV Também Dá esse erro Link do ot editor que usei: http://www.xtibia.com/forum/topic/226655-itemeditor '----' queria tanto resolver
  11. Aparece esse erro pra mim : Porfavor alguem ai me ajuda?
  12. tipo eu hookei a dll otal.dll no client ae tudo okay quando entrei apareceu poke bar mais n atualiza para aparece o poke e o cooldown bar aparece as magia quando vc usa m1 a m12 ele atualiza o tempo de espera mais vc nao poder usa clicando nela tipo quando vc entra com player a barra dele continua mesmo logando com outro char tipo a barra do primeiro char vale para todos to lgd soh expert em programaçao vai saber responde coloquei a script de pokebar nova de pda atualizado galera arrumei o Cooldown Bar era apenas um arquivo de atualizaçao falta o pokebar esse ta dificil up
  13. ivanhardjr

    2 Erros

    Alguem me ajuda com isso? esses erros pelo que eu vi nao interfere em nada no servidor eu acho.... mais quero retirar eles.. podem ajudar?
  14. Iae galera do Xtibia, bom estou com um problema no meu server de narutibia na parte da script, e preciso muito da ajuda de vocês. Bom vamos ao erro, conto com a ajuda de todos que puderem me ajudar. Bom tinha terminado de corrigir alguns bugs, e adicionar umas system no eu server, então fui termina de editar as vocações tudo certo com cada, uma porém fui testar as spell de cada uma delas, e em algumas das vocações os effects do spell não mostra: Ou seja, a spell attacka, a spell hita no monstro, mais não mostra o efeito da spell. Aqui vai a script de umas das spell: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -6.3, 1, -8.0, 1) function onCastSpell(cid, var) local waittime = 0.8 -- Tempo de exhaustion local storage = 115818 if exhaustion.check(cid, storage) then doPlayerSendCancel(cid, "You are exhausted") return false end local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position1, 151) exhaustion.set(cid, storage, waittime) return doCombat(cid, combat, var) end doSendMagicEffect(position1, 151) --- 151 é o numero da spell, porém quando uso a spell o efeito 151 não sai!
  15. Olha eu criei o site só que tentei abrir o server da nisso
  16. Boa noite, alguém poderia me ajudar com este erro (186.218.84.98) [Failure - Protocol::XTEA_decrypt] Not valid unencrypted message size No caso eu dei olha pesquisada, isso é gerado por um player (ip 186.218.84.98), não sei como ele faz isso, mas gera um relatório de erro constante no TFS, até fechar, teria alguma maneira de automaticamente banir quem fizesse isso ? e tem como resolver isso ? vou anexar uma foto do erro. Obrigado.
  17. Olá galera do XT, estou com um erro no meu servidor que está parando a distro deixando o servidor offline, Por enquanto nao sei o motivo do erro o que eu sei é que o erro acontece, aparece uma mensagem na distro e o servidor fica offline. Andei pesquisando em alguns fóruns gringos por aí, encontrei algo que talvez seja o que está acontecendo comigo. Dizem por aí que existe uma opção que alguns players usam no ELFBOT que emite uma mensagem que não é criptografada pela distro do server sendo assim o jogo nao consegue ler ou reproduzir e acaba travando tudo deixando offline. O erro que acontece é esse ! \/ [Failure - Protocol::XTEA_decrypt] Not valid unencrypted message size (IP: xxx.xxx.xx.xxx)
  18. NackPunnie

    Pokeexp

    Está dando erro, Quando ataco os pokémons a exp tá normal, mas o corpse não e deu erro no distro. Tem como resolver esse problema? Aqui está a print: Aqui está o Pokeexp.lua local balls = {11826, 11828, 11829, 11831, 11832, 11834, 11835, 11837, 11737, 11739, 11740, 11742, 11743, 11745, 11746, 11748} local function playerAddExp(cid, exp) doPlayerAddExp(cid, exp) doSendAnimatedText(getThingPos(cid), exp, 215) end local function giveExpToPlayer(pk, expTotal, givenexp, expstring) --alterado v2.7 playerAddExp(pk, expTotal) local firstball = getPlayerSlotItem(pk, 8) if not isInParty(pk) and firstball and getItemAttribute(firstball.uid, expstring) and getItemAttribute(firstball.uid, expstring) > 0 then local percent = getItemAttribute(firstball.uid, expstring) <= 1 and getItemAttribute(firstball.uid, expstring) or 1 local gainexp = math.ceil(percent * givenexp) doItemSetAttribute(firstball.uid, expstring, 0) elseif isInParty(pk) and firstball.uid ~= 0 then end end function onDeath(cid, corpse, deathList) if isSummon(cid) or not deathList or getCreatureName(cid) == "Evolution" then return true end --alterado v2.8 -------------Edited Golden Arena------------------------- --alterado v2.7 \/\/ if getPlayerStorageValue(cid, 22546) == 1 then setGlobalStorageValue(22548, getGlobalStorageValue(22548)-1) if corpse.itemid ~= 0 then doItemSetAttribute(corpse.uid, "golden", 1) end --alterado v2.8 end if getPlayerStorageValue(cid, 22546) == 1 and getGlobalStorageValue(22548) <= 0 then local wave = getGlobalStorageValue(22547) for _, sid in ipairs(getPlayersOnline()) do if isPlayer(sid) and getPlayerStorageValue(sid, 22545) == 1 then if getGlobalStorageValue(22547) < #wavesGolden+1 then doPlayerSendTextMessage(sid, 21, "Wave "..wave.." will begin in "..timeToWaves.."seconds!") doPlayerSendTextMessage(sid, 28, "Wave "..wave.." will begin in "..timeToWaves.."seconds!") addEvent(creaturesInGolden, 100, GoldenUpper, GoldenLower, false, true, true) addEvent(doWave, timeToWaves*1000) elseif getGlobalStorageValue(22547) == #wavesGolden+1 then doPlayerSendTextMessage(sid, 20, "You have win the golden arena! Take your reward!") doPlayerAddItem(sid, 2152, getPlayerStorageValue(sid, 22551)*2) --premio setPlayerStorageValue(sid, 22545, -1) doTeleportThing(sid, getClosestFreeTile(sid, posBackGolden), false) setPlayerRecordWaves(sid) end end end if getGlobalStorageValue(22547) == #wavesGolden+1 then endGoldenArena() end end --------------------------------------------------- /\/\ local givenexp = getWildPokemonExp(cid) local expstring = ""..cid.."expEx" if givenexp > 0 then for a = 1, #deathList do local pk = deathList[a] if isCreature(pk) then local list = getSpectators(getThingPosWithDebug(pk), 30, 30, false) local expTotal = math.floor(playerExperienceRate * givenexp * getDamageMapPercent(pk, cid)) local party = getPartyMembers(pk) if isInParty(pk) and getPlayerStorageValue(pk, 4875498) <= -1 then expTotal = math.floor(expTotal/#party) --alterado v2.6.1 for i = 1, #party do if isInArray(list, party[i]) and getDamageMapPercent(party[i], cid) > 0 then --alterado v2.8 giveExpToPlayer(party[i], expTotal, givenexp, expstring)--alterado v2.7 end end else giveExpToPlayer(pk, expTotal, givenexp, expstring) --alterado v2.7 end end end end if isNpcSummon(cid) then local master = getCreatureMaster(cid) doSendMagicEffect(getThingPos(cid), getPlayerStorageValue(cid, 10000)) doCreatureSay(master, getPlayerStorageValue(cid, 10001), 1) doRemoveCreature(cid) return false end if corpse.itemid ~= 0 then --alterado v2.8 doItemSetAttribute(corpse.uid, "offense", getPlayerStorageValue(cid, 1011)) doItemSetAttribute(corpse.uid, "defense", getPlayerStorageValue(cid, 1012)) doItemSetAttribute(corpse.uid, "speed", getPlayerStorageValue(cid, 1013)) doItemSetAttribute(corpse.uid, "vitality", getPlayerStorageValue(cid, 1014)) doItemSetAttribute(corpse.uid, "spattack", getPlayerStorageValue(cid, 1015)) doItemSetAttribute(corpse.uid, "gender", getPokemonGender(cid)) end return true end Aviso: Spoiler não tá funcionando.
  19. alguem pode me ajudar com esse erro URGENTE Error during getDataInt(play er_id). [15/2/2016 23:17:24] mysql_real_query(): SELECT `player_id`, `value` FROM `player_storage` WHERE `key` = 1020 ORDER BY cast(value as INTEGER) DESC; - MYSQL ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INTEGER) DESC' at line 1 (1064) @up
  20. Ta ocorrendo esse erro, nao sei o motivo, podem me ajudar porfavor? [14/02/2016 04:46:13] [Error - MoveEvents Interface] [14/02/2016 04:46:13] data/movements/scripts/PVP/Trade_Back.lua:onStepIn [14/02/2016 04:46:13] Description: [14/02/2016 04:46:13] data/lib/011-string.lua:29: attempt to index local 'str' (a number value) [14/02/2016 04:46:13] stack traceback: [14/02/2016 04:46:13] data/lib/011-string.lua:29: in function 'explode' [14/02/2016 04:46:13] data/movements/scripts/PVP/Trade_Back.lua:13: in function <data/movements/scripts/PVP/Trade_Back.lua:3> Help Plx
  21. Error occured! Error ID: #C-2 More info: ERROR: #C-2 : Class::ConfigLUA - LUA config file doesn't exist. Path: C:\Users\Winchester\Downloads\global full 8.6 [up-lvl]config.lua File: C:\xampp\htdocs\classes/configlua.php Line: 24 File: C:\xampp\htdocs\classes/configlua.php Line: 12 File: C:\xampp\htdocs\system/load.init.php Line: 42 File: C:\xampp\htdocs/index.php Line: 18 Pelo amor de Deus, me ajudem.. preciso de um site pra poder colocar um servidor caseiro e conseguir postar meus showoffs, porém sou completamente leigo na área de sites.. eu já li vários tópicos falando pra trocar as barras, porém não sei onde fazê-lo. Se alguém se disponibilizar a falar detalhadamente, passo-a-passo ficarei grato.
  22. Nao faço a minima ideia do motivo, podem me ajudar? EDIT: Ja arrumei, era um erro que eu fiz no Item Editor, mais ainda n faço ideia de como eu arrumei kkkkkkkkkk, Obgd msm assim pessoal, podem fechar !
  23. to com um problema quando solto o pokemon ex: vo tenta matar um snorlax ae meu pokemon morre ao invez dele volta pra ball ele vira um corpse.. no console esta dando isso: Event onPrepareDeath not found (data/creaturescripts/scripts/goback.lua minha goback
  24. to com esse erro no item editor: >> OTB version 19. >> PluginTwo: Error while parsing, unknown flag 0x81 at id 101. >> Failed to load dat. >> Loading client files. >> Client version 860. Obs: Alguem pode me dizer pq acontece esse erro?eme ajuda a resove-lo obrigado!
×
×
  • Criar Novo...