SphereCommunity
Default Command Level - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Default Command Level (/Thread-Default-Command-Level)



Default Command Level - pointhz - 06-02-2016 06:58 AM

Hi guys,

I was setting up a local sphere server and noticed that even without any PLEVEL set to my account (PLEVEL=0), I can still use some functions which doesn't even have any PLEVEL set.

What I mean is:

I have this on my sphere.INI:

Quote:// Set from 0 - 7 to set what the default plevel is to use commands.
DefaultCommandLevel=4


Although, if I script this:

Quote:[FUNCTION f_fun_pvp]
src.sysmessage lol

I can use this function, even without any PLEVEL assigned to my account or to the function.

Typing "f_fun_pvp" will return "lol" to my character.

How the hell can this be possible? And why does it only happen with f_ starting functions? If the function is "fun_pvp" only (without the f_), it does not happen, and typing the function will just display it above my head like any normal message.

Wtf?


RE: Default Command Level - pointhz - 06-03-2016 10:25 PM

No one has a clue about this? :/


RE: Default Command Level - Criminal - 06-04-2016 02:49 AM

did you try use with a new account?


RE: Default Command Level - pointhz - 06-04-2016 04:24 AM

Yes. Accounts have no PLEVEL but can access those functions starting with f_. It totally makes no sense lol


RE: Default Command Level - Ben - 06-05-2016 12:30 AM

Could be a parsing issue. Do you have any function starting with f_ under the PLEVEL1 command block?