Jump to content

Habilis

Members
  • Content Count

    225
  • Joined

  • Last visited

  • Days Won

    20

Reputation Activity

  1. Upvote
    Habilis got a reaction from luizragna in Custom Unit HP Bar System   
    Combining, Thx for idea!
  2. Upvote
    Habilis reacted to AnnieRuru in Custom Unit HP Bar System   
    Move to Script Release
    nice idea !! if combine this with World Boss system I can see a lot of potential in this
  3. Upvote
    Habilis got a reaction from luizragna in Custom Unit HP Bar System   
    Very nice, but I think it would be annoying to do that for every single mob?
    Could be a nice feature for Boss mobs though. 
  4. Upvote
    Habilis reacted to luizragna in Custom Unit HP Bar System   
    Hello guys, i'm making a custom hp bar system for mob units.
    The command show the HP of the mob for all players in the map.
     
    I am using the cutin command, the problem is that I do not think so many files are necessary. In the case 1 image for each percentage of hp I would like your opnion and help to improve this system and make it lighter.
    Test yourselves :).
     
    HP Bar System:
    payon,147,229,4 script Test#HPbar 1_F_MARIA,{ if (.HP_Bar == 0) { .HP_Bar = 1; .mobGID = monster ("payon",148,226,"[T] HP Test",POPORING,1,strnpcinfo(0)+"::OnDie"); setunitdata .mobGID,UDT_MAXHP,4000; setunitdata .mobGID,UDT_HP,4000; .@count = getunits(BL_PC, .@units, false, "payon"); for (.@i = 0; .@i < .@count; .@i++) addtimer(0,strnpcinfo(0)+"::OnHPBar", .@units[.@i]); } end; OnDie: .HP_Bar = 0; end; OnHPBar: .U_MAXHP = getunitdata (.mobGID,UDT_MAXHP); while (.HP_Bar != 0) { .U_HP = getunitdata (.mobGID,UDT_HP); .P_HP = (.U_HP*100)/.U_MAXHP; cutin(""+.P_HP+"", 1); sleep2 100; } cutin("0", 1); sleep2 5000; //Delay to hide HP Bar cutin("", 255); end; }  







     
    Donwload of the data folder files: HP Bar System (2018-06-26).rar
  5. Upvote
    Habilis got a reaction from AnnieRuru in LOGIN REWARD VIA LAST MAC   
    Oh yes, there is one way of doing it.
    doing it the Habilis way. True, it's a bit painful and awkward way,(couldn't be different with Habilis) but this is better than trying to figure out MACs (My MAC changes at every system startup) and IPs.
  6. Upvote
    Habilis got a reaction from AnnieRuru in LOGIN REWARD VIA LAST MAC   
    @AnnieRuru
    Thanks, Very neat advice will try that!
     
  7. Upvote
    Habilis reacted to AnnieRuru in LOGIN REWARD VIA LAST MAC   
    @Habilis
    ahem ... getitembound should do most of the trick
    although like what you did with Trade permission is ... yeah more painful
     
  8. Upvote
    Habilis reacted to TheReturn in Agit Denfed Ranking   
    Its not a full release since you need to modify some stuff, it can get some improvements but works as intended.
    This script is only showing the ranking for Swanhild and Kriemhild as an example, if you wanna show more just change the code:
     
    switch( select("- Swanhild", "- Kriemhild.")) { case 1: set .@castleName$,"Swanhild"; break; case 2: set .@castleName$,"Kriemhild"; break; } Adding more cases and more options on the switch select.
    Install:
     Copy the agit_defend_ranking.txt to the custom folder and add it to scripts_custom.conf.
     Insert the SQL table to your server database
     replace the agit_main.txt to 'hercules\npc\woe-fe\' folder.

    obs* doest work for woe-se for now, I will update it if someone ask for it.
    agit_defend_ranking.txt
    agit_defend_stats.sql
    agit_main.txt
  9. Upvote
    Habilis reacted to bWolfie in [Guide] Mapcache Generation 2018   
    As of Release v2018.03.13, the method to generate mapcache for Hercules has changed. A lot of people. myself included, were confused as to how it works. In this thread, I will do my best to explain the new way to generate your cache. This guide is intended to help people using the old system, not to aid new people (i.e. never generated mapcache before), so if you are new, some of it may seem like alien talk.
    Old (your source predates [is older than] Feb 18, 2018)
    In the old system, there were two ways to generate mapcache
    You could run the mapcache executable in Hercules root folder. Or use a program such as WeeMapCache to edit in your required mapcache. These two methods would generate or alter your required mapcache located in db/[pre-re or re]/map_cache.dat. However, they are no longer supported.
    New (your source is using Release v2018.03.13 or newer)
    The new system involves the use of the new 'mapcache' plugin to generate files. Some quick points:
    db/[pre-re or re]/map_cache.dat has been dropped (no longer supported). In its place are individual .mcache files for every map located in maps/[pre-re or re]/ Mapcache executable has been removed. Replaced with the mapcache plugin (src/plugins/mapcache.c). How to generate the mapcache?
    Same as before, check conf/map/maps.conf and db/map_index.txt have all the maps you want to cache. Your maps need to exist somewhere in your repository! There are two ways for the plugin to find them:
    a. Place all your maps, including resnametable.txt, inside the data folder of your Hercules repo. I.e. Hercules/data/prontera.gat/gnd/gnd/rsw (note: I forget if all three files are needed).
    b. OR Configure your conf/grf-files.txt to tell it where to find your GRF(s) which contains your maps. Build the mapcache plugin. On linux, this can be done by running the following command:
    make plugin.mapcache
    If using MSVC, compile as you would any other plugin. Execute plugin. This can be done using the following command:
    ./map-server --load-plugin mapcache [param]
    In windows, just remove the './' and run the commands in your command prompt. The params:
    The first thing you should do is run
    ./map-server --load-plugin mapcache --help
    A list of usable parameters will appear. Here are the ones you need to know for mapcache:
    [Info]:   --convert-old-mapcache         Converts an old db/pre-re/map_cache.dat file to the new format. [Mapcache] [Info]:   --rebuild-mapcache             Rebuilds the entire mapcache folder (maps/pre-re/), using db/map_index.txt as index. [Mapcache] [Info]:   --map <name>                   Rebuilds an individual map's cache into maps/pre-re/ (usage: --map <map_name_without_extension>). [Mapcache] [Info]:   --fix-md5                      Updates the checksum for the files in maps/pre-re/, using db/map_index.txt as index (see PR #1981). [Mapcache] ./map-server --load-plugin mapcache --convert-old-mapcache
    Rebuild all the .mcache files using your old db/[pre-re or re]map_cache.dat file.
    NOTE: You should only run this command when you have an old map_cache.dat file you need to convert.
    ./map-server --load-plugin mapcache --rebuild-mapcache
    Rebuild all the .mcache files using your map files specified in step 2 of generation.
    NOTE: You should only run this command in special circumstances. This erases ALL the existing mapcache and rebuilds it with whatever files you provide it. If you don't have the required files, the build will fail and you will be left with missing mapcache files, meaning you won't be able to access those particular maps.
    ./map-server --load-plugin mapcache --map <name>
    Rebuild the .mcache file for the map name you specify. E.g. if you replace <name> with prontera, the maps/[pre-re or re]/prontera.mcache file will be rebuilt.
    NOTE: This is the best command to run, as it only caches a single map at a time.
    ./map-server --load-plugin mapcache --fix-md5
    I don't know what checksum is for.
    The End
    Feel free to ask for help here. I'll try to answer questions re: mapcache if possible. And if you think anything needs correcting or added, let me know.
    Hope this helps!
  10. Upvote
    Habilis got a reaction from Vietlubu in [Dev's Diary] Minimal $ Ragnarok online server & comunity   
    Hello Boys and Gals
    I decided to do a experiment project, on with how minimal $ input, I could make a decent
    (by decent, I mean, players wouldn't want to delete the game client after 15 minutes playing)
    Ragnarok Online server and Comunity
     
    I will write it all in the Dev's Diary Format (Every entyr will follow standart : Day X : doing stuff  [What I've done])
     
     
    Day 1: First steps
     
    First of all, I needed a server software. After reading few reviews, I considered Hercules as my server software, mainly for it's hardware resources management.
     
    Then, I needed hardware. Since this is minimal $ input, I have compiled it and configured it to run on my RaspberryPi 3, which runs already a webserver, OwnCloud.
    It has an UPS made out of a PowerBank (for those who are curious http://raspi-ups.appspot.com/en/index.jsp)
     
    Not and option for you ?
     
    - You can spend 150-200$ for a year of VPS 
    - Or, you could dustoff that Intel Core 2 duo that sits in your closet (im sure, for many of you, it does), it will run a server just fine...
     
     
    Need to configure a home network (its actually really easy)
    all I needed to do is give my server machine
    - a static ip (good business practice)
    - To that static IP, I needed to forward ports 3 ragnarok ports, 80/443 (80 if Im  planning to host a webserver aswell, 443 if Im planning to use SSL, you know that https:// link... will be explained later in the DevsDiary...)
     
     
    I decided not to host a webserver for my Ragnarok Server Comunity.
    If the game server is down, I want the web site still be available...
     
    no problem go to Google and search for free web hosting, there are many of them just suit myself....
     
    then I went to domain registrar (I used Godaddy) and look for a .com domain for my server
    .com domain grants some credibility
    When I have added my .com domain to the cart 
    I went to google and search "cupons domain [site where I buy my domain] (in my case its godaddy)"
     
    I got a cupon code for first year registration of .com domain for 99cents
     
    Now I needed a website... there is plenty of website designs on these forums
    I liked : https://rathena.org/board/files/file/3012-erods-unfinished-web-template/
     
    Mainly because  it was already HTML, I didn't have to slice PSDs...
    since, I just want a website with basic info
     
    a little design and there you go

     
    I've configured the DNS of my .com domain to the free webhosting
    Now everyone can access my server Website from .com domain
     
    So far I've spent 99cents on .com domain...

    Day 2: Free Hosting Limitations
     
    The Idea behind using a freehosting, is to keep site and comunity online during Game server downtime.
    Sure free hostings limit possibilities. But Im designing a strategy to bypass those limitations in one way or another...
     
    1) Free hostings do not allow open socket (used to check server status Online/Offline)
    Its actually pretty easy to bypass
    Free hostings offer Cron (Planified tasks)
     
    So I will start writing API-like software to run on the webserver on same machine as RagnarokServer
    Ragnariok  server Machine                                                                             Free Web Hosting                                                                    
    Web-API (like)                                                     <---------------------               Cron job every 5 minutes with CURL call to Server machine
    does open socket on 127.0.0.1
    returns Plain Text Or JSON (undecided yet)
    111 (1 - map is on 1- login is on 1 - char is on)   ------------------------->           Builds static HTML file with styling and all that good stuff
     
                                                                                                                            (if no reply from GameServer, Server considered offline)
                                                                                                                             WebSite just includes that static HTML
                                                                                                                             file using AJAX
     
     
    True, the status is not very accurate, it has 5 minutes update lag. but its fully functionnal, no matter what crazy Limitation my free web hosting impose....
     
    Im also thinking to add a API key concept Much like KeyChain VPN token some company give you to work from home...
     
    My strategy is never reveal what my database connection string is....
    In case a Hacker gets  a webshell on that free site the only thing he will see is the 
    WEB-API adress and API token generation algorithm and SALT.
     
    Im also thinking to add logging to API so if API spam or bruting attemps detected, I would just change API token Algorithm...
  11. Upvote
    Habilis got a reaction from Tyrfing in Cloud 9 & Hercules   
    Hello It's me!! (oh noooo)
    and I have another crazy thing to share
    It involves Ragnarok, Hercules, Raspberry Pi and an open source cloud IDE, how any cooler could that be!?
    Today I'm going to talk about my development setup  on my Raspberry Pi, that's right, I don't install Visual Studio on my local machine,
    neither MySQL server.
     
    I have a decent little thingy Raspberry Pi that can do it all!!
    - Run and Compile Hercules emulator
    - Run a MySQL server installation
    - And even run a Cloud 9 WEB IDE
     
    Just run it

    and open your browser 

    Cloud 9 is a full scale IDE with  command prompt integration, file search and replace, refactoring, project view on the left(for easy navigation)
    and a main window with code editor allowing you to edit
    configs of your emulator
    develop scripts
    edit source
    and write plugins
     

    After that just compile your emulator with integrated Command prompt and run the server as simple as that...
     
     
     
    Obviously, I have written a guide on how to install cloud 9 IDE on a Linux box
    https://habilisbest.com/installing-cloud-9-on-your-raspberry-pi
     
    As the guide states Cloud 9 runs on NodeJS, there is a simple instruction on how to install NodeJS on your Linux box!
     
     
     
  12. Upvote
    Habilis got a reaction from Tsuuu in Mapcache guides?   
    0 - Use WeeMapCache Editor  (To edit mapcaches)
    It allows quickly edit/add/delete maps into cache file (Don't forget to do a backup of your mapcache)
    1. Add ".gat", ".gnd", ".rsw" files to data folder.
    2. Edit "mapnametable.txt" and "resnametable.txt" files in data folder.
    3. Edit "map_index.txt" in db folder.
    4. Create(update) mapcache "map_cache.dat" file in pre-re OR re /db folder.
    5. Edit conf/maps.conf 
    6. Add flags/warps/monsters to the map as a script in npc folder
  13. Upvote
    Habilis got a reaction from IndieRO in [Guide] Create your server & Client (2016/08)   
    Up To date 2017 Version
    https://habilisbest.com/raspberry-pi-and-ragnarok-online-private-server
    + Good Business Practices in terms of Herc server installation and administration.
    + Herc server Troubleshooting Guide covering most of the problems of the beginners and Other frequently asked questions.
    + [BONUS] Automatic Herc server Database Backup GUIDE to the cloud  For those who are crazy about their DB and want to configure full backup of their DataBase every 6 (12, 24, 48) hours.
    All FREE from Habilis.
     
    *Even if it says  Raspberry Pi .... It's Debian, OK!?
  14. Upvote
    Habilis reacted to Adel in Adel's Free Sprites   
    Hello people~
    These are my sprite work that I would like to share with you all.
    Feel free to use them after you read the Terms of Use below.
    Please join my Discord channel and click on #freebies to Download.
    Enjoy!  

     

                   
              
              
                




     

         
         
     




  15. Upvote
    Habilis reacted to Adel in Adel's Free Sprites   


        












     
  16. Upvote
    Habilis reacted to Shiro in [Showcase] Pandaworks Thor Patcher Theme   
    I suggest not to try and occupy blank spaces with chibis/characters. It looks messy IMO. Try to keep the design simple and pleasing to the eyes. Also, buttons give the patcher/website a lot of glamour  but yeah, keep it up. Practice makes perfect. Looking forward to your future designs
    I'm not implying that I'm better tho. Just giving you some suggestions
    Here's some of my latest patcher designs. 
    PS: Daifu-chan is the best



  17. Upvote
    Habilis reacted to Daifuku in [Showcase] Pandaworks Thor Patcher Theme   
    Hi there!
    I would suggest to use images with the same style.
    Right now you have like 5 different drawing styles flying around the patcher and its quite irritating.
    You kept the background/footer and inner part quite simple/plain colorwise (white/blue/dark blue/without effects) and then added a super flashy play button with light and shadow effects, I don't think that's pleasing to the eye. 

    But keep it up and play around more! I'm sure you will only get better and better. 

    In case you need some inspiration - one of the patchers I've started recently:

     
  18. Upvote
    Habilis got a reaction from Aurora in Q> on make sql command   
    hmmm... ok...
    1 thing, when you say 
    you ran chmod +x ./configure (worked fine)
    but did you ran ?
    ./configure  
    2 thing you can always do 
    chmod +x config.status ...
  19. Upvote
    Habilis reacted to Cero in [Dev's Diary] Minimal $ Ragnarok online server & comunity   
    This DevDiary was a nice insight into the development timeline of a server, very useful and a cool topic to read over! How stable are RPi's for server hosting? I'm currently using a dedicated server to work on my project but it's cool to see something as robust as RO running on an RPi.
  20. Upvote
    Habilis reacted to Shiro in Shiro Designs Free Thor Patcher   
    View File Shiro Designs Free Thor Patcher
    Uhmm... So the owner of Amatsu Ragnarok Online didn't pay me at all so here it is.
    It is coded already.  
    It includes PSD file, Config Files, Web files and Thor Generator
    Have fun 
    Submitter Shiro Submitted 07/28/17 Category Other Graphics  
  21. Upvote
    Habilis reacted to dualityDiscretion in RO Webcomic [FIN]   
    Wait, another reunion? Cats can talk?! Joshua gets a rival in the new PP&P?!
    https://tapas.io/episode/761169
  22. Upvote
    Habilis reacted to dualityDiscretion in RO Webcomic [FIN]   
    Joshua still can't get over the fact that this cat can talk... and he gets what he deserves...
    https://tapas.io/episode/769338
  23. Upvote
    Habilis reacted to dualityDiscretion in RO Webcomic [FIN]   
    Thanks a lot!
    -

    Wait, Juniper has almost the exact same spells as Joshua does?!
    https://tapas.io/episode/777039
  24. Upvote
    Habilis got a reaction from Legend in Hiya, new to RO development   
    Hello and Welcome !!!
    Me too, I write on many languages.
    (Seriously any...If I'm interested or paid to do it)
     
    You can check a guide in my signature on how to setup Herc server
    There is also a link to Trouble shooting/Frequently Asked Questions Annex to my guide
     
    And for personal experiences... Well, you can read my 
    Homeless/Vagabond Developer's diary
     
    Enjoy your day with Hercules!!
  25. Upvote
    Habilis reacted to meko in rAthena to Hercules   
    Hercules does support packet shuffling and you can use pretty much any client with it; Hercules will automatically rearrange the packets based on the client version.
     
    About Hercules vs. rAthena, see the already existing topics:
    (there's many, many more but I won't list them all)
     
    Hercules is focused on performance and stability while rAthena is mostly focused on features and content.
    The two scripting engines and database formats are similar but incompatible, this means you will need to do some conversion.
×
×
  • Create New...

Important Information

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