Ir para conteúdo

cesarfilho55

Membro
  • Registro em

  • Última visita

Tudo que cesarfilho55 postou

  1. Gostaria de saber como deixar o meu servidor mais estável no windows. (wodbo 8.0) Agradeço deis de já !
  2. Você poderia me ajudar com este problema não ?
  3. Bom galera o status do meu nicaw acc nao esta funcionado (não esta aparecendo online quando ta online,a quantidade de players tambem nao e talz) e preciso de ajuda de vocês . Status.php <?php include ('config.inc.php'); function getinfo($host='localhost',$port=7171){ // connects to server $socket = @fsockopen($host, $port, $errorCode, $errorString, 1); $data = ''; // if connected then checking statistics if($socket) { // sets 1 second timeout for reading and writing stream_set_timeout($socket, 1); // sends packet with request // 06 - length of packet, 255, 255 is the comamnd identifier, 'info' is a request fwrite($socket, chr(6).chr(0).chr(255).chr(255).'info'); // reads respond while (!feof($socket)){ $data .= fread($socket, 128); } // closing connection to current server fclose($socket); } return $data; } if ($cfg['status_update_interval'] < 60) $cfg['status_update_interval'] = 60; $modtime = filemtime('status.xml'); if (time() - $modtime > $cfg['status_update_interval'] || $modtime > time()){ $info = getinfo($cfg['server_ip'], $cfg['server_port']); if (!empty($info)) file_put_contents('status.xml',$info); }else $info = file_get_contents('status.xml'); if (!empty($info)) { $infoXML = simplexml_load_string($info); $up = (int)$infoXML->serverinfo['uptime']; $online = (int)$infoXML->players['online']; $max = (int)$infoXML->players['max']; $h = floor($up/3600); $up = $up - $h*3600; $m = floor($up/60); $up = $up - $m*60; if ($h < 10) {$h = "0".$h;} if ($m < 10) {$m = "0".$m;} echo "<span class=\"online\">Server Online</span><br/>\n"; echo "<span class=\"players\">Players: <b>$online/$max</b></span><br/>\n"; //echo "<span class=\"monsters\">Monsters: <b>".$infoXML->monsters['total']."</b></span><br/>\n"; echo "<span class=\"uptime\">Uptime: <b>$h:$m</b></span><br/>\n"; } else { echo "<span class=\"offline\">Server Offline</span>\n"; } ?> Status.xml <?xml version="1.0"?> <tsqp version="1.0"><serverinfo uptime="465" ip="127.0.0.1" servername="World of Dragon Ball Online" port="7171" location="Poland" url="" server="DevLand" version="" client="8.0"/><owner name="kogo to ots" email=""/><players online="0" max="120" peak="0"/><monsters total="4066"/><map name="" author="" width="" height=""/><motd>World of Dragon Ball Online Reverg</motd></tsqp>
  4. Como o titulo mesmo diz,como arrumo ?
  5. cesarfilho55 postou uma resposta no tópico em Suporte Tibia OTServer
    Funciona assim,vc passa do lvl 250 vc pode ir falar com este npc que ele vai te 'resetar' pro lv 1 e de ta 20k de life so que nao tem limite de lv por exemplo vc pode ir upando ate lv 1k e dps reseta ai tendo mais vantagem,eu qro colocar um limite de lv 400 por exemplo,se alguem poder me ajudar dou rep ++ local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('?????.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hello. If you ready I can "Reborn" you.') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. getCreatureName(cid) .. '! Hey!.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'reborn') and getPlayerStorageValue(cid,30023) == 4 then selfSay('Sorry, but you are after reborn.') focus = 0 talk_start = 0 elseif msgcontains(msg, 'reborn') and getPlayerLevel(cid) < 250 and getPlayerStorageValue(cid,30023) ~= 4 then selfSay('Hehe, I say If you READY. You do not have 250 lvl.') elseif msgcontains(msg, 'reborn') then selfSay('Are you sure?') talk_state = 2 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 20 then doReborn(cid,201,137) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 25 or getPlayerVocation(cid) == 26 or getPlayerVocation(cid) == 37) then doReborn(cid,214,152) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) >= 103 and getPlayerVocation(cid) <= 104 then doReborn(cid,286,60) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 58 then doReborn(cid,247,34) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 71 then doReborn(cid,258,15) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 75 then doReborn(cid,263,15) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 274 then doReborn(cid,275,118) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 76 or getPlayerVocation(cid) == 77) then doReborn(cid,227,144) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) >= 80 and getPlayerVocation(cid) <= 86 then selfSay('You cannot reborn in fusion.') elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 78 or getPlayerVocation(cid) == 79) then doReborn(cid,232,150) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 280 then doReborn(cid,281,190) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 112 then doReborn(cid,298,221) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 50 then doReborn(cid,253,101) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 29 or getPlayerVocation(cid) == 30) then doReborn(cid,208,148) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 44 then doReborn(cid,237,173) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 29 or getPlayerVocation(cid) == 30) then doReborn(cid,208,148) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 292 then doReborn(cid,293,281) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 34 or getPlayerVocation(cid) == 35 or getPlayerVocation(cid) == 36) then doReborn(cid,221,162) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 96 then doReborn(cid,242,178) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 12 or getPlayerVocation(cid) <= 62 and getPlayerVocation(cid) >= 65) then doReborn(cid,268,184) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 307 then doReborn(cid,308,326) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 336 then doReborn(cid,337,336) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 347 then doReborn(cid,348,144) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 357 then doReborn(cid,358,162) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 367 then doReborn(cid,368,373) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 378 then doReborn(cid,379,367) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 389 then doReborn(cid,390,378) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 400 then doReborn(cid,401,390) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 455 then doReborn(cid,456,466) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 466 then doReborn(cid,467,453) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 477 then doReborn(cid,478,359) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 488 then doReborn(cid,489,418) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 499 then doReborn(cid,500,42) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 510 then doReborn(cid,511,489) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 521 then doReborn(cid,522,472) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 532 then doReborn(cid,533,400) doPlayerAddHealthMax(cid,20000) doPlayerAddManaMax(cid,20000) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 then selfSay('Sorry, ' .. getCreatureName(cid) .. '! You must revert or transform.') elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Good bye.') focus = 0 talk_start = 0 end end end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 45 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end
  6. desculpe reviver o post mas esta script funciona em servidores 8.0?
  7. up tb preciso
  8. Weblara Xeon/AMD CPU +1800MHz / RAM - 1GB / Uplink - 1 gbps / HD - 30GB / IP Fixo - 1 / Ativo 1~5Hrs / DC - EUA/Ca / Ping - 150ms // #Tráfego Ilimitado sem Abuso #Uma Reinstalação grátis por mês #Virtualização VMware vCloud no caso eu iria usar windowns server 2008 32b,meu servidor é de wodbo 8.0 .
  9. o arquivo pesa na verdade é 8,7mb,esta dando muitos erros relacionados a house e a 'inquisitions portals'
  10. O pala do meu server so bate parado,ele nao bate nos bixo andando e nem nos players,tem q estar parado. Isso é normal??? Caso não seja alguem poderia me oferecer uma solução? Vlw.
  11. infelismente nao consegui achar,se vc poder dar uma ajuda
  12. O pala do meu server so bate parado,ele nao bate nos bixo,player,etc. Isso é normal??? Caso não seja alguem poderia me oferecer uma solução? Vlw.
  13. Tem como colocar automatico ? e quando starta o evento o tp nao aparece.(configurei certo)
  14. é shop automatico ?
  15. Gotaria de mudar a versao do meu server gradativamente ate o 8.54 ou ate 8.6,gostaria que alguem,se poder,me ajudasse,o meu servidor ta 8.0. (dbz)
  16. como eu adiciono a imagem ? a e outro problema,por exemplo,mesmo eu nao sendo o dono do char da pra eu comprar itens por ele.
  17. como qeu resolvo este erro ?
  18. ALTER TABLE `players` ADD `points` int(11) NOT NULL;CREATE TABLE IF NOT EXISTS `shop` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, `info` text NOT NULL, `price` int(11) NOT NULL, `image` varchar(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; 6 - Em nicaw navigation.xml adicione isto : <item href="shop.php">Shop</item> OBS : Para acessar o SHOP e adicionar offers você precisa entrar com localhost. opa obrigado,mas como que eu adiciono itens?
  19. como eu executo querys? alguem poderia me explicar de forma detalhada? obrigado ! e como q eu adiciono os itens?se alguem poder explicar mais detalhado tambem

Informação Importante

Confirmação de Termo