Jump to content
Dastgir

[Release] ExtendedBG for Hercules (with eAmod BG modes)

Recommended Posts

5 hours ago, Strow said:

Yes sir I followed that but on this part not sure if I am doing it right to compile.
Plugins:

Copy all files in plugin folder to your herc/src/plugins folder

compile and enable 2 plugins:

ExtendedBG

ExtendedBG-char

(All other files are just includes)

Share this post


Link to post
Share on other sites

@Dastgir

Would there be more than one type of emblem per reward per match?
Example, instead of winning only from war, do you win the 3 types, war, valor and bravery?

Share this post


Link to post
Share on other sites
1 hour ago, Psyz said:

@Dastgir

Would there be more than one type of emblem per reward per match?
Example, instead of winning only from war, do you win the 3 types, war, valor and bravery?

Currently one type of reward for one type of bg, if you want to change reward for specific bg type, change from bg_common.txt

Share this post


Link to post
Share on other sites

@Dastgir Can you explain how to configure?

 

Spoiler

OnMinute00Sub: // Called by callsub
    [email protected] = true;
    // Fallthrough
OnMinute00:
    if (gettime(GETTIME_HOUR) < 4) // Don't Choose Ranked Time if it is 12:00AM ~ 4:00 AM (Less players)
        end;
    [email protected] = $BGRanked_ / 1000000;
    [email protected] = ($BGRanked_ % 1000000) / 10000;
    [email protected] = ($BGRanked_ % 10000) / 100;
    [email protected] = $BGRanked_ % 100;
    if ([email protected] == gettime(GETTIME_YEAR) && [email protected] == gettime(GETTIME_MONTH) && [email protected] == gettime(GETTIME_DAYOFMONTH)) {
        if ([email protected] == gettime(GETTIME_HOUR)) // Ranked Matches
            $BGRanked = 1;
        else // Time has passed or yet to arrive
            $BGRanked = 0;
    } else {
        [email protected] = rand(gettime(GETTIME_HOUR), 23);
        $BGRanked_ = gettime(GETTIME_YEAR) * 1000000 + gettime(GETTIME_MONTH) * 10000 + gettime(GETTIME_DAYOFMONTH) * 100 + [email protected];
        if ([email protected] == gettime(GETTIME_HOUR))
            $BGRanked = 1;
        else
            $BGRanked = 0;
    }
    if ([email protected])
        return;
    end;

 

Share this post


Link to post
Share on other sites
14 hours ago, Psyz said:

@Dastgir Can you explain how to configure?

 

  Hide contents

OnMinute00Sub: // Called by callsub
    [email protected] = true;
    // Fallthrough
OnMinute00:
    if (gettime(GETTIME_HOUR) < 4) // Don't Choose Ranked Time if it is 12:00AM ~ 4:00 AM (Less players)
        end;
    [email protected] = $BGRanked_ / 1000000;
    [email protected] = ($BGRanked_ % 1000000) / 10000;
    [email protected] = ($BGRanked_ % 10000) / 100;
    [email protected] = $BGRanked_ % 100;
    if ([email protected] == gettime(GETTIME_YEAR) && [email protected] == gettime(GETTIME_MONTH) && [email protected] == gettime(GETTIME_DAYOFMONTH)) {
        if ([email protected] == gettime(GETTIME_HOUR)) // Ranked Matches
            $BGRanked = 1;
        else // Time has passed or yet to arrive
            $BGRanked = 0;
    } else {
        [email protected] = rand(gettime(GETTIME_HOUR), 23);
        $BGRanked_ = gettime(GETTIME_YEAR) * 1000000 + gettime(GETTIME_MONTH) * 10000 + gettime(GETTIME_DAYOFMONTH) * 100 + [email protected];
        if ([email protected] == gettime(GETTIME_HOUR))
            $BGRanked = 1;
        else
            $BGRanked = 0;
    }
    if ([email protected])
        return;
    end;

 

It is currently random from 4AM-12PM.

if you need it customized. Set $BGRanked to 1 whenever you want it, and 0 to disable.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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