Mirage Source http://www.miragesource.net/forums/ |
|
Staff Online Feature http://www.miragesource.net/forums/viewtopic.php?f=183&t=4449 |
Page 1 of 46 |
Author: | Nean [ Wed Sep 24, 2008 11:01 pm ] |
Post subject: | Staff Online Feature |
So, once again, I was bored. To test myself, I made this. How it works, is when you type /staff, it displays all the people that have > 0 access, that are online. Once more, this is just a rip and edit, of an already existing feature (Whos Online). Yeah, I know. I'm a n00b. When this is done, just type /staff, and it displays what staff members are online! GASP. Amazing rite? SPOILER: (click to show)
|
Author: | GIAKEN [ Wed Sep 24, 2008 11:10 pm ] |
Post subject: | Re: Staff Online Feature |
You should really try and do something from scratch. It's alright to copy stuff, but then look through it and understand exactly how it works and repeat the steps to yourself. Like: "Alright so this code loops through every player, checks their access, if it's greater than 0 blah blah blah" Why do you think Elysium and rip offs of MS were so shitty? Because all they did was copy shit and didn't try to improve it and so on. |
Author: | Nean [ Wed Sep 24, 2008 11:18 pm ] |
Post subject: | Re: Staff Online Feature |
GIAKEN wrote: You should really try and do something from scratch. It's alright to copy stuff, but then look through it and understand exactly how it works and repeat the steps to yourself. Like: "Alright so this code loops through every player, checks their access, if it's greater than 0 blah blah blah" Why do you think Elysium and rip offs of MS were so shitty? Because all they did was copy shit and didn't try to improve it and so on. Yeah, I know. But I'm horrible at coding from scratch, and I never really think of anything to code, until I see something like the whos online, and then, I think "hey, this would be a good basis for this". I'm new at this, and I don't really seem to be getting better at coding from scratch. I do understand how most of this works, I'm just not very creative. |
Author: | GIAKEN [ Wed Sep 24, 2008 11:22 pm ] |
Post subject: | Re: Staff Online Feature |
It doesn't take creativity really...only when thinking of things to do. Your creativity came into play with the command, then you decide how it should be done. Example: Player types /staff, send packet to server, server processes and does the loop through the accesses, put results in playermsg, done. |
Author: | Jacob [ Wed Sep 24, 2008 11:24 pm ] |
Post subject: | Re: Staff Online Feature |
This won't work in the latest version of MS4. |
Author: | James [ Thu Sep 25, 2008 5:30 pm ] |
Post subject: | Re: Staff Online Feature |
Change it so that when a staff member logs in their name is added to an array or something, then jsut grab from the array. MUCH faster than searching through every player. |
Author: | wanai [ Wed Dec 29, 2021 9:07 pm ] |
Post subject: | Re: Staff Online Feature |
Econ |
Author: | wanai [ Wed Dec 29, 2021 9:08 pm ] |
Post subject: | Re: Staff Online Feature |
58.39 |
Author: | wanai [ Wed Dec 29, 2021 9:09 pm ] |
Post subject: | Re: Staff Online Feature |
Bett |
Author: | wanai [ Wed Dec 29, 2021 9:10 pm ] |
Post subject: | Re: Staff Online Feature |
Bett |
Author: | wanai [ Wed Dec 29, 2021 9:11 pm ] |
Post subject: | Re: Staff Online Feature |
Pass |
Author: | wanai [ Wed Dec 29, 2021 9:12 pm ] |
Post subject: | Re: Staff Online Feature |
Dash |
Author: | wanai [ Wed Dec 29, 2021 9:13 pm ] |
Post subject: | Re: Staff Online Feature |
XVII |
Author: | wanai [ Wed Dec 29, 2021 9:15 pm ] |
Post subject: | Re: Staff Online Feature |
Edit |
Author: | wanai [ Wed Dec 29, 2021 9:16 pm ] |
Post subject: | Re: Staff Online Feature |
Sand |
Author: | wanai [ Wed Dec 29, 2021 9:17 pm ] |
Post subject: | Re: Staff Online Feature |
MPEG |
Author: | wanai [ Wed Dec 29, 2021 9:18 pm ] |
Post subject: | Re: Staff Online Feature |
SOCO |
Author: | wanai [ Wed Dec 29, 2021 9:19 pm ] |
Post subject: | Re: Staff Online Feature |
Prem |
Author: | wanai [ Wed Dec 29, 2021 9:20 pm ] |
Post subject: | Re: Staff Online Feature |
Clas |
Author: | wanai [ Wed Dec 29, 2021 9:21 pm ] |
Post subject: | Re: Staff Online Feature |
Wind |
Author: | wanai [ Wed Dec 29, 2021 9:22 pm ] |
Post subject: | Re: Staff Online Feature |
Turb |
Author: | wanai [ Wed Dec 29, 2021 9:23 pm ] |
Post subject: | Re: Staff Online Feature |
Peer |
Author: | wanai [ Wed Dec 29, 2021 9:25 pm ] |
Post subject: | Re: Staff Online Feature |
Loui |
Author: | wanai [ Wed Dec 29, 2021 9:26 pm ] |
Post subject: | Re: Staff Online Feature |
Deko |
Page 1 of 46 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |