Jump to content

Akkarin

Forum Manager
  • Posts

    3,067
  • Joined

  • Last visited

  • Days Won

    182

Posts posted by Akkarin

  1. On 4/20/2021 at 7:10 PM, Tdi123 said:

    I can still modify the grf even though I don't have the password.

    It's the files that are encrypted. You can overwrite them or add more files, but you can't extract the files without the password/key.

  2. You could also just *not* use it. Uncheck the diff patch in NEMO for something like "Use multiple GRFs". That will force your client to use data.grf and rdata.grf, and maybe adata.grf, I think. You can then hex your client. Use GRF Editor to encrypt your GRF and produce a custom cps.dll and you should be a little safer if you're not going to use any client-side protection.

  3. On 4/7/2021 at 8:01 PM, monkoto said:

    @Akkarin, can you lead me to where in the code the difference between the menu url and the admin url is generated for pages? I've done as much experimentation with rewrites as I know how with no avail, but I can't seem to find the references for where the links are generated in the menus to test that avenue. The admin menu presents the correct URL, so I'm wondering what difference may exist between it and the main menu / sidebar.

    It depends on the theme you're using. If it's an older theme that was built before the new FluxCP theme system, then it'll be broke.

    The default and bootstrap themes that are included with FluxCP has the menus built from themes/<theme_name>/main/sidebar.php or navbar.php respectively.

  4. 13 hours ago, monkoto said:

    With debug=true, I get the Missing Action! message above, and code turns into 200: 

    image.thumb.png.5155745961ae40f250aa474827db848d.png

    Ah, I was referring to this. FluxCP is looking for a file called "content&path=downloads.php" and I'm not really sure why, as it get's the page content for that address from content.php. Something odd is definitely occurring for you but I'm not sure what to suggest.

  5. The first thing I would do is remove the .php from your download page URI. FluxCP is trying to interpret that as an actual file, which doesn't exist because the page data is pulled from the cp_cmspages table in your database.

    For the mail issue, i'll look into it. It's been about 4 years since i've touched that code, so who knows what I was trying to accomplish with the "No one" option. It would make sense for it to be a "catch-all" scenario where you don't send to any emails (kinda like a "select from this list" you see as the first option in most drop-downs).

    For the database messages, it should just work out of the box (after configuring your config.php and servers.php files). You shouldn't need to do any converting between engines at all - so this has confused me slightly. 

  6. 19 hours ago, Caspian said:

    How to you run eAthena on centos now that centos 6 ended his life in november 2020?

    I am trying here but without success...

    I got stucked in 'yum update' part...

    Loaded plugins: fastestmirror, refresh-packagekit, security
    Setting up Update Process
    Determining fastest mirrors
    YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
    Eg. Invalid release/repo/arch combination/
    removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
    Error: Cannot find a valid baseurl for repo: base

    1. Don't use eAthena.

    2. Don't use CentOS.

  7. On 1/30/2021 at 10:20 AM, dias103 said:

    I'm running into a very simmilar issue. I wonder if you would be able to help me with it 😅

    Pro tips:

    • Don't resurrect old topics for no reason.
    • Literally -every- question related to what you need or how to do something with a client has been answered on these forums already.
    • There are several other questions in this topic that are not related to the original post. If you're gonna say you have a similar issue, perhaps explain which issue you're referring to?
  8. On 1/18/2021 at 8:56 AM, botka4aet said:

    Loop for everyone in array one

    - if it's in array two or three - skip

    - else add to array three

    After this random from array three

    That is a complete waste of system resources.

     

    On 1/18/2021 at 9:04 AM, mawjustin said:

    if/else/goto would be the best option?? 

    No. Use the script command 'compare'.

    *compare("<string>","<substring>")
    
    This command returns 1 or 0 when the substring is in the main string (1) or not (0).
    This command is not case sensitive.
    
    Examples:
    	//dothis; will be executed ('Bloody Murderer' contains 'Blood').
    	if (compare("Bloody Murderer","Blood"))
    		dothis;
    
    	//dothat; will not be executed ('Blood butterfly' does not contain 'Bloody').
    	if (compare("Blood Butterfly","Bloody"))
    		dothat;

    So for your script you would do something like:

    if(compare(.Mob_BlackList, .Mob_List)){
    	debugmes "Mob is in blacklist.";
    } else {
    	debugmes "Mob is NOT blacklist.";
    }	

    Iterate through your array elements however you wish. See Disguise NPC in our repo for further usage example https://github.com/rathena/rathena/blob/master/npc/custom/events/disguise.txt#L208

×
×
  • Create New...

Important Information

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