Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-26-2009, 03:03 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
"Advanced" Graphic Uploader

I've decided to release the graphic uploader I made for Era. It's similar to this one by LoneAngelIbesu, but contains a queue, admin approval/denial, and more.

To use it, press F11 and click "Upload Graphic". Choose the graphic type, file name, and press "Browse". Select your graphic, and it will upload. It automatically checks the headers, checks to make sure the file does not already exists, and then moves it to a folder where it waits for an admin to approve it. You can view your pending, uploaded, and denied graphics as well by pressing F11.

Admins will see an extra option to moderate the queue, and they have a list of quick deny options, a custom deny reason button, an approve button, and a skip button (move on to the next item in the queue, do not approve or deny the current).

Screenshots:

Click image for larger version

Name:	graal_1256517882.png
Views:	664
Size:	17.8 KB
ID:	49693Click image for larger version

Name:	graal_1256517894.png
Views:	889
Size:	20.0 KB
ID:	49694Click image for larger version

Name:	graal_1256518013.png
Views:	606
Size:	18.1 KB
ID:	49695Click image for larger version

Name:	graal_1256518033.png
Views:	836
Size:	19.7 KB
ID:	49696Click image for larger version

Name:	graal_1256518049.png
Views:	850
Size:	13.1 KB
ID:	49697

Installation

This isn't the easiest script to add, but it's not too bad if you follow these steps:
  1. Download the images attached to this post (at the bottom; there is a dark noob head, a body template, and a head template). Upload these files to your server.
  2. Upload the script to your server and add it to everyone on login.
  3. This script assumes that you use levels/heads, levels/bodies, and levels/shields. You can change these if you like, or create the folders if you don't use them. Normally it can be left as-is.
  4. At the top of the script, add a list of admins who should be able to moderate the uploaded graphics.
  5. Open the rights of (npcserver). Add the following lines:
    Quote:
    rw personaluploads/*/*/*
    rw levels/uploads/*
    rw levels/heads/*
    rw levels/bodies/*
    rw levels/shields/*
    rw uploads/*/*
  6. Add the following lines to your folder config:
    Quote:
    file uploads/*.png
    file uploads/*.gif
  7. This script requires the server to use a prefix. At default, it is taking the lowercase first word of the server (e.g. for "Era Dev", "era"), appending an underscore ("era_"), then letting the player choose the name. This can, of course, be changed to whatever you want.
  8. Add createTable(); to the onCreated function at the top of the script. Update the script, remove the line, then update it again. You only need to to this once to create the SQLite table.

The latest version can be found here (last updated 2012/01/20 by fowlplay4).
Attached Images
   
__________________

Last edited by Skyld; 01-21-2012 at 06:54 PM..
Reply With Quote
  #2  
Old 10-26-2009, 03:27 AM
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
Yay, totally using this if Stefan ever implements that server-side TDrawingPanel functionality that will let us set transparencies.
__________________
Quote:
Reply With Quote
  #3  
Old 10-26-2009, 03:27 AM
cyan3 cyan3 is offline
Registered User
cyan3's Avatar
Join Date: Nov 2005
Location: England
Posts: 2,919
cyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant future
Very nice work.
Reply With Quote
  #4  
Old 10-26-2009, 09:03 AM
Liberated Liberated is offline
not doing alot
Liberated's Avatar
Join Date: Feb 2008
Posts: 1,366
Liberated has a spectacular aura about
nice,
man i took a look in that script, and i was just happy i could make a spinning script lmao.
__________________
Quote:
Originally Posted by Tigairius View Post
I promise when I get rich I'll send you an iPhone. I'll send everyone an iPhone.
Reply With Quote
  #5  
Old 10-26-2009, 01:45 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Looks impressive :o
Reply With Quote
  #6  
Old 10-26-2009, 01:48 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Good job, you should get a GAT to skin a much nicer GUI though. :]
__________________
Reply With Quote
  #7  
Old 10-26-2009, 09:39 PM
Gothika Gothika is offline
Global News Team
Gothika's Avatar
Join Date: Mar 2006
Location: Newcastle, England
Posts: 2,425
Gothika is a splendid one to beholdGothika is a splendid one to beholdGothika is a splendid one to beholdGothika is a splendid one to beholdGothika is a splendid one to behold
Thats some good stuff. Nice job.
__________________


Reply With Quote
  #8  
Old 10-26-2009, 09:47 PM
BlueMelon BlueMelon is offline
asdfg
BlueMelon's Avatar
Join Date: Sep 2008
Posts: 1,481
BlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to behold
Good job man. they should have this on every server :P
Does it get spammed with useless ****?
__________________
http://i.imgur.com/OOJbW.jpg
Reply With Quote
  #9  
Old 10-26-2009, 10:07 PM
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 BlueMelon View Post
Good job man. they should have this on every server :P
Does it get spammed with useless ****?
We use it on Era, and we don't have any problems with spam. We can always threaten to jail/ban/suspend-use-of-this-tool-for them if needed, though.

It would be cool if Stefan added something like this to the login server so players could upload their graphics on all servers at once. This kind of functionality already exists with default files (/finddef in RC) I think, and could probably be extended to player appearance graphics.
__________________

Last edited by cbk1994; 10-26-2009 at 11:30 PM.. Reason: Finishing my sentence, oops
Reply With Quote
  #10  
Old 10-26-2009, 10:18 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by cbk1994 View Post
It would be kinda cool if something like this was added to the Login server, and Stefan made it possible for heads to be mirrored (much like they are now for default heads) across all servers.
???
Reply With Quote
  #11  
Old 10-26-2009, 11:29 PM
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 DustyPorViva View Post
???
Apparently I forgot to finish my sentence.

It would be cool if Stefan added something like this to the login server so players could upload their graphics on all servers at once. This kind of functionality already exists with default files (/finddef in RC) I think, and could probably be extended to player appearance graphics.
__________________
Reply With Quote
  #12  
Old 10-27-2009, 05:45 AM
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 cbk1994 View Post
Apparently I forgot to finish my sentence.

It would be cool if Stefan added something like this to the login server so players could upload their graphics on all servers at once. This kind of functionality already exists with default files (/finddef in RC) I think, and could probably be extended to player appearance graphics.
That would be cool cause if an obscene upload got approved, then i could be graphically obscene on every non-gold server and you would have to wait for globals to undo it!
__________________
Quote:
Reply With Quote
  #13  
Old 10-26-2009, 10:05 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Awesome idea- love it!
Reply With Quote
  #14  
Old 10-26-2009, 10:29 PM
Jcs1919 Jcs1919 is offline
hi
Jcs1919's Avatar
Join Date: Feb 2008
Location: France
Posts: 387
Jcs1919 will become famous soon enough
Send a message via MSN to Jcs1919
;o whoa
__________________
ich bin
Reply With Quote
  #15  
Old 10-28-2009, 05:12 AM
Matt Matt is offline
iZone Administrator
Matt's Avatar
Join Date: Apr 2005
Location: United States
Posts: 2,690
Matt is a jewel in the roughMatt is a jewel in the rough
Very nice.
__________________
Need Playerworld or Account support?
GraalOnline/Toonslab Support Center
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 03:54 PM.


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