Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-07-2011, 06:55 PM
iBeatz iBeatz is offline
Kavan
iBeatz's Avatar
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
iBeatz will become famous soon enough
Send a message via Yahoo to iBeatz
Cool Staff Console

Okay, so I was bored and decided to put this little thing together.
It is a staff console, obviously intended for those who run a server and are entrusted with NC rights.
I'll explain each of the features as they appear in the GUI.

The first feature is a player list, which offers basic operations like warping, summoning and viewing the player profile. You can also warp a selected player to a level from the level list, which is coming next.



The second feature is a level list, which basically shows all the levels on the server and allows you to warp to them, or warp another player to one of them.



The third feature is a weapons list, and lists all the weapons on the server. You can equip and unequip the weapons, give them to other players and take them from other players, which I feel is far handier than opening their attributes and removing it.
Also, the red and green colors at the side of the weapon names indicate whether you have that weapon in your attributes or not. (Green means that the weapon is in your attributes, red means it isn't.)



The last tab simply lists some server statistics, such as level and weapons count etc.



The status updater box tells you what action you have performed after you perform it.
Also, for ease of finding something in a long list, there is also a search box at the bottom right.
And you can refresh a list too.

To open the Staff Console, press the ` button. For those of you who can't find it, it's the button above the tab button.

If you're going to use this, make sure you change the path strings for the three constants at the start of the script to make sure that the paths match those on your server.
Enjoy!
Attached Files
File Type: txt Staff Console.txt (21.1 KB, 432 views)
__________________

Intelligence without ambition is like a bird without wings.


Last edited by iBeatz; 06-07-2011 at 07:08 PM..
Reply With Quote
  #2  
Old 06-07-2011, 07:16 PM
JesusFreak250 JesusFreak250 is offline
Vendetta
Join Date: Nov 2010
Location: United Kingdom
Posts: 262
JesusFreak250 will become famous soon enough
this is awsome!
Reply With Quote
  #3  
Old 06-07-2011, 09:16 PM
fatcat123 fatcat123 is offline
Levels Artist
fatcat123's Avatar
Join Date: Aug 2010
Location: Wisconsin
Posts: 70
fatcat123 is an unknown quantity at this point
niiiice

Awesome man (=. I'm thinking you should apply for Scripting on Classic iPhone :O.
Reply With Quote
  #4  
Old 06-07-2011, 10:18 PM
trimaster trimaster is offline
Unholy Nation Levels Team
trimaster's Avatar
Join Date: Jul 2007
Location: Oklahoma City
Posts: 30
trimaster is an unknown quantity at this point
By far the best Staff Console I've seen yet! . This would be soo handy for staff but would mainly be a great benefit to servers such as UN, Zodiac, Era, iPhone Classic, and iPhone Era =)
Reply With Quote
  #5  
Old 06-07-2011, 10:55 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Nice job with the UI
__________________
Reply With Quote
  #6  
Old 06-07-2011, 11:24 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by trimaster View Post
By far the best Staff Console I've seen yet! . This would be soo handy for staff but would mainly be a great benefit to servers such as UN, Zodiac, Era, iPhone Classic, and iPhone Era =)
Going have to dispute your benefit claim...

The players list (hell even the official one is too) is unfeasible for iPhone servers, levels and weapons list (See NC and File Manager for that) isn't of any real use to me either. Players online is also displayed on the player-list or RC, players in the level is the only semi-useful statistic, and the other counts don't really matter much.

None the less I'm sure iBeatz learned quite a bit while making this and he did a nice job with the UI. Double spacing for indents couldn't hurt either.
__________________
Quote:
Reply With Quote
  #7  
Old 06-07-2011, 11:58 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Neat work.

I think if you want to really package this into something that could go into production, try to focus on what fowlplay mentioned, mainly: scaling issues. What happens when there are hundreds or thousands of players and levels?

It's an interesting design challenge and I'd like to see if you could come up with anything that preserves browsability without making it really annoying to use and/or complicated.
Reply With Quote
  #8  
Old 06-08-2011, 12:04 AM
iBeatz iBeatz is offline
Kavan
iBeatz's Avatar
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
iBeatz will become famous soon enough
Send a message via Yahoo to iBeatz
Quote:
Originally Posted by fowlplay4 View Post
None the less I'm sure iBeatz learned quite a bit while making this
I did actually, yes.
A couple of things like the isExternal boolean, the use of loadfolder() and a couple of other things. What really annoyed me was I could NEVER get loadlines() or loadstring() to work.
Was just a bit of fun really, but I'm sure someone will find use in it somewhere like me, because it's really just a shortcut to everything and my computer can get pretty slow at times, so it's handy sometimes. Nothing really stand-outish about it though.
I suppose it could be used if your subscription runs out and you can't warp or anything like that possibly.

Thanks for the feedback everyone.
__________________

Intelligence without ambition is like a bird without wings.

Reply With Quote
  #9  
Old 06-08-2011, 01:03 AM
alskdjfhg alskdjfhg is offline
alskdjfhg
Join Date: Apr 2009
Posts: 192
alskdjfhg is on a distinguished road
JesusFreak the guy I caught hacking on UN! Awesome!
Reply With Quote
  #10  
Old 07-19-2011, 04:05 AM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
I like it, just that I don't think it has a purpose. If it could edit weapons and all. Then maybe I would like it more. I just want to know how you displayed an image in the text row
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote
  #11  
Old 07-19-2011, 05:02 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Astram View Post
I just want to know how you displayed an image in the text row
Have you tried looking at the script?
__________________
Reply With Quote
  #12  
Old 07-19-2011, 02:26 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by Astram View Post
If it could edit weapons and all.
Since there are different opinions about that, why don´t you just use client RC...
__________________
MEEP!
Reply With Quote
  #13  
Old 07-19-2011, 06:22 PM
iBeatz iBeatz is offline
Kavan
iBeatz's Avatar
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
iBeatz will become famous soon enough
Send a message via Yahoo to iBeatz
I've seen a lot of people use this script and a server use it too, so I thought I may as well work on it some more if people are using it.
In this update, I've fixed the scaling issues for the levels somewhat by turning it into a treeview, which separates levels from gmaps (and all the level files contained in the gmap).
If you find any errors, let me know and if you would like to offer any suggestions as to how this could be made any better in any way, just hit me up with a forum PM.
Attached Files
File Type: txt Staff Console v1.01.txt (22.6 KB, 200 views)
__________________

Intelligence without ambition is like a bird without wings.

Reply With Quote
  #14  
Old 07-19-2011, 06:24 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Can´t take a look at it but it sounds good
__________________
MEEP!
Reply With Quote
  #15  
Old 07-19-2011, 06:32 PM
fatcat123 fatcat123 is offline
Levels Artist
fatcat123's Avatar
Join Date: Aug 2010
Location: Wisconsin
Posts: 70
fatcat123 is an unknown quantity at this point
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.