Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 08:57

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How can i do this...?

Discussion on How can i do this...? within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
Xenok5's Avatar
 
elite*gold: 0
Join Date: May 2015
Posts: 33
Received Thanks: 1
Exclamation How can i do this...?

Anyone knows a way to increase the maximum group members? Now is 3 i want to increase it to 5 if it's possible.

Like this:

Regards, NosSacred Team.
Xenok5 is offline  
Old 12/31/2017, 19:00   #2
 
elite*gold: 110
Join Date: Jun 2016
Posts: 579
Received Thanks: 197
Quote:
Originally Posted by Xenok5 View Post
Anyone knows a way to increase the maximum group members? Now is 3 i want to increase it to 5 if it's possible.

Like this:

Regards, NosSacred Team.
opennos.gameobject/networking/servermanager.cs line 1341, 1342, 1343, 1344

Code:
        public bool IsCharactersGroupFull(long characterId)
        {
            return Groups != null && Groups.Any(g => g.IsMemberOfGroup(characterId) && g.CharacterCount == (byte)g.GroupType);
        }
change by

Code:
        public bool IsCharactersGroupFull(long characterId)
        {
            return Groups != null && Groups.Any(g => g.IsMemberOfGroup(characterId) && g.CharacterCount == 5);
        }
Fizo55 is offline  
Thanks
1 User
Old 01/01/2018, 14:32   #3
 
Xenok5's Avatar
 
elite*gold: 0
Join Date: May 2015
Posts: 33
Received Thanks: 1
Oh, thank you, but, it increase the gain XP, or it decrease? If you know if it makes any bugg or something i'll be glad to read it xD

PD: Thank you <3
Xenok5 is offline  
Old 01/01/2018, 15:29   #4
 
elite*gold: 0
Join Date: Jun 2017
Posts: 119
Received Thanks: 138
Quote:
Originally Posted by Xenok5 View Post
Oh, thank you, but, it increase the gain XP, or it decrease? If you know if it makes any bugg or something i'll be glad to read it xD

PD: Thank you <3
Do not use @ code if you want to run your server correctly, you just have to change the GroupType.
On this code, you fix the amount of players to 5 without considering which GroupType is your group.
Which means that you will run a raid with only 5 guys max. (with hugo's piece of code)

Not recommended solution
Code:
public bool IsCharactersGroupFull(long characterId)
        {
            const int normalGroupMembersCount = 5;
            return Groups != null && Groups.Any(g => g.IsMemberOfGroup(characterId) && 
                (g.CharacterCount == (g.GroupType == GroupType.Group ? normalGroupMembersCount : (byte)g.GroupType)));
        }
Better solution
Code:
public enum GroupType : byte
    {
        Group = 3, // HERE YOU CHANGE GROUP BY YOUR VALUE
        CustomGroup = 6, // HERE YOU ADD ANOTHER GROUP TYPE but, depends on the sources you'r using
        Team = 15,
        BigTeam = 20,
        GiantTeam = 40,
        IceBreaker = 50
    }
Or you can add, as on my code "CustomGroup" but you'll have to change every single call of GroupType.Group in your code to GroupType.CustomGroup.

However, you can too add a property for MaxCharacters that does not change the GroupType enum, it's free to you on that.
There is no "best solution" in your case, there are many way to do it, the fact is you'll require more experience to find a maintainable way to do it.


There are many options, you'r free to use the one you prefer, but do not break your Group class utilities as it's used for raids aswell.

Regards,
Blowa.
BlowaXD is offline  
Thanks
2 Users
Reply

Tags
nossacred, nostale, opennos, party, server


Similar Threads Similar Threads
Question [HELP ITEM MALL]Some Avatars I can see but can't buy others I can
07/14/2013 - SRO Private Server - 0 Replies
Using a VSRO I followed this guide and ran the search query in that guide to check if the items were in the database. The search came back and it showed that the items were in the database so I skipped the step with the query to add items into the database. I moved on to the step with the query to add items into the item mall. I ran the query and set the servicetag to 1 and the saletag to 0. I tried buying the item again from the mall and it did not work. So I checked the saletag of...
PLEASE......CAN SOMEONE CAN GIVE ME AN ENGINE THAT CAN'T BE DETECTED...
12/30/2009 - Grand Chase Hacks, Bots, Cheats & Exploits - 3 Replies
...GIVE ME AN ENGINE THAT IS N0T DETECTED..... KAHIT NA PANG 5 DAYS LANG !^^...IF YOU ARE FINISH TO READ YOU CAN CLOSED THIS THREAD....>.<:):):):):)
Can someone tell me where I can get...
02/29/2008 - Conquer Online 2 - 4 Replies
a free program to record my desktop. I've seen some videos on this site, but I can't seem to find em anymore.
Who can find ProtocolVersion can teach me
02/22/2005 - Lineage 2 - 1 Replies
Who can find ProtocolVersion can teach me. Please teach me. :cry: ///////////////////////////////////////////////// //// LoginServerIP = 61.90.252.193 LoginServerPort = 2106 ProtocolVersion = *** Please teach me ///////////////////////////////////////////////// ////



All times are GMT +1. The time now is 08:57.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.