Jump to content

CarlosHenrq

Members
  • Content Count

    11
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Upvote
    CarlosHenrq got a reaction from JulioCF in php-grf   
    Hi guys,
    I'm here to share with you my new project php-grf, with this guy you can use PHP to read and write grf files.
    This only supports grf files with version 0x200; This supports read and writing in grf files; This code is based on https://github.com/MagicalTux/grf
    The code ahead will show you how to extract all files inside grf.
    <?php require_once 'php-grf/lib/autoload.php'; // Instance a reader/writer for your grf file $grf = new GrfFile('php-grf/tests/test200.grf'); foreach ($grf->getEntries() as $entry) { $dir = dirname($entry->getFilename()); if (is_dir($dir) === false) mkdir ($dir, 0777, true); $file = str_replace('\\', '/', $entry->getFilename()); $buffer = $entry->getUnCompressedBuffer(); $fp = fopen($file, 'wb'); fwrite($fp, $buffer); fflush($fp); fclose($fp); } // Dispose all resources used $grf = null;  
    Enjoy it, has any issue or problem with the lib? Please report it and help to keep it good for you all use.
    Repo URL: https://github.com/carloshenrq/php-grf
     
    Other useful repositories:
    https://github.com/arminherling/GRF/ (Read-only C#)
    https://github.com/MagicalTux/grf (Read-Write C)
  2. Upvote
    CarlosHenrq got a reaction from bWolfie in php-grf   
    Hi!
    As I'm building an updater (like thor patcher), this can allow me to create new features like check files inside GRF comparing local files with server files and download only files not equals to the server.
    Another practical application is something like RoChargenPHP.
  3. Upvote
    CarlosHenrq got a reaction from AnnieRuru in php-grf   
    I don't know the code from ROChargenPHP, but I suppose yes. He reads GRF or a data folder extracted.
    This is only for reading and writing at GRF files. Not for parsing .spr, .act or .pal files.
    We can create an PHPGrfEditor with this one :v
    I've searched a little and found this Grf class in ROChargenPHP https://github.com/ScDarko/ROChargenPHP/blob/master/loaders/class.Grf.php
     
    Just for update, this now reads and writes grf files.
  4. Upvote
    CarlosHenrq reacted to vykimo in php-grf   
    Yes in fact rochargenphp uses the same principle as you, isn't it? 
  5. Upvote
    CarlosHenrq got a reaction from bWolfie in php-grf   
    Hi guys,
    I'm here to share with you my new project php-grf, with this guy you can use PHP to read and write grf files.
    This only supports grf files with version 0x200; This supports read and writing in grf files; This code is based on https://github.com/MagicalTux/grf
    The code ahead will show you how to extract all files inside grf.
    <?php require_once 'php-grf/lib/autoload.php'; // Instance a reader/writer for your grf file $grf = new GrfFile('php-grf/tests/test200.grf'); foreach ($grf->getEntries() as $entry) { $dir = dirname($entry->getFilename()); if (is_dir($dir) === false) mkdir ($dir, 0777, true); $file = str_replace('\\', '/', $entry->getFilename()); $buffer = $entry->getUnCompressedBuffer(); $fp = fopen($file, 'wb'); fwrite($fp, $buffer); fflush($fp); fclose($fp); } // Dispose all resources used $grf = null;  
    Enjoy it, has any issue or problem with the lib? Please report it and help to keep it good for you all use.
    Repo URL: https://github.com/carloshenrq/php-grf
     
    Other useful repositories:
    https://github.com/arminherling/GRF/ (Read-only C#)
    https://github.com/MagicalTux/grf (Read-Write C)
  6. Upvote
    CarlosHenrq got a reaction from vykimo in php-grf   
    Hi guys,
    I'm here to share with you my new project php-grf, with this guy you can use PHP to read and write grf files.
    This only supports grf files with version 0x200; This supports read and writing in grf files; This code is based on https://github.com/MagicalTux/grf
    The code ahead will show you how to extract all files inside grf.
    <?php require_once 'php-grf/lib/autoload.php'; // Instance a reader/writer for your grf file $grf = new GrfFile('php-grf/tests/test200.grf'); foreach ($grf->getEntries() as $entry) { $dir = dirname($entry->getFilename()); if (is_dir($dir) === false) mkdir ($dir, 0777, true); $file = str_replace('\\', '/', $entry->getFilename()); $buffer = $entry->getUnCompressedBuffer(); $fp = fopen($file, 'wb'); fwrite($fp, $buffer); fflush($fp); fclose($fp); } // Dispose all resources used $grf = null;  
    Enjoy it, has any issue or problem with the lib? Please report it and help to keep it good for you all use.
    Repo URL: https://github.com/carloshenrq/php-grf
     
    Other useful repositories:
    https://github.com/arminherling/GRF/ (Read-only C#)
    https://github.com/MagicalTux/grf (Read-Write C)
  7. Upvote
    CarlosHenrq got a reaction from Megasantos in php-grf   
    Hi guys,
    I'm here to share with you my new project php-grf, with this guy you can use PHP to read and write grf files.
    This only supports grf files with version 0x200; This supports read and writing in grf files; This code is based on https://github.com/MagicalTux/grf
    The code ahead will show you how to extract all files inside grf.
    <?php require_once 'php-grf/lib/autoload.php'; // Instance a reader/writer for your grf file $grf = new GrfFile('php-grf/tests/test200.grf'); foreach ($grf->getEntries() as $entry) { $dir = dirname($entry->getFilename()); if (is_dir($dir) === false) mkdir ($dir, 0777, true); $file = str_replace('\\', '/', $entry->getFilename()); $buffer = $entry->getUnCompressedBuffer(); $fp = fopen($file, 'wb'); fwrite($fp, $buffer); fflush($fp); fclose($fp); } // Dispose all resources used $grf = null;  
    Enjoy it, has any issue or problem with the lib? Please report it and help to keep it good for you all use.
    Repo URL: https://github.com/carloshenrq/php-grf
     
    Other useful repositories:
    https://github.com/arminherling/GRF/ (Read-only C#)
    https://github.com/MagicalTux/grf (Read-Write C)
  8. Upvote
    CarlosHenrq reacted to Orce in Dano do Asura limitado a 6k SP   
    Só um detalhe, você esta usando o emulador em qual modo? Pre ou Renovação? Porque esta verificação só é feita quando o emulador esta rodando em renovação. Observer que esta verificação esta entre as tags
    #ifndef RENEWAL #endif  
  9. Upvote
    CarlosHenrq reacted to AnnieRuru in SQL Query to show a Player Rank Position   
    the answer is exactly on the no.6 of the pinned topic
    @raksone
    dispbottom "============== My Rank ==============", 0xffe066; query_sql "SELECT `points`, 1+(SELECT COUNT(1) FROM `mvp_ranking` t1 WHERE t1.`points` > t2.`points`) FROM `mvp_ranking` t2 WHERE `char_id` = "+ getcharid(0), .@points, .@rank; dispbottom "My MVP Points "+ .@points + ".", 0x6666ff; dispbottom "My Rank is: " + .@rank + ".", 0x6666ff; dispbottom "==========================================", 0xffe066; end;  
  10. Upvote
    CarlosHenrq reacted to bWolfie in Target In Trap GvG   
    From what I know, you can't do anything about the sword icon. Period. Since it is coded into the client and not server side.
  11. Upvote
    CarlosHenrq got a reaction from Echoes in A way to kick a player to character selection   
    Basically you have, in atcommand.c:
    /*==========================================  *  *------------------------------------------*/ ACMD(kick) {     struct map_session_data *pl_sd;     memset(atcmd_player_name, '\0', sizeof(atcmd_player_name));     if (!*message) {         clif->message(fd, msg_fd(fd,1026)); // Please enter a player name (usage: @kick <char name/ID>).         return false;     }     if ((pl_sd=map->nick2sd(message)) == NULL && (pl_sd=map->charid2sd(atoi(message))) == NULL) {         clif->message(fd, msg_fd(fd,3)); // Character not found.         return false;     }     if (pc_get_group_level(sd) < pc_get_group_level(pl_sd))     {         clif->message(fd, msg_fd(fd,81)); // Your GM level don't authorize you to do this action on this player.         return false;     }     clif->GM_kick(sd, pl_sd);     return true; }  
    Change:
        clif->GM_kick(sd, pl_sd); To:
        chrif->charselectreq(pl_sd, sockt->session[pl_sd->fd]->client_addr);  
    And this made the trick...
  12. Upvote
    CarlosHenrq got a reaction from thedarkwill in brACP   
    Hello guys, i'm brAthena Project Developer (not core, of course) and for a few months i've worked on control panel for us (brAthena Community).
     
    I'm still working and i really have little time to develop, it causes lots commits (216 commits right now) and few features. But i'm happy to say it's almost released.
     
    So the features for the brACP are:
     
    ** Instalation (Need improve)
    ** reCAPTCHA (https://www.google.com/recaptcha/intro/index.html)

    ** Themes system
    **** Default theme has mobile support with CSS3

    ** Language system
    **** We have only pt_BR translation file right now, but we are working on it.

    ** Cache control (memcache)
    **** Rankings (Yes, cache sql result prevent MySQL to many request [shiraz, brAthena, hint]), translation and translated files.

    ** Account management
    **** Login, Create, Recover
    **** Administration panel (Still working on it)
    **** Change pass and e-mail
    **** Reset appear, position and equipment,
    **** Donations system (PagSeguro, https://pagseguro.uol.com.br)

    ** User notification (e-mail) when:
    **** Create account, changes password or e-mail, for e-mail changes we create log.
    **** When donation changes status
     
    For this control panel, we've used:

    ** PHP 5.4+ (PHP 7+ not tested)

    ** Apache 2.4 (IIS not tested)
    **** mod_rewrite must be enabled

    ** MySQL 5.5+ (MySQL 7+ not tested)

    ** PHP Composer
    **** To install our dependences of course!

    And the frameworks or extensions we've used to make it works:

    ** Slim Framework v3.1.0
    ** Smarty v3.1.29
    ** Guzzle v6.1.1
    ** Doctrine v2.4.2
    ** SwiftMailer v5.4.1
    ** PECL::MEMCACHE v3.0.8 (Optional, https://pecl.php.net/package/memcache)
     
    Live version?
    Here is: http://carloshenrq.com/brACP/
    Note¹.: The current live version is 0.2.1-alpha
    Note².: Once a week i update the live version, so some features you won't find right now there...
     
    Beta version?
    https://github.com/carloshenrq/brACP/releases/tag/0.1.1-beta
    Note¹.: This portuguese version only and the version is 0.1.1-beta, the newer is not ready for beta test.
     
    GitHub Repository?
    Here is: https://github.com/carloshenrq/brACP
     
    Suggestions, Reviews or Contribute? Please, let me know!
    If you can post here https://github.com/carloshenrq/brACP/issues will be more easy for us all.
  13. Upvote
    CarlosHenrq got a reaction from bWolfie in brACP   
    Hello guys, i'm brAthena Project Developer (not core, of course) and for a few months i've worked on control panel for us (brAthena Community).
     
    I'm still working and i really have little time to develop, it causes lots commits (216 commits right now) and few features. But i'm happy to say it's almost released.
     
    So the features for the brACP are:
     
    ** Instalation (Need improve)
    ** reCAPTCHA (https://www.google.com/recaptcha/intro/index.html)

    ** Themes system
    **** Default theme has mobile support with CSS3

    ** Language system
    **** We have only pt_BR translation file right now, but we are working on it.

    ** Cache control (memcache)
    **** Rankings (Yes, cache sql result prevent MySQL to many request [shiraz, brAthena, hint]), translation and translated files.

    ** Account management
    **** Login, Create, Recover
    **** Administration panel (Still working on it)
    **** Change pass and e-mail
    **** Reset appear, position and equipment,
    **** Donations system (PagSeguro, https://pagseguro.uol.com.br)

    ** User notification (e-mail) when:
    **** Create account, changes password or e-mail, for e-mail changes we create log.
    **** When donation changes status
     
    For this control panel, we've used:

    ** PHP 5.4+ (PHP 7+ not tested)

    ** Apache 2.4 (IIS not tested)
    **** mod_rewrite must be enabled

    ** MySQL 5.5+ (MySQL 7+ not tested)

    ** PHP Composer
    **** To install our dependences of course!

    And the frameworks or extensions we've used to make it works:

    ** Slim Framework v3.1.0
    ** Smarty v3.1.29
    ** Guzzle v6.1.1
    ** Doctrine v2.4.2
    ** SwiftMailer v5.4.1
    ** PECL::MEMCACHE v3.0.8 (Optional, https://pecl.php.net/package/memcache)
     
    Live version?
    Here is: http://carloshenrq.com/brACP/
    Note¹.: The current live version is 0.2.1-alpha
    Note².: Once a week i update the live version, so some features you won't find right now there...
     
    Beta version?
    https://github.com/carloshenrq/brACP/releases/tag/0.1.1-beta
    Note¹.: This portuguese version only and the version is 0.1.1-beta, the newer is not ready for beta test.
     
    GitHub Repository?
    Here is: https://github.com/carloshenrq/brACP
     
    Suggestions, Reviews or Contribute? Please, let me know!
    If you can post here https://github.com/carloshenrq/brACP/issues will be more easy for us all.
  14. Upvote
    CarlosHenrq got a reaction from hemagx in brACP   
    Hello guys, i'm brAthena Project Developer (not core, of course) and for a few months i've worked on control panel for us (brAthena Community).
     
    I'm still working and i really have little time to develop, it causes lots commits (216 commits right now) and few features. But i'm happy to say it's almost released.
     
    So the features for the brACP are:
     
    ** Instalation (Need improve)
    ** reCAPTCHA (https://www.google.com/recaptcha/intro/index.html)

    ** Themes system
    **** Default theme has mobile support with CSS3

    ** Language system
    **** We have only pt_BR translation file right now, but we are working on it.

    ** Cache control (memcache)
    **** Rankings (Yes, cache sql result prevent MySQL to many request [shiraz, brAthena, hint]), translation and translated files.

    ** Account management
    **** Login, Create, Recover
    **** Administration panel (Still working on it)
    **** Change pass and e-mail
    **** Reset appear, position and equipment,
    **** Donations system (PagSeguro, https://pagseguro.uol.com.br)

    ** User notification (e-mail) when:
    **** Create account, changes password or e-mail, for e-mail changes we create log.
    **** When donation changes status
     
    For this control panel, we've used:

    ** PHP 5.4+ (PHP 7+ not tested)

    ** Apache 2.4 (IIS not tested)
    **** mod_rewrite must be enabled

    ** MySQL 5.5+ (MySQL 7+ not tested)

    ** PHP Composer
    **** To install our dependences of course!

    And the frameworks or extensions we've used to make it works:

    ** Slim Framework v3.1.0
    ** Smarty v3.1.29
    ** Guzzle v6.1.1
    ** Doctrine v2.4.2
    ** SwiftMailer v5.4.1
    ** PECL::MEMCACHE v3.0.8 (Optional, https://pecl.php.net/package/memcache)
     
    Live version?
    Here is: http://carloshenrq.com/brACP/
    Note¹.: The current live version is 0.2.1-alpha
    Note².: Once a week i update the live version, so some features you won't find right now there...
     
    Beta version?
    https://github.com/carloshenrq/brACP/releases/tag/0.1.1-beta
    Note¹.: This portuguese version only and the version is 0.1.1-beta, the newer is not ready for beta test.
     
    GitHub Repository?
    Here is: https://github.com/carloshenrq/brACP
     
    Suggestions, Reviews or Contribute? Please, let me know!
    If you can post here https://github.com/carloshenrq/brACP/issues will be more easy for us all.
  15. Upvote
    CarlosHenrq got a reaction from Tidus in brACP   
    Hello guys, i'm brAthena Project Developer (not core, of course) and for a few months i've worked on control panel for us (brAthena Community).
     
    I'm still working and i really have little time to develop, it causes lots commits (216 commits right now) and few features. But i'm happy to say it's almost released.
     
    So the features for the brACP are:
     
    ** Instalation (Need improve)
    ** reCAPTCHA (https://www.google.com/recaptcha/intro/index.html)

    ** Themes system
    **** Default theme has mobile support with CSS3

    ** Language system
    **** We have only pt_BR translation file right now, but we are working on it.

    ** Cache control (memcache)
    **** Rankings (Yes, cache sql result prevent MySQL to many request [shiraz, brAthena, hint]), translation and translated files.

    ** Account management
    **** Login, Create, Recover
    **** Administration panel (Still working on it)
    **** Change pass and e-mail
    **** Reset appear, position and equipment,
    **** Donations system (PagSeguro, https://pagseguro.uol.com.br)

    ** User notification (e-mail) when:
    **** Create account, changes password or e-mail, for e-mail changes we create log.
    **** When donation changes status
     
    For this control panel, we've used:

    ** PHP 5.4+ (PHP 7+ not tested)

    ** Apache 2.4 (IIS not tested)
    **** mod_rewrite must be enabled

    ** MySQL 5.5+ (MySQL 7+ not tested)

    ** PHP Composer
    **** To install our dependences of course!

    And the frameworks or extensions we've used to make it works:

    ** Slim Framework v3.1.0
    ** Smarty v3.1.29
    ** Guzzle v6.1.1
    ** Doctrine v2.4.2
    ** SwiftMailer v5.4.1
    ** PECL::MEMCACHE v3.0.8 (Optional, https://pecl.php.net/package/memcache)
     
    Live version?
    Here is: http://carloshenrq.com/brACP/
    Note¹.: The current live version is 0.2.1-alpha
    Note².: Once a week i update the live version, so some features you won't find right now there...
     
    Beta version?
    https://github.com/carloshenrq/brACP/releases/tag/0.1.1-beta
    Note¹.: This portuguese version only and the version is 0.1.1-beta, the newer is not ready for beta test.
     
    GitHub Repository?
    Here is: https://github.com/carloshenrq/brACP
     
    Suggestions, Reviews or Contribute? Please, let me know!
    If you can post here https://github.com/carloshenrq/brACP/issues will be more easy for us all.
  16. Upvote
    CarlosHenrq got a reaction from Senos in Help With some changes in skills   
    That's my patch for brAthena. You can add to your source, may need some changes if you have other sources changes. It's better you add manually at your source.   @edit   The final code... config.fullprotect.diff
  17. Upvote
    CarlosHenrq got a reaction from Clare in Help With some changes in skills   
    That's my patch for brAthena. You can add to your source, may need some changes if you have other sources changes. It's better you add manually at your source.   @edit   The final code... config.fullprotect.diff
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.