Hercules Battlegrounds

@Smoke

I want to create a command called @hidebgmsg to hide announces from BG I did this modifications:
On line 90 I add this:
 

bindatcmd "esconderbc","BG_Queue_Handler::OnDoHideMsg",0,99;



On line 165 I add this:

OnDoHideMsg:
if(hideBcMsg == 1){
set hideBcMsg,0;
dispbottom "[As mensagens da batalha campal foram ativadas!]";
}
else{
set hideBcMsg,1;
dispbottom "[As mensagens da batalha campal foram desativadas!]";
}
end;


And on line 274 I put a if like this:
 

if(hideBcMsg != 1){
announce .@msg$,0,.BG_Color$[$BG_Index],0x190,12,100,100;
}


When I start the server and check the logs i get this msg:
[Warning]: script_get_val: cannot access player variable 'hideBcMsg', defaulting to 0

What am I missing here? could you help me? =)

 
Yes I've tried that and cannot reproduce it.
hmmm, it's weird

this is a Char Server error and i'm using latest revision of hercules and this plugin

this only happen while in battleground and when do char select

this error does not show after doing alt+f4 only after doing char select.

What do you think what is problem?

 
hmmm, it's weird

this is a Char Server error and i'm using latest revision of hercules and this plugin

this only happen while in battleground and when do char select

this error does not show after doing alt+f4 only after doing char select.

What do you think what is problem?
There were some memory leaks that were untreated before, the recent PRs made it worse but its fixed now.

As for the char server error, it's been fixed too. All in the latest commit.

https://github.com/Smokexyz/HerculesBG/commit/66f69ef1a1f23c67b959cbe89124434a693df66b

 
Char Server error still exist

this one damn sticky error  :o
Uhm, how did you reproduce? Logout is fine for me, no errors.

 
Last edited by a moderator:
First after do Char Select from running BG mode it send to character selection screen, now it send to login screen and show msg 'server still recognizes your last login'. 

 
It is some sort of race condition that can't be fixed through just plugins I think (or something silly that I can't see yet), I'll debug it further in the next few weeks.

 
Last edited by a moderator:
I'm trying to figure out a way to block healing items and skill when player has flag or stone, but it seems there is no script command that will block use of skill and items on flag. sc_end just end skill effect once and disable_items is for disable switching of items. 

@Smoke Maybe u know what script command will do that. 

 
btw bro do you have any idea to fix the set_guild_emblem and set_guild_id error bro

 
I'm trying to figure out a way to block healing items and skill when player has flag or stone, but it seems there is no script command that will block use of skill and items on flag. sc_end just end skill effect once and disable_items is for disable switching of items. 

@Smoke Maybe u know what script command will do that. 
any update on this @Smoke, due to use of skills and item's while carrying flag or stone players easily able to capture it. like stalker, assassin cross carrying flag in clock, chase walk mode. It affect many battleground modes like 3 to 4. 

 
@Smoke any update buddy?
Can you post the problem? If is the missing parameter problem for quest->add (line 1652 and line 2991) you can simply add 0 as the last parameter and it'll work just fine.

Code:
quest->add(sd, quest_id, 0)
 
well, those warning message not a big problem.

 
Last edited by a moderator:
Back
Top