Custom PLvL ?

A place where you can talk about anything Dawn of Light or DAOC related

Moderators: Project Admin, Support Team

Custom PLvL ?

Postby Tralon » Fri Feb 21, 2014 2:24 pm

Is it possible to add custom plvls with limited cmds
????

best regards
(x)====|X|xxxxxxxxxxxxxxxxxxxxxxx>
Tralon
DOL Experienced
 
Posts: 176
Joined: Tue Jan 29, 2013 2:52 pm

Re: Custom PLvL ?

Postby Ephemeral » Fri Feb 21, 2014 7:40 pm

Yes and no, but there's a branch on the DOL svn that has some work I did in rewriting the privilege system


On the yes.

Yes you can, but it is ridiculously complicated to do.

On the no.

Really, it isn't worth trying to do unless you're rather versed in the DOL core, and if you were; you wouldn't be asking this question.


But if you feel like trying to merge my branch for privilege 2.0 into your game core, then feel free, its relatively straightforward and easy to figure out (assuming not too many things have changed)
"The swarm is always smarter, faster and more adept than any actor which seeks to thwart it."
C++, Java, C#, VB.NET, ASM.
Current Project:
Engine Developer for The Red Solstice
User avatar
Ephemeral
DOL Freak
 
Posts: 554
Joined: Wed Mar 30, 2011 12:23 am

Re: Custom PLvL ?

Postby Tralon » Sat Feb 22, 2014 12:45 am

ok thx and yes i need to find myself a bit to dol core and so on, i will try to learn by myself and maybe later i can start with plvl custom ids
(x)====|X|xxxxxxxxxxxxxxxxxxxxxxx>
Tralon
DOL Experienced
 
Posts: 176
Joined: Tue Jan 29, 2013 2:52 pm

Re: Custom PLvL ?

Postby dargon » Sat Feb 22, 2014 1:44 am

its actually pretty easy to add new plvls just time consuming
Mannik: Admin of Forsaken Worlds Reborn
dargon
DOL Follower
 
Posts: 451
Joined: Sun Apr 15, 2007 6:55 pm

Re: Custom PLvL ?

Postby Tralon » Sat Feb 22, 2014 2:13 am

yeah i will have a look at it and if i got it by myself
i can help other newcomer
(x)====|X|xxxxxxxxxxxxxxxxxxxxxxx>
Tralon
DOL Experienced
 
Posts: 176
Joined: Tue Jan 29, 2013 2:52 pm

Re: Custom PLvL ?

Postby Ephemeral » Sat Feb 22, 2014 2:17 am

Your best bet time wise is to take the existing plvl 2.0 code and port it into your core, it is pretty much done (except for param-privileges and a more verbose /priv command)


As A side note, I'm bored and feeling like some C# so I think I'll come back and finish it.
"The swarm is always smarter, faster and more adept than any actor which seeks to thwart it."
C++, Java, C#, VB.NET, ASM.
Current Project:
Engine Developer for The Red Solstice
User avatar
Ephemeral
DOL Freak
 
Posts: 554
Joined: Wed Mar 30, 2011 12:23 am

Re: Custom PLvL ?

Postby Tralon » Sat Feb 22, 2014 2:50 am

plvl 2.0 `? and np
(x)====|X|xxxxxxxxxxxxxxxxxxxxxxx>
Tralon
DOL Experienced
 
Posts: 176
Joined: Tue Jan 29, 2013 2:52 pm

Re: Custom PLvL ?

Postby Ephemeral » Sat Feb 22, 2014 2:58 am

https://svn.code.sf.net/p/dolserver/cod ... Privilege/

That, but I'll finish it ina week or so and ask Graveen if I can shove it into the trunk.



And for how you do groups..

Image
"The swarm is always smarter, faster and more adept than any actor which seeks to thwart it."
C++, Java, C#, VB.NET, ASM.
Current Project:
Engine Developer for The Red Solstice
User avatar
Ephemeral
DOL Freak
 
Posts: 554
Joined: Wed Mar 30, 2011 12:23 am

Re: Custom PLvL ?

Postby Tralon » Sat Feb 22, 2014 5:57 pm

k quite interesting
(x)====|X|xxxxxxxxxxxxxxxxxxxxxxx>
Tralon
DOL Experienced
 
Posts: 176
Joined: Tue Jan 29, 2013 2:52 pm

Re: Custom PLvL ?

Postby dargon » Sat Feb 22, 2014 8:20 pm

Looks like Plvl 2.0 will be a good new addition.. I may take a look at it some time, haha
Mannik: Admin of Forsaken Worlds Reborn
dargon
DOL Follower
 
Posts: 451
Joined: Sun Apr 15, 2007 6:55 pm

Re: Custom PLvL ?

Postby Kataract » Mon Jun 23, 2014 5:40 pm

Hi,

It´s not hard to add plvl using the standard version of DOL.

Just modify globalConstant.cs in GameServer.
You Will find lines with GM = 2, Admin =3.

If you want to add a plvl like animator just add these line
Animator = number.

Btw if you set animator= 4, it Willl give more right than admin.
Do it should looks like,

Player = 1
Animator = 2
GM = 3
HeadGM = 4
Developer = 5
CoAdmin = 6
Admin = 7

This is an example :)

And dont forget to modify /whogm command or gm Will be seen as admin and admin as nothing ^^.
Pour aller de l'avant, il faut prendre du recul
Car prendre du recul, c'est prendre de l'élan
Kataract
Server Representative
 
Posts: 116
Joined: Fri Jul 22, 2011 6:01 pm

Re: Custom PLvL ?

Postby Tralon » Mon Jun 23, 2014 6:52 pm

ok so just modify the globalconstants and its fine ?
but whats with commands ?

best regards
(x)====|X|xxxxxxxxxxxxxxxxxxxxxxx>
Tralon
DOL Experienced
 
Posts: 176
Joined: Tue Jan 29, 2013 2:52 pm

Re: Custom PLvL ?

Postby Kataract » Mon Jun 23, 2014 8:28 pm

When players do /who gm they only see gm or admin. If you want to see the other rank, you have to add them.
Pour aller de l'avant, il faut prendre du recul
Car prendre du recul, c'est prendre de l'élan
Kataract
Server Representative
 
Posts: 116
Joined: Fri Jul 22, 2011 6:01 pm

Re: Custom PLvL ?

Postby Tralon » Mon Jun 23, 2014 9:02 pm

nah i mean like commands /mob
and so on
(x)====|X|xxxxxxxxxxxxxxxxxxxxxxx>
Tralon
DOL Experienced
 
Posts: 176
Joined: Tue Jan 29, 2013 2:52 pm

Re: Custom PLvL ?

Postby Kataract » Tue Jun 24, 2014 12:06 pm

I'll show you an example of what you should do ^^
*

We imagine that you want to add 3 ranks : Animator, Worldbuild-GM and GM.

The animator will have some commands, worldbuild more commands (including /mob etc) and GM all the other commands.

It should looks like :

GlobalConstant.cs
Code: Select all
public enum ePrivLevel : uint { /// <summary> /// Normal player /// </summary> Player = 1, /// <summary> /// VIP /// </summary> Animator = 2, /// <summary> /// Animator /// </summary> WorldGM = 3, /// <summary> /// Animator /// </summary> GM = 4, /// <summary> /// Animator /// </summary> Admin= 5 },
Then modify your commands like this :
Code: Select all
namespace DOL.GS.Commands { [CmdAttribute( "&announce", ePrivLevel.Animator, "GMCommands.Announce.Description", "GMCommands.Announce.Usage")]
With this modification, all the ranks higher than Animator (plvl 2) will have access to this command.

For the WorldBuild-GM :
Code: Select all
namespace DOL.GS.Commands { [Cmd("&mob", //command to handle ePrivLevel.WorldGM, //minimum privelege level
Now, only WorldGM and higher will have the access to this commands (plvl 3 +).

I hope it helped you

PS : Here is the thing concerning the /whogm

When you do /who gm ingame, it appears like this :

Playername level guild <GM>
Playername level guild <Admin>

But you won't see

Playername level guild <Animator>
Playername level guild <WorldBuild GM>

If you want to see this, you have to modify this line in Player Commands/Who.cs :
Code: Select all
if (player.Client.Account.PrivLevel == (uint)ePrivLevel.Animator) { result.Append(" <Animator>"); } if (player.Client.Account.PrivLevel == (uint)ePrivLevel.GM) { result.Append(" <GM>"); } if(player.Client.Account.PrivLevel == (uint)ePrivLevel.WorldGM) { result.Append(" <WorldBuild GM>"); } if (player.Client.Account.PrivLevel == (uint)ePrivLevel.Admin) { result.Append(" <Admin>"); }

Now, you have all the utils to make custom plvl :)
Pour aller de l'avant, il faut prendre du recul
Car prendre du recul, c'est prendre de l'élan
Kataract
Server Representative
 
Posts: 116
Joined: Fri Jul 22, 2011 6:01 pm


Return to “%s” General

Who is online

Users browsing this forum: No registered users and 1 guest