Jump to content

meko

Core Developers
  • Content Count

    363
  • Joined

  • Days Won

    46

Posts posted by meko


  1. Hercules sends whatever you pass to cutin() unchanged so there's nothing wrong with the emulator version. However the packet doesn't have variable size so the cutin file name can have a maximum of 63 characters, after which it's being truncated.


  2. rAthena tables are not compatible with Hercules table

    If what you meant is running a rAthena login server with a Hercules char + map servers that isn't compatible either

     

    If you want to migrate data you will have to export to a .sql file, change the structure to match Hercules's then import in the Herc db


  3. any config in conf/* can be put in conf/import
    Simply add the pincode block inside the char_configuration block

     

    Let's say this is your default conf:

    char_configuration: {
        // See conf/char/char-server.conf for details
    }

     

     

    You would add pincode at the end, before the final curly bracket

    char_configuration: {
        // See conf/char/char-server.conf for details
    
        pincode: {
            // A window is opened before you can select your character and you will have to enter a pincode by using only your mouse
            // NOTE: Requires client 2011-03-09aragexeRE or newer.
            // 0: disabled
            // 1: enabled
            enabled: false
    
            // Request Pincode only on login or on everytime char select is accessed?
            // 0: only on login (default)
            // 1: everytime the char select window is accessed
            request: 0
    
            // How often does a user have to change his pincode?
            // Default: 0
            // 0: never
            // X: every X minutes
            change_time: 0
    
            // How often can a user enter the wrong password?
            // Default: 3
            // Maximum allowed by clientside: 3
            max_tries: 3
        }
    }

     


  4. It's not getting overwritten; reference_uid() is var, index. In this case "count" is the index, and it's being incremented every time (count++).

     

    To iterate through those variables in script, a simple for() loop will do the trick just fine. See also:

     


  5. Date and Time functions


    This script provides functions to easily calculate date and time. More functions might be added in the future.

     

     

    now()
    a shorthand function to get the current time
    > returns the number of seconds elapsed since the Unix epoch

    now() // => 1497119219 (example, increments every second)




    time_from_ms(<delta>)
    calculates a Unix timestamp relative to the current time
    > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> ms

    time_from_ms(0) // => 1497119219 (example, increments every second)
    time_from_ms(+1000) // => 1497119220
    time_from_ms(-1000) // => 1497119218




    time_from_seconds(<delta>)
    calculates a Unix timestamp relative to the current time
    > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> seconds

    time_from_seconds(0) // => 1497119219 (example, increments every second)
    time_from_seconds(+1) // => 1497119220
    time_from_seconds(-1) // => 1497119218




    time_from_minutes(<delta>)
    calculates a Unix timestamp relative to the current time
    > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> minutes

    time_from_minutes(0) // => 1497119219 (example, increments every second)
    time_from_minutes(+1) // => 1497119279
    time_from_minutes(-1) // => 1497119159




    time_from_hours(<delta>)
    calculates a Unix timestamp relative to the current time
    > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> hours

    time_from_hours(0) // => 1497119219 (example, increments every second)
    time_from_hours(+1) // => 1497122819
    time_from_hours(-1) // => 1497115619




    time_from_days(<delta>)
    calculates a Unix timestamp relative to the current time
    > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> days

    time_from_days(0) // => 1497119219 (example, increments every second)
    time_from_days(+1) // => 1497205619
    time_from_days(-1) // => 1497032819




    FuzzyTime(<unix timestamp>)
    converts a Unix timestamp to a human-readable format
    > returns human-friendly relative time

    FuzzyTime(0) // => 47 years, 172 days, 18 hours, 52 minutes, and 28 seconds ago
    FuzzyTime(time_from_hours(+28)) // => in 1 day and 4 hours



     

    --------------------------------------------------------------------------------------

    This script was made by me, for The Mana World + Evol.
    L
    icense: public domain (CC0)


     


  6. this error stems from you putting a space between "monster" and the parentheses; to get a return value you need parentheses right after the command.. your .@mobGID var never gets assigned because of the way you call the monster command (statement vs function)


  7. 25 minutes ago, kairu said:

    Bump

    General Posting Guidelines

    • Posts may not contain SPAM. Spam is one word posts, posts with no meaning to the topic, or double/triple posts without reason.
    • Posts in the support sections may be bumped with more information no less than 24 hours after the last post; if you have new information within less than 24h, edit your previous post.

    http://herc.ws/board/guidelines/

     

    Sorry, I'm not able to help further as the engine does not support what you are trying to accomplish

    Please fill an issue here if you would like a new feature to be added (ie trading events):
    https://github.com/HerculesWS/Hercules/issues/new


  8. Just now, Myriad said:

    does it matter? maybe they want to add a counter for each time player trades. or bring a mes() window.

    It's just that there's likely another way to accomplish what they try to do without modifying the source or making a plugin. But for that we need to know what the original intent is.


  9. I still don't understand why you have to do it from plugin... You do know you can iterate over an array from scripts, right?

    .@size = getarraysize(mob2kill[0]);
    
    for (.@i = 0; .@i < .@size; ++.@i) {
        specialeffect(EF_HIT1, SELF, mob2kill[.@i], playerattached());
    }

     

    If you insist on using a plugin, look at the source of copyarray()


  10. Besides the avatar issue, here's what I noticed so far:

    • Newlines in code snippets for downloads seem broken. FIXED Example:
    • ^ Clicking the download button yields "file not found" FIXED
    • ^ The actual files of the previous versions of the file are gone FIXED
      • for some reason version 1 and version 2 seem fine, but version 3 and 4 are not found (I re-uploaded version 4 though) FIXED
    • It is no longer possible to remove previous versions FIXED
    • The screenshots for ALL downloads are gone FIXED
    • You can no longer see who gave +1 reputation on posts FIXED
    • The reputation page is gone from profiles altogether FIXED
    • The reputation page on profiles shows no posts at all FIXED
    • When you edit posts, even if you don't check "Show that the message has been edited" it still shows as edited NOT A BUG
    • When clicking the Documentation tab in the page header it says "Wiki (Achieved)" FIXED
    • On profile pages the bar that says content count, joined, last visited partially covers the member title FIXED
    • The ability to set a profile background is gone... but I guess this has been superseded by the cover feature NOT A BUG
    • The nested bulleted lists are broken for Announcements; they show the [*] bbcode as plaintext FIXED
    • Embedded downloads (ie the one embedded in this very post) show "0 comments", even though there's no way to comment on download pages FIXED
    • The navigation links for IRC and moderation logs are gone WON'T FIX
    • There is no margin in between the green star icon of featured topics and the title of said topics in the sidebar widget. We could give it a margin-right of ~4px but since the widget already says "featured" it's redundant, so I feel this icon should just be removed or hidden from the widget. FIXED
×
×
  • Create New...

Important Information

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