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

@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

Share this post


Link to post
Share on other sites
On 7/6/2020 at 5:48 PM, astralprojection said:

@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?

 

13 hours ago, rans said:

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

BG Type?

Share this post


Link to post
Share on other sites
On 7/6/2020 at 5:48 PM, astralprojection said:

@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.

Share this post


Link to post
Share on other sites
On 7/12/2020 at 10:00 PM, Dastgir said:

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.

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. 

Share this post


Link to post
Share on other sites

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 

 

 

Edited by Caspian

Share this post


Link to post
Share on other sites
On 7/18/2020 at 2:44 AM, rans said:

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

Share this post


Link to post
Share on other sites
On 7/18/2020 at 9:39 PM, Dastgir said:

I will check this one

Is this fixed yet?

 

Share this post


Link to post
Share on other sites
On 8/30/2020 at 2:39 PM, M45T3R said:

Is this fixed yet?

 

It should be working, if not please post snippet of what's changed.

Share this post


Link to post
Share on other sites
On 5/23/2020 at 12:00 PM, Dastgir said:

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?

Edited by Psyz

Share this post


Link to post
Share on other sites
On 9/24/2020 at 9:20 PM, Psyz said:

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

Share this post


Link to post
Share on other sites
6 hours ago, Dastgir said:

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.

Share this post


Link to post
Share on other sites

@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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

@Dastgir

Share this post


Link to post
Share on other sites

 

40 minutes ago, sonyk2 said:

270415143_Semttulo.thumb.png.ffd3bd11ce820d7032119f24f50f4e1a.png

Try to make this in src conf/plugins.conf and recompile

plugins_list: [
	/* Enable HPMHooking when plugins in use rely on Hooking */
	"HPMHooking",
	//"db2sql",
	//"sample",
	//"other",
	"ExtendedBG",
	"ExtendedBG-char"
	
]

 

Edited by Daraen

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.