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

@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

 
@Dastgir Can you explain how to configure?

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

 
@Dastgir Can you explain how to configure?

OnMinute00Sub: // Called by callsub
    .@ret = true;
    // Fallthrough
OnMinute00:
    if (gettime(GETTIME_HOUR) < 4) // Don't Choose Ranked Time if it is 12:00AM ~ 4:00 AM (Less players)
        end;
    .@year = $BGRanked_ / 1000000;
    .@month = ($BGRanked_ % 1000000) / 10000;
    .@day = ($BGRanked_ % 10000) / 100;
    .@hour = $BGRanked_ % 100;
    if (.@year == gettime(GETTIME_YEAR) && .@month == gettime(GETTIME_MONTH) && .@day == gettime(GETTIME_DAYOFMONTH)) {
        if (.@hour == gettime(GETTIME_HOUR)) // Ranked Matches
            $BGRanked = 1;
        else // Time has passed or yet to arrive
            $BGRanked = 0;
    } else {
        .@hour = rand(gettime(GETTIME_HOUR), 23);
        $BGRanked_ = gettime(GETTIME_YEAR) * 1000000 + gettime(GETTIME_MONTH) * 10000 + gettime(GETTIME_DAYOFMONTH) * 100 + .@hour;
        if (.@hour == gettime(GETTIME_HOUR))
            $BGRanked = 1;
        else
            $BGRanked = 0;
    }
    if (.@ret)
        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.

 
@Dastgir there are moments that this happens
(07/06/2020 20:11:31) [ Error ] : get_variable: NULL RETURNED. 202-4
(07/06/2020 20:11:31) [ Error ] : SET_VARIABLE_ADD: Cannot Add 186 to 202 (AccountID:2001296, Name:xxruid!)
(07/06/2020 20:11:31) [ Error ] : get_variable: NULL RETURNED. 202-4
(07/06/2020 20:11:31) [ Error ] : SET_VARIABLE_ADD: Cannot Add 114 to 202 (AccountID:2001296, Name:xxruid!)

also this where some player can't get any reward at all:
(07/06/2020 20:16:54) [ Warning ] : bg_team_rewards: Cannot give x5 7773 to BG_ID: 0

 
@Dastgir there are moments that this happens
(07/06/2020 20:11:31) [ Error ] : get_variable: NULL RETURNED. 202-4
(07/06/2020 20:11:31) [ Error ] : SET_VARIABLE_ADD: Cannot Add 186 to 202 (AccountID:2001296, Name:xxruid!)
(07/06/2020 20:11:31) [ Error ] : get_variable: NULL RETURNED. 202-4
(07/06/2020 20:11:31) [ Error ] : SET_VARIABLE_ADD: Cannot Add 114 to 202 (AccountID:2001296, Name:xxruid!)

also this where some player can't get any reward at all:
(07/06/2020 20:16:54) [ Warning ] : bg_team_rewards: Cannot give x5 7773 to BG_ID: 0
BG Type?

Hello, it is currently not giving any reward. no map-server error can anyone please share fix?
BG Type?

 
@Dastgir there are moments that this happens
(07/06/2020 20:11:31) [ Error ] : get_variable: NULL RETURNED. 202-4
(07/06/2020 20:11:31) [ Error ] : SET_VARIABLE_ADD: Cannot Add 186 to 202 (AccountID:2001296, Name:xxruid!)
(07/06/2020 20:11:31) [ Error ] : get_variable: NULL RETURNED. 202-4
(07/06/2020 20:11:31) [ Error ] : SET_VARIABLE_ADD: Cannot Add 114 to 202 (AccountID:2001296, Name:xxruid!)

also this where some player can't get any reward at all:
(07/06/2020 20:16:54) [ Warning ] : bg_team_rewards: Cannot give x5 7773 to BG_ID: 0
The above error should be fixed in https://github.com/dastgirp/eBG/commit/0a80e689e78e878b561c53d490250565bd94d3d6

About rewards, which bg mode? And was there any @reloadscript command run while bg was ongoing?

More info would be appreciated.

 
I have an issue that every time I play Conquest and it randomly chooses ebg_conq03, it always crashs the client.

2oK8M5w.png


All the castles seems to be fine even If I warp to ebg_conq03 it doesn't crash. The error only happen when you are the first and second one to use @joinbg.

Does anyone have the same issue ? @Dastgir 

 
Last edited by a moderator:
Any bg mode will not give reward if i change the reward from bg_common.txt

but when I added the nameid == "my_custom_id" in extendedBG.c bg_team_rewards function it works. 
I will check this one

 
Atualmente é aleatório das 4h às 12h.

se você precisar customizado. Defina $ BGRanked como 1 sempre que quiser e 0 para desabilitar.
desculpe, mas não entendi como a mudança deveria ser.

Você poderia me dar um exemplo.

portanto, happy hour após 19 horas.

@Dastgir intend for kvm?

 
Last edited by a moderator:
desculpe, mas não entendi como a mudança deveria ser.

Você poderia me dar um exemplo.

portanto, happy hour após 19 horas.

@Dastgir intend for kvm?
It would be better if you could speak in english, as I am not sure what you mean

 
It would be better if you could speak in english, as I am not sure what you mean
Sorry, I always forget kkkk

sorry, but i didn't understand how the change should be.

Could you give me an example.

therefore, happy hour after 7 pm.

 
@Dastgir

[Warning]: bg_team_rewards: Cannot give x35 671 to BG_ID: 0
 

flavius_td

does not give the prize to the winners, or when there is a tie

 
Would be nice to have Tierra Gorge, Flavius and Krieg von Midgard converted to Extended Battleground. Then this plugin will be the most completed Battleground with all the modes ever made for Ragnarok Online.

 
My BG stopped rewarding with badges, now it only counts the ranking points, I have looked at everything else in the same way.

@Dastgir

 
Back
Top