Jump to content

deviruzy

Members
  • Content Count

    67
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by deviruzy


  1.  Hello.

     Where/How can I get clean lub file of the original Ragnarok client(kRO) and then create lua file out of it? Specifically the one handles item info one. The file doesn't have to be translated to english.

     

    Please and thank you.

     

    p.s. I've made the content short and right to the point to be time efficient. Apologies if I seem arrogant or disrespectful.


  2. *Edit: I really needed extra space in my google drive so unfortunately I've decided to delete this. Maybe in the future I'll upload again and share.

     

     Hello.

     Below is the link to zipped file for 12.11.2021 fully patched kRO.

    https://drive.google.com/drive/folders/17VKEy37ppwCnj81uooP_LauAiSmwxAc6

     

    p.s. Now, in general, something like this is frowned upon but if you are good at client creation, please check the request post I've made. I have put the link below. Thank you.

     

    Edit: While searching for this and that, I've found this wonderful tutorial in Youtube. As long as it works flawlessly and smoothly, I guess TXT base or not doesn't matter. Hahahaha I don't know why I refrained myself from using SQL in the first place. Anyways, cheers!

     


  3.  Hello.

     I know asking a hand down is frown upon. I also know that this is Hercules forum and not eathena forum. But what I have is this:

    (https://github.com/MAXBURAOT/eAthena-r15269/releases)

     

    I tried getting this client and that client but I've failed to get a properly working client to actually get inside the server. I've been trying to have my own server that I can play alone fro a few years but I always failed at this part. It was always the client that stopped me from playing. Would someone please help me? I lay down my pride and I'm desperately asking for a working full client for this version of eathena. I will be the only one playing the server and the client doesn't even need to be translated if it helps. Oh, one more thing. I have latest fully patched kRO.

     Please and thank you.

     

    p.s. This is all I can offer to this forum. I had to do something to make this happen.

    12.11.2021 Fully patched kRO: https://drive.google.com/drive/folders/17VKEy37ppwCnj81uooP_LauAiSmwxAc6


  4.  Good days to you.

     I was wondering how I can get rid of this little quick bar from my client.

     

    http://imgur.com/27XhwdW

     

     The client I'm using is: the one that can be edited by using HxD. I remember getting rid of Cash Shop button with it. It would be wonderful if anyone taught me how get rid of this little quick bar.
    Thank you.
     
    PS. I've tried to upload my image as link but it kept telling me I can't use this image extension. Until I find out how to properly upload an image on Hercules posts I hope you could understand this extra step. Sorry.

  5.  Good days to you.

     I noticed that people are using website called imgur to upload their images on their post. However, the image I uploaded from my imgur is not working here. It keeps telling me something like "This image extension is not allowed in this forum." I tried .png, .jpeg, .bmp. but all of them ended in same result. Can anyone tell me how to upload an image in Hercules post?

     Thank you.


  6.  

    Great :P

    Btw, just in case anyone wants the 2nd type , the infinite error is caused due to many loop >100, which can be prevented by using freeloop command as shown here;

        .@q = 0; .@qd = 0;
        freeloop(1);
        for (.@i = 18660; .@i < 19223; ++.@i) {
            .@q += countitem(.@i);
        }
        freeloop(0);
        if (.@q < 100) {
            mes " ";
            close;
        }
        .@q = .@q/100;
        .@get = .@q;
        freeloop(1);
        for (.@i = 18660; .@i < 19223; ++.@i) {
            if (.@q <= 0) {
                getitem 19305, .@get;
                break;
            }
            .@qd += countitem(.@i);
            if (.@qd >= 100) {
                .@q -= .@qd/100;
                .@qd -= (.@qd/100)*100;
                delitem .@i, countitem(.@i)-.@qd;
            }
           if (.@q != 0) {
                delitem .@i, countitem(.@i);
            }
        }
        freeloop(0);
        mes "Successfully changed";
       
        close;
    

     

     

     

     OH MY :o ! Oh my, oh my, oh my! Dast, This NPC is gold! It works flawlessly! The NPC is perfected! Wow! I'm just.. I'm just.. I wanna jump around. Hahahahahaha  :lol: . Thank you so much! Wow, hahahahaha. Amazing.


  7.  

    You could try this maybe

        .@q = 0; .@qd = 0;
        for (.@i = 18660; .@i < 19223; ++.@i) {
            .@q += countitem(.@i);
        }
        if (.@q < 100) {
            mes " ";
            close;
        }
        .@q = .@q/100;
        .@get = .@q;
        for (.@i = 18660; .@i < 19223; ++.@i) {
            if (.@q <= 0) {
                getitem 19305, .@get;
                break;
            }
            .@qd += countitem(.@i);
            if (.@qd >= 100) {
                .@q -= .@qd/100;
                .@qd -= (.@qd/100)*100;
                delitem .@i, countitem(.@i)-.@qd;
            }
           if (.@q != 0) {
                delitem .@i, countitem(.@i);
            }
        }
        mes "Successfully changed";
       
        close;
    

     

     Wow, You're a hound. Once you bite you never let go Dastgir. Amazing :o . Well, I just tested it and once the combination gets complicated it goes into infinite loop. What I had was '30 of 18740', '60 of 18840', '50 of 18940', and '70 of 19040' and map-server gave me an error message saying "infinite loop!" Dast, Can I call you that way? Haha :lol:. I am grateful. I am psyched with the first script you built, without "break;". Thank you so much for your passionate help.


  8.  

    .@q = 0; .@qd = 0;
        for (.@i = 18660; .@i < 19223; ++.@i) {
            .@q += countitem(.@i);
        }
        if (.@q < 100) {
            mes " ";
            close;
        }
        .@q /= 100;
        .@get = .@q;
        for (.@i = 18660; .@i < 19223 && .@q != 0; ++.@i) {
            .@qd_bef = .@qd;
            .@qd += countitem(.@i);
            if (.@qd >= 100) {
                delitem .@i, ((.@qd-.@qd_bef)/100)*100;
                .@q -= .@qd/100;
                .@qd -= (.@qd/100)*100;
            }
           if (.@q != 0) {
                delitem .@i, countitem(.@i);
            }
        }
        getitem 19305, .@get;
        mes "Successfully changed";
        close;
    Haven't tested, (it could have been done in more simpler way, but not having enough time to optimize it more)

    Edit: for previous script, if you remove "break;" it would consider more than 1 item in quantity of 100's

     

     Wow :lol: . Thank you Dastgir . :D  I've tested this and turns out it has a problem, I'm afraid. It does not delete the scattered items. For example if I have '20 of 18670', '90 of 18680', and '90 of 18690' it gives me two 19305s which is good but it does not take away those 200 items. I can just get 2 19305s over and over.

     Previous script without "break;" seems to be working in more refined way like you said, which was amazing :lol: . Great skills you got there. It appears everything is solved except the ability to take scattered 100s such as '30 of 18880' and '70 of 18890'. Which makes me keep hoping you know? It's just one step away and I just can't stop wishing for this to work. However, I can and should be happy with this. I've been thinking and I could just make this NPC say something like, "For every 100 items you bring, I'll give you one 19305 in return." You can consider this like a kick in her personality. Yes, the npc is a female. Hahaha :lol: . You have made this trading NPC to completion. Thank you so much.

     Sincerely.

     

    Solved and Completed script is below:

     

     
        for (.@i = 18660; .@i < 19223; ++.@i) {
            if (countitem(.@i) < 100)
            continue;
     
            .@j = (countitem(.@i)/100);
            delitem .@i,100*.@j;
            getitem 19305,1*.@j;
            }
     
        if (.@i == 19223) {
        mes "You need at least 100 of certain kind."; 
        close;
        }
     
        mes "Successfully changed.";
        close;
     

     


  9.  

        for (.@i = 18660; .@i < 19223; ++.@i) {
            if (countitem(.@i) < 100)
               continue;
            .@j = (countitem(.@i)/100);
            delitem .@i, 100 * .@j;
            getitem 19305, .@j;
            break;
        }
        if (.@i == 19223) {
            mes "  "; 
            close;
        }
        mes "Successfully changed";
        close;

     

     Thank you :lol: ! Thank you! Wow it's gorgoues  :lol: ! But when I tested this npc I noticed that it only takes the items in 100s. For example when I have '100 of 18960', '50 of 18770, and 50 of 18880' it will take 18960s and give me one 19305. I was hoping this NPC can also take those two 50s and leave me two 19305 in this situation.

     I've also found out that it only takes one kind at a time. For instance when I have '200 of 18760' and '100 of 18770' instead of changing them to 3 19305s it just gave me two 19305. I had to ask the npc again for the leftovers. I know I'm asking too much here but It would be more than perfect if this can be done. I really hope it could for it's so close. Please.

     Thank you.


  10. Are you just trying to obtain all the custom items in your inventory? Your script makes me clueless what you're really trying to achieve.. >.< whatever logics going on I have hard time grasping... from what I can tell is

     

     

    For item ID 18660 is less than 19223 "perform operation." Which is adding .@i until become 19223. will always be greater than 100 because it starts at 18660. I just suggest maybe better explanation or better grasp on script_commands.txt in our public github repo.. unless I'm only one confused someone please help our fellow Hercules user.

     

     It appears I am insanely confused here. Hahahaha. I've edited the original post to clarify what I'm trying to do. I'm trying to make a npc that is like the old version of card trader. For example if you bring 100 items that is in range of 18660 to 19222 it will give me one 19305 in return. I hope I'm making sense.


  11.  Good days.

     I'm trying to make a custom trade npc that is like old card trader, which I have failed to find in both Hercules and rathena. An npc that gives you one 'item 19305' for every 100 items that is in range of item 18660 to 19222. For example if I bring 30 of 'item 18760' and 80 of 'item 18900' it will give me one '19305' and leave 10 of either 18760 or 18900. I hope this makes sense. Here's what I got so far.

     

     

            for (set .@i,18660; .@i < 19223; set .@i,.@i+1) {
            if (countitem(.@i) < 100) goto Enog;
            set .@j,(countitem(.@i)/100);
            delitem .@i,100*.@j;
            getitem 19305,1*.@j;
            close;
     
        Enog:
            mes "  "; 
            close;
     
        }

     

     Thanks to Aeromesi now I know this is deeply wrong. This script only changes 18660 only. If I bring 18661 it goes straight to the label Enog.
    Please teach me how to make this npc right. I would really appreciate it if you help me.
     Thank you.

  12. Thank you for this plugin. I've been looking for charm system. However I'm using old version of Hercules so I do not have hercules.h directory in mine. Thus every time I compile my Visual Studio keep tells me something like this:

     

    'common/hercules.h': No such file or directory

     

     I would update my VIsual Studio but then I won't be able to use my client which I am more afraid of. I really wish I can use this plugin but I guess I'll just have set on alternate solution: using costume gears that doesn't interfere with visual appearance such as shoes and accessories.


  13. Good days.


     I was wondering if it's possible to stop costume items from covering regular equipments. I just want to use costume items as Talismans. Can anyone help me with this please?


     By the way i tried editing my old post, which contains same content, hoping it would get bunked to top but it didn't work so I had to write another post even though I asked a different question just a few hours ago. Sorry for being selfish and Thank you.



  14.  Good days.

     I tried using buying store by both using the permit item or actually using the skill but nothing happened in either way. I was possessing the permit item which is required to use the skill so I figured that was not the problem. I also had items to put when the window pops up and asks me what kind of items I want to buy.

     There was no error message in map-server or either of -server windows. Could someone please tell me how to activate this? I would very very much appreciate it if I can activate this incredible system.

     

     Thank you.


    I'm sorry for my stupidity. I asked this long time ago. I had same problem then and just found out my old post. I knew something very similar was happening. When I wrote this I felt like I was having Dejavu. How do I delete this post? By the way the answer is below.

     

     At feature.conf

     feature.buying_store: on


  15.  [FIXED]

     

     Turns out list of sounds is literally just a list. After adding .wav files on the list, you have to choose specific sprite of each direction and add specific sound on them.

     I first tried adding this on the reply section but it seems I can't reply on my own post.

     

     Good days.

     

     I'm having trouble with adding sounds to a monster without any by using Act Editor v1.0.3.

     First I opened a monster with sounds that I want, copied the list of .wav files by clicking 'Edit sound list' on edit's menu. Then I pasted the list onto my monster, the one without any sound.

     

     

    1.atk

    2.teddy_bear_move.wav

    3.blood_butterfly_attack.wav

    4.yoyo_damage.wav

    5.yoyo_die.wav

     

     Even after saving or trying 'save as' my monster still didn't make any sound. I even tried getting ride of 'atk' because it did not have any .wav to it but that didn't do anything either. If you know how to add sounds to monsters I would very much appreciate it if you teach me how.

     

     Thank you.


    Turns out list of sounds was literally just a list. Once you put .wav files on the list you have to choose specific part of the sprites of each direction and link with a certain sound. 


  16.  Good day.

     This is what I've added in mob_race2_db.txt in dbpre-re folder.

     

     

     

    7,1904,1398,1935,1359,1561

     

     

    I don't see any problem when I comapre them with original lines.

     

     

    // Ninja Classes (Pirate's_Pride)
    6,1315,1364,1401,1560

     

     
    However, when I run map-server it shows these error messages.

     

    [Warning]: mob_readdb_race2: Unknown race2 7.
    [Error]: sv_readdb: Could not process contents of line 21 of "db/pre-re/mob_race2_db.txt".

     

    Is there something else I need to do in source or something in order for this to work?
    Please teach me if you know. Thank you.
     
×
×
  • Create New...

Important Information

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