Ir para conteúdo

rodox2008

Membro
  • Registro em

  • Última visita

  1. sim, mas para conquistar a patente é em game e precisa de um sistema em .lua neh?? para depois vc usar no site, oque eu preciso é desse sistema para colocar no server, vc sabe se tem aqui no forum?? eu procurei mas não encontrei tem como ajudar a achar?? ou sl entra em contato com alguem que possa me ajudar?? desde ja agradeço a atenção
  2. bom como eu disse foi oque eu li, não sei bem do que se trata por isso eu pedi ajuda pra vcs, pra não so eu usar esse sistema mas a todos do forum que desejar, vc sabe como usar?? ou sl como desenvolver ele?? desde ja agradeço a atenção.
  3. não ninguém me ensinou, mas pelo oque eu vi em outros forums esse codigo se trata de um arquivo .cpp para ser compilado em seu executavel, e depois ser utilizado junto a scripts, e isso infelizmente não sei fazer, se puder ajudar agradeço
  4. rodox2008 postou uma resposta no tópico em Suporte Tibia OTServer
    no pasta onde esta seu gesior faça isso: coloca esse codigo que vou lhe passar no seu createaccount.php // ----------creates account-------------(save in database) if(empty($reg_form_errors)) { //create object 'account' and generate new acc. number if($config['site']['create_account_verify_mail']) { $reg_password = ''; for ($i = 1; $i <= 6; $i++) $reg_password .= mt_rand(0,9); } $reg_account = new Account(); // saves account information in database $reg_account->setName($reg_name); $reg_account->setPassword($reg_password); $reg_account->setEMail($reg_email); $reg_account->setCreateDate(time()); $reg_account->setCreateIP(Visitor::getIP()); $reg_account->setFlag(Website::getCountryCode(long2ip(Visitor::getIP()))); if(isset($config['site']['newaccount_premdays']) && $config['site']['newaccount_premdays'] > 0) if(isset($config['site']['newaccount_premium_points']) && $config['site']['newaccount_premium_points'] > 0) { $reg_account->set("premdays", $config['site']['newaccount_premdays']); $reg_account->set("premium_points", $config['site']['newaccount_premium_points']); $reg_account->set("lastday", time()); } $reg_account->save(); e no seu config.php coloque isso: $config['site']['newaccount_premium_points'] = 10; * so alterar o valor no final da linha para os pontos que deseja colocar para as contas novas aqui deu certo isso, espero que te ajude tb.
  5. boa tarde, então eu testei, e não funciona não pois não o tfs 1.x não tem a função onstatschange, tem como alterar o script para o tfs 1.x?? desde de ja obrigado, e é um otimo script.
  6. rodox2008 reagiu a uma resposta no tópico: [Item] - Absorver Dano
  7. funciona em tfs 1.x??
  8. rodox2008 reagiu a uma resposta no tópico: Magia de Paralyze
  9. pois é, é um bom sistema mas só vi esse sistema pago, e ninguém aqui pra da uma força, faze oq neh
  10. rodox2008 reagiu a uma resposta no tópico: Dodge System 8.54+
  11. ola galera, eu encontrei um sistema de patente porem não sei como instalar ele, sera que alguem pode me ajudar?? segue o script do sistema //////////////////////////////////////////////////////////////////////////////// ////////////// SISTEMA DE PATENTES POR IZAQUE COSTA (T)akelot/////////////////// ////////////////////////////////30\08\2015////////////////////////////////////// //////////////////////////198.15.64.3:7789////////////////////////////////////// //////////////////////////198.15.64.3:7789////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// #include < a_samp > #include < zcmd > #define Patente_list_dialog 4400 new Text:PatenteDraw[MAX_PLAYERS], Text3D:Patente[MAX_PLAYERS], PT[MAX_PLAYERS] ; public OnFilterScriptInit() { return print("- Filterscript Patentes Loaded"); } public OnFilterScriptExit() { return print("- Filterscript Patentes Off"); } public OnPlayerConnect(playerid) { //========================================================================== PatenteDraw[playerid] = TextDrawCreate(490.000000, 130.000000, "loading..."); TextDrawBackgroundColor(PatenteDraw[playerid], 255); TextDrawFont(PatenteDraw[playerid], 3); TextDrawLetterSize(PatenteDraw[playerid], 0.559999, 1.700000); TextDrawColor(PatenteDraw[playerid], -1); TextDrawSetOutline(PatenteDraw[playerid], 1); TextDrawSetProportional(PatenteDraw[playerid], 1); //========================================================================== SetTimerEx("UpdatePatente", 2000, true, "i", playerid); Patente[playerid] = Create3DTextLabel(PT, -1, 30.0, 40.0, 50.0, 40.0, 0, 0); return 1; } public OnPlayerDisconnect(playerid) { return Delete3DTextLabel(Patente[playerid]); } public OnPlayerSpawn(playerid) { new String[21], Score = GetPlayerScore(playerid) ; if(Score <= 100) { String = "Player Novato"; } else if(Score <= 200) { String = "Player Mediano"; } else if(Score <= 300) { String = "Player Bom"; } else if(Score <= 400) { String = "Player Avançado"; } else if(Score <= 500) { String = "Player Famoso"; } else if(Score <= 600) { String = "Player Amador"; } else if(Score <= 700) { String = "Player Profissional"; } else if(Score <= 800) { String = "Player Viciado"; } else if(Score >= 1000) { String = "Player Master"; } Attach3DTextLabelToPlayer(Patente[playerid], playerid, 0.0, 0.0, 0.5); TextDrawShowForPlayer(playerid, PatenteDraw[playerid]); return 1; } command(patentes, playerid, params[]) { new Formmartando[800]; if (IsPlayerConnected(playerid)) { format(Formmartando, 800, "%s{FF0000}~~~~~~~~[ {00FFFF}PATENTE LIST {FF0000}]~~~~~~~~", Formmartando); format(Formmartando, 800, "%s\n\n", Formmartando); format(Formmartando, 800, "%s1- {00FFFF}Patente: {FFFFFF}Novato\t{00FFFF}=\t{FFFFFF}100 {00FFFF}scores\n", Formmartando); format(Formmartando, 800, "%s2- {00FFFF}Patente: {FFFFFF}Mediano\t{00FFFF}=\t{FFFFFF}200 {00FFFF}scores\n", Formmartando); format(Formmartando, 800, "%s3- {00FFFF}Patente: {FFFFFF}Bom\t{00FFFF}=\t{FFFFFF}300 {00FFFF}scores\n", Formmartando); format(Formmartando, 800, "%s4- {00FFFF}Patente: {FFFFFF}Avançado\t{00FFFF}=\t{FFFFFF}400 {00FFFF}scores\n", Formmartando); format(Formmartando, 800, "%s5- {00FFFF}Patente: {FFFFFF}Famoso\t{00FFFF}=\t{FFFFFF}500 {00FFFF}scores\n", Formmartando); format(Formmartando, 800, "%s6- {00FFFF}Patente: {FFFFFF}Amador\t{00FFFF}=\t{FFFFFF}600 {00FFFF}scores\n", Formmartando); format(Formmartando, 800, "%s7- {00FFFF}Patente: {FFFFFF}Profissional\t{00FFFF}=\t{FFFFFF}700 {00FFFF}scores\n", Formmartando); format(Formmartando, 800, "%s8- {00FFFF}Patente: {FFFFFF}Viciado\t{00FFFF}=\t{FFFFFF}800 {00FFFF}scores\n", Formmartando); format(Formmartando, 800, "%s9- {00FFFF}Patente: {FFFFFF}Master\t{00FFFF}=\t{FFFFFF}1000 {00FFFF}scores\n", Formmartando); ShowPlayerDialog(playerid, Patente_list_dialog, DIALOG_STYLE_LIST, "{FF0000}Patentes", Formmartando, "OK", ""); } return 1; } forward UpdatePatente(playerid); public UpdatePatente(playerid) { new Score = GetPlayerScore(playerid); if(0 < Score < 100) TextDrawSetString(PatenteDraw[playerid], "~p~Novato"); else if(100 < Score < 200) TextDrawSetString(PatenteDraw[playerid], "~p~mediano"); else if(200 < Score < 300) TextDrawSetString(PatenteDraw[playerid], "~p~bom"); else if(300 < Score < 400) TextDrawSetString(PatenteDraw[playerid], "~p~Avançado"); else if(400 < Score < 500) TextDrawSetString(PatenteDraw[playerid], "~p~famoso"); else if(500 < Score < 600) TextDrawSetString(PatenteDraw[playerid], "~p~amador"); else if(600 < Score < 700) TextDrawSetString(PatenteDraw[playerid], "~p~Profissional"); else if(700 < Score < 800) TextDrawSetString(PatenteDraw[playerid], "~p~viciado"); else if(Score > 1000) TextDrawSetString(PatenteDraw[playerid], "~p~master"); return 1; } stock PegarNome(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); return name; } //////////////////////////////////////////////////////////////////////////////// ////////////// SISTEMA DE PATENTES POR IZAQUE COSTA (T)akelot/////////////////// ////////////////////////////////30\08\2015////////////////////////////////////// //////////////////////////198.15.64.3:7789////////////////////////////////////// //////////////////////////198.15.64.3:7789////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
  12. rodox2008 reagiu a uma resposta no tópico: Gran Castle Event (8.54+)
  13. otimo script, porem gostaria de saber se tem como deixar os items ramdom?? e deixar com um hit minimo para receber o premio, desde ja agradeço se puder ajudar.
  14. rodox2008 postou uma resposta no tópico em Suporte Tibia OTServer
    bom amigo, não sei se vc ja resolveu, porem fica para outros tb, mas no começo do codigo essa parte CREATE TABLE `characters_auctions` (`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,`state` TINYINT( 1 ) NOT NULL DEFAULT '0' ,`finish_time` INT NOT NULL ,`char_id` INT NOT NULL ,`buy_now` INT NOT NULL ,`bid` INT NOT NULL ,`bidder` INT NOT NULL ,INDEX ( `finish_time` )); tem que executar dentro do phpmyadmin, e não precisa conter essa parte no começo da pagina, tente fazer isso e se não resolver de um retorno, att.
  15. rodox2008 reagiu a uma resposta no tópico: Magnus Challenger
  16. amigo, não sei se ja resolveu mas fica ai a solução para outros tb, retire do accountmanagenent.php a parte do enviar email para a rk e coloque o codigo abaixo: //############## GENERATE NEW RECOVERY KEY ########### if($action == "newreckey") { $reg_password = password_ency(trim($_POST['reg_password'])); $reckey = $account_logged->getRecoveryKey(); if((!$config['site']['generate_new_reckey'] || !$config['site']['send_emails']) || empty($reckey)) $main_content .= 'You cant get new rec key'; else { $points = $account_logged->getPremiumPoints(); if($_POST['registeraccountsave'] == "1") { if($reg_password == $account_logged->getPassword()) { if($points >= $config['site']['generate_new_reckey_price']) { $dontshowtableagain = 1; $acceptedChars = 'ABCDEFGHIJKLMNPQRSTUVWXYZ123456789'; $max = strlen($acceptedChars)-1; $new_rec_key = NULL; // 10 = number of chars in generated key for($i=0; $i < 10; $i++) { $cnum[$i] = $acceptedChars{mt_rand(0, $max)}; $new_rec_key .= $cnum[$i]; } $main_content .= '<div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span> <div class="Text" >Account Registered</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" ><ul>'; $main_content = '<html> <body> <h3>New recovery key!</h3> <p>You or someone else generated recovery key to your account on server <a href="'.$config['server']['url'].'"><b>'.$config['server']['serverName'].'</b></a>.</p> <p>Recovery key: <b>'.$new_rec_key.'</b></p> </body> </html>';
  17. rodox2008 reagiu a uma resposta no tópico: [ERRO] bug em 3 vocations
  18. rodox2008 postou uma resposta no tópico em Suporte Tibia OTServer
    boa noite, obrigado por me ignorarem, e consegui resolver,o script acima esta correto, oque estava com problema era o vocation.xml, tem somente que sinalizar a vocação para ela mesma para assim dar certo, não vou agradecer porque ninguém me ajudou, mas para quem quiser esse script fique a vontade em usar, alguns trechos do script são do whitewolf e uma parte eu adaptei para oque eu precisava, que no caso, era clicar no item e dar a terceira vocação ao player, sem mais delongas ate +.
  19. rodox2008 postou uma resposta no tópico em Suporte Tibia OTServer
    fala galera, tudo bem?? bom antes de vir aqui pedir a ajuda de vocês eu pesquisei e não encontrei nenhuma solução, bom vamos la: eu preciso de um script para trocar a vocação dando use em um item, ate ai eu consegui esta funcionando sem problema, troca a vocation de boa, mas quando o player desloga ele volta a vocation anterior, e agora preciso saber como faço pra vocation permanecer no player?? abaixo esta o script que eu estou usando: function onUse(cid, item, frompos, item2, topos) local config = { idpedra = 142, -- id do item } if item.itemid == config.idpedra then if getPlayerVocation(cid) <= 4 then doRemoveItem(item.uid, 1) doPlayerSetVocation(cid, getPlayerVocation(cid) > 4 and getPlayerVocation(cid) + 4 or getPlayerVocation(cid) + 8) doPlayerSendTextMessage(cid, 22, "You are now a "..getPlayerVocationName(cid).."!") else doPlayerSendTextMessage(cid, 22, "You can't be promoted since you're already a "..getPlayerVocationName(cid).."!") end else end return true end
  20. boa noite, site muito bom e esta funcionando, porem so uma coisa que eu não estou conseguindo configurar, o world não aparece pra criar a account como eu faço pra ele aparecer la para selecionar?? desde ja obrigado e vc esta fez um ótimo trabalho com esse site!
  21. rodox2008 postou uma resposta no tópico em Suporte Tibia OTServer
    ola, eu também tive esse erro e corrige a linha 201 do characters.php da seguinte maneira $expLeftPercent = max(0, min(0, ($player->getExperience() - $expCurrent) + ($expNext - $expCurrent) * 100)); troque essa linha colocando esse código que lhe passei que resolve, agora para entender o problema o código ao invés de somar a exp estava dividindo e isso da erro. bom é isso espero ter te ajudado e espero que ajude outras pessoas também. até!

Informação Importante

Confirmação de Termo