[Question]How can i disable the Nevit's Blessing window?

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
takhs7
Posts: 110
Joined: Sun Aug 31, 2008 7:16 am

[Question]How can i disable the Nevit's Blessing window?

Post by takhs7 »

Hey guys,

So yeah.. i need to disable this since its useless in a high rate server and it only gets annoying having to close it every time you login.. (not to mention that its not implemented yet anyways.. is it?)

in a revision about a month ago (or so) it was not appearing if i remember correctly.. so im guessing it should be easy to disable it (hopefully).

(screenshot if u didnt get of what im talking about)
Image

what file should i look at? i had no luck finding it in enterworld.java


edit:
sigh... never mind found it on enterworld.. sendPacket(new ExVoteSystemInfo(activeChar));
exvotesystem.. lol :roll:
s5n4K3s
Posts: 5
Joined: Thu Jul 16, 2009 9:06 pm

Re: [Question]How can i disable the Nevit's Blessing window?

Post by s5n4K3s »

Is safe to remove
sendPacket(new ExVoteSystemInfo(activeChar));
line?
"There is no 'patch' for stupidity"
Heopas
Posts: 26
Joined: Wed Dec 29, 2010 8:46 am

Re: [Question]How can i disable the Nevit's Blessing window?

Post by Heopas »

If you just remove that line, you will not be able to see it at char login. But you will see it *poping out* when someone rec you. Remove that line and search at RecoBonus to disable poping at rec too.

P.S. Sorry for bad english.
hope
Posts: 1160
Joined: Thu Aug 30, 2007 5:17 pm

Re: [Question]How can i disable the Nevit's Blessing window?

Post by hope »

all you had to do was to turn off the quest lol
s5n4K3s
Posts: 5
Joined: Thu Jul 16, 2009 9:06 pm

Re: [Question]How can i disable the Nevit's Blessing window?

Post by s5n4K3s »

hope wrote:all you had to do was to turn off the quest lol
Which quest? i try commenting

Code: Select all

 # Retail#~ retail/PriestOfBlessing/PriestOfBlessing.java 
in scripts.cfg, but without success :(
"There is no 'patch' for stupidity"
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: [Question]How can i disable the Nevit's Blessing window?

Post by JMD »

Tried all kinds of things, i managed to remove it on login but when someone recs you it still pops up, is there a way to remove it properly? Since its no finished i believe it should at least be disabled with configs.
User avatar
Pandragon
Posts: 704
Joined: Tue Jul 26, 2005 7:38 pm

Re: [Question]How can i disable the Nevit's Blessing window?

Post by Pandragon »

Delete packet ExVoteSystemInfo.java
Delete all lines with errors after that.
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: [Question]How can i disable the Nevit's Blessing window?

Post by JMD »

pandragon wrote:Delete packet ExVoteSystemInfo.java
Delete all lines with errors after that.
I was hoping the solution not to be that extreme but i'll take it, thanks.
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: [Question]How can i disable the Nevit's Blessing window?

Post by JMD »

Here i made a patch for it.

https://gist.github.com/JMD13/5607722
User avatar
Szponiasty
Advanced User
Advanced User
Posts: 557
Joined: Mon Apr 21, 2008 1:31 pm
Location: Eastern Poland

Re: [Question]How can i disable the Nevit's Blessing window?

Post by Szponiasty »

U could do that with 2 lines of code in L2PcInstance ;p

Code: Select all

     /**     * Send a Server->Client packet StatusUpdate to the L2PcInstance.<BR><BR>     */    @Override    public void sendPacket(L2GameServerPacket packet)    {        if (packet != null)        {            if (packet instanceof ExVoteSystemInfo)                return; 
And in the next chronicle they went into space, fighting the evil empire... In a galaxy far, far away xD
Okari
Posts: 56
Joined: Mon Feb 08, 2010 1:56 pm

Re: [Question]How can i disable the Nevit's Blessing window?

Post by Okari »

Adding a test on every packet send is a very bad idea. An instanceof check even more so. It adds a lot of useless overhead.

Commenting out all occurences of ExVoteSystemInfo is the best solution imo.
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: [Question]How can i disable the Nevit's Blessing window?

Post by Zoey76 »

Hehe, I think the fastest and cleaner solution would be to remove data written on client in ExVoteSystemInfo :

Code: Select all

- writeC(0xFE);- writeH(0xC9);- writeD(_recomLeft);- writeD(_recomHave);- writeD(_bonusTime);- writeD(_bonusVal);- writeD(_bonusType);
Powered by Eclipse 4.34 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
User avatar
Szponiasty
Advanced User
Advanced User
Posts: 557
Joined: Mon Apr 21, 2008 1:31 pm
Location: Eastern Poland

Re: [Question]How can i disable the Nevit's Blessing window?

Post by Szponiasty »

Okari wrote:Adding a test on every packet send is a very bad idea. An instanceof check even more so. It adds a lot of useless overhead.

Commenting out all occurences of ExVoteSystemInfo is the best solution imo.
Nah. It doesn't do any noticeable difference and I have long list of instance checks in packet broadcaster :) But I agree with Zoey - better solution :D
And in the next chronicle they went into space, fighting the evil empire... In a galaxy far, far away xD
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: [Question]How can i disable the Nevit's Blessing window?

Post by UnAfraid »

I wouldn't even touch it.
Image
Okari
Posts: 56
Joined: Mon Feb 08, 2010 1:56 pm

Re: [Question]How can i disable the Nevit's Blessing window?

Post by Okari »

UnAfraid wrote:I wouldn't even touch it.
Well, if you want to deactivate Nevit's Blessing and get rid of the window, you kinda have to.
Szponiasty wrote:It doesn't do any noticeable difference
While it is true that you might not notice it in that case, it is still important to avoid such things. Because developing software (especially servers) with that logic will lead to poor program performance.
Negligible impact + negligible impact + negligible impact + ... = noticeable impact.
Post Reply