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 05-16-2007, 09:22 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Post Support/FAQ System

Right. This system allows:

* Creation of tickets
* Editing/Answering (same thing, I got lazy) of tickets
* Moving tickets to FAQ tab (awesome, Support and FAQ in one!)
* Closing of tickets (they even disappear from the ticket list after 24 hours! )

Right-o, so here's how it work. You need two edit TWO parts of the system. The serversided rights, and clientsided ones.

serversided rights:


Close - allows you to close tickets
FAQ - allows you to move a ticket from Tickets list to FAQ list
Ticket - allows you to move a ticket from FAQ list to Tickets list

So, rights can look like:

PHP Code:
this.rights.xXziroXx = { "Close""FAQ""Ticket" };
this.rights.MyAccount = { "Close" }; 
Right - lets see what clientsided rights there are to choose from:

tab:Admin - gives you access to the Admin tab
Edit - allows you to edit/reply to tickets
Close - allows you to close tickets
FAQ - allows you to move a ticket from Tickets list to FAQ list
Ticket - allows you to move a ticket from FAQ list to Tickets list
dep:All - lets you view all tickets on Admin list
dep:Bugs - lets you view Bugs tickets on Admin list
dep:Account - lets you view Account tickets on Admin list
dep:Jail - lets you view Jail tickets on Admin list
dep:General Questions - lets you view General Questions tickets on Admin list
dep:Other - lets you view Other tickets on Admin list

Lets say you add the ticket department "Hacker" to this.departments, then you can give people access to dep:Hacker.

Examples:

PHP Code:
this.rights.xXziroXx = {
  
"tab:Admin",  // Tabs
  
"Edit""Close""FAQ""Ticket",  // Actions
  
"dep:All" // Departments
};
this.rights.MyAccount= {
  
"Ticket" // Actions
};
this.rights.MyAccount2 = {
  
"tab:Admin",  // Tabs
  
"Edit""Close",  // Actions
  
"dep:Bugs""dep:Jail" // Departments
}; 
You are free to EDIT and USE this script however and wherever you like, ASLONG as you do NOT remove the Mythic Legends URL from below the "Support Center" text.

Like this script? Please give me good rep! Don't like it? Please give me bad rep!
Attached Thumbnails
Click image for larger version

Name:	a1.png
Views:	474
Size:	391.0 KB
ID:	41092   Click image for larger version

Name:	a2.png
Views:	350
Size:	383.5 KB
ID:	41093   Click image for larger version

Name:	a3.png
Views:	309
Size:	389.4 KB
ID:	41094  
Attached Files
File Type: txt -Support.txt (17.6 KB, 392 views)
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto

Last edited by xXziroXx; 05-17-2007 at 01:58 AM..
Reply With Quote
  #2  
Old 05-16-2007, 09:24 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Biterrr stealing my idea!

Good work though.
Reply With Quote
  #3  
Old 05-16-2007, 09:26 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by Rapidwolve View Post
Biterrr stealing my idea!

Good work though.
It was you who stole my idea!
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #4  
Old 05-16-2007, 09:27 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Quote:
Originally Posted by xXziroXx View Post
It was you who stole my idea!
Lol no honestly I didn't even know you planned that. Mine just sort of evolved from a bug reporting tool to a support center. Got the idea from the 'HelpDesk' script (was barely even started) on Zodiac
Reply With Quote
  #5  
Old 05-16-2007, 09:42 PM
oinknessx oinknessx is offline
Banned
oinknessx's Avatar
Join Date: Apr 2004
Location: United States
Posts: 646
oinknessx is on a distinguished road
Send a message via AIM to oinknessx
Come on ladies, you all know it was my idea.
Reply With Quote
  #6  
Old 05-17-2007, 01:52 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
So you have to add rights for each account separately?
Reply With Quote
  #7  
Old 05-17-2007, 01:59 AM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by Gambet View Post
So you have to add rights for each account separately?
Uploaded a new version that also allow guild specific rights:


PHP Code:
this.guildrights.GUILDNAME = {
  
// rights
}; 
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #8  
Old 05-17-2007, 02:02 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by xXziroXx View Post
Uploaded a new version that also allow guild specific rights:


PHP Code:
this.guildrights.GUILDNAME = {
  
// rights
}; 


Still rather inconvenient, requires too many lines of code if you're giving rights to a plethora of accounts (assuming there are a lot of staff on the server), and not completely user friendly.


I believe it would be better if the system read specific text file names, and gave rights to any accounts stored in the text file. That way, servers would only have to add their accounts to the specific text files in order to have rights to that function. A database would work as well.
Reply With Quote
  #9  
Old 05-17-2007, 02:08 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Quote:
Originally Posted by Gambet View Post
Still rather inconvenient, requires too many lines of code if you're giving rights to a plethora of accounts (assuming there are a lot of staff on the server), and not completely user friendly.


I believe it would be better if the system read specific text file names, and gave rights to any accounts stored in the text file. That way, servers would only have to add their accounts to the specific text files in order to have rights to that function. A database would work as well.
You have to ruin everything, don't you?

Awesome IMO!
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #10  
Old 05-17-2007, 02:09 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Switch View Post
You have to ruin everything, don't you?

Awesome IMO!


It's just a suggestion x-x
Reply With Quote
  #11  
Old 05-17-2007, 02:17 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Quote:
Originally Posted by Switch View Post
You have to ruin everything, don't you?
Just...shut...up, please.
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #12  
Old 05-17-2007, 03:02 AM
oinknessx oinknessx is offline
Banned
oinknessx's Avatar
Join Date: Apr 2004
Location: United States
Posts: 646
oinknessx is on a distinguished road
Send a message via AIM to oinknessx
Come on ladies, be friendly. You should just be happy this script was made public for you.
Reply With Quote
  #13  
Old 05-17-2007, 03:18 AM
rE_MiX577 rE_MiX577 is offline
Registered User
Join Date: Sep 2006
Posts: 11
rE_MiX577 is on a distinguished road
ziro was nice enough to test this script out on Zodiac, Even though he hired half the server as PRs the system seems to be ummm.... just there?

submitting tickets are useless, especially when 90% of them will either be spam/lies, or infractions that occur at an instance.

neg rep, for hiring 10 PRs that are all on Zodiac's "Most Jailed" list.
Reply With Quote
  #14  
Old 05-17-2007, 03:42 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
This system is replacing the one I had?
Reply With Quote
  #15  
Old 05-18-2007, 04:47 AM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
* Made it possible to actually edit tickets (good job for forgetting that huh?)


Skyld, mind replacing the first document with this one?
Attached Files
File Type: txt -Support.txt (18.3 KB, 248 views)
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
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 11:21 PM.


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