All pastes #773555 Raw Edit

Someone

public text v1 · immutable
·published 2007-11-14 17:00 UTC
rendered paste body
me and robboplus thought about some patch which will rewrite commands system and it will be much better so i wounder what you think about it? here is what we talked about:
[code][18:47:24] <Visagalis> i have one idea but don't know how to make it work
[18:47:45] <Visagalis> i want to do that some of my players (which i choose) could use .mute command
[18:47:56] <Visagalis> but without setting their level to 1 or 2 or 3
[18:48:21] <robboplus_> that would be great
[18:48:30] <robboplus_> like trusted semi-moderators or something
[18:48:33] <Visagalis> yeh
[18:48:38] <Visagalis> but how... :(
[18:48:47] <robboplus_> many people don't deserve gm but they could help a bit, i think exactly same
[18:49:08] <robboplus_> hm imho whole mangos command system should be re-done
[18:49:17] <robboplus_> these levels are pretty much limited
[18:49:26] <robboplus_> and i don't like it at all
[18:49:55] <robboplus_> i would recommend using bit masks or similar
[18:50:12] <robboplus_> or even a field similar to character field
[18:50:33] <robboplus_> that would allow assigning ANY command to ANY user
[18:50:49] <robboplus_> ..with some default masks available of course giving them actual level 0
[18:51:26] <robboplus_> let me know what you think and perhaps we can make a difference together and influence devs :)
[18:52:08] <robboplus_> there are so many ways that are BETTER than the current method
[18:52:20] <robboplus_> another way is "command pools"
[18:52:39] <robboplus_> that could work in similar way as sudo config in linux does
[18:52:40] <Visagalis> i wounder about system like cs
[18:52:48] <Visagalis> for example abcdefg......
[18:52:52] <robboplus_> hm
[18:52:54] <Visagalis> a will allow players to kick
[18:53:04] <Visagalis> b to use .modify commands
[18:53:05] <robboplus_> that's exactly what i think of
[18:53:06] <Visagalis> c to ...........
[18:53:15] <robboplus_> [17:50:16] <robboplus_> or even a field similar to character field
[18:53:15] <robboplus_> [17:50:37] <robboplus_> that would allow assigning ANY command to ANY user
[18:53:27] <robboplus_> imagine that the field is, say, 200 bytes long
[18:53:34] <robboplus_> each byte means diff command
[18:53:53] <robboplus_> or easier yet... a bitmask, so each byte would mean 8 diff commands
[18:54:20] <robboplus_> you would need like 20 bytes to allow selection of 20 x 8 = 160 commands to ANYONE :)
[18:56:03] <robboplus_> we could just have another column in character table
[18:56:08] <robboplus_> or in realmd even
[18:56:23] <robboplus_> with several bytes describing access to particular commands
[18:56:55] <robboplus_> i would like character better as that could allow maximum flexibility
[18:57:16] <robboplus_> so e.g. a user having 5 chars could use them on just ONE and NOT global, like account-wide
[18:58:14] <robboplus_> one thing to consider is future commands
[18:58:39] <robboplus_> so imho the mask field should be wide enough to allow e.g. 300 commands defined
[18:58:49] <robboplus_> so we never run out of space there :)
[18:59:28] <robboplus_> and with every command table upgrade the command mask patch should also be updated to include NEW masks