Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Ticketing System Help (https://forums.graalonline.com/forums/showthread.php?t=134263301)

mrnothersan 05-21-2011 04:57 PM

Ticketing System Help
 
Hello,

I have been looking at this ticket system tutorial:
http://forums.graalonline.com/forums...ad.php?t=74011

I am unsure on how to add it to my playerworld though

Please advise me on how to add this

Regards

cbk1994 05-21-2011 05:17 PM

At first glance you should avoid that script anyway, it's using clientside rights without verifying on serverside...

skillmaster19 05-21-2011 05:30 PM

cbk is right but if you really want to use this script despite the security risk this is what you would do:

add the text file he provided as a weapon to your server, and add the weapon to everyone who you want to have it.

this.rights.xXziroXx = { "Close", "FAQ", "Ticket" };

change xXziroXx to your account.(Graal# if you have one, not community name)

this.rights.xXziroXx = { "Close", "FAQ", "Ticket" };

then make the rights for each player based on what you want them to have. The rights are in an array, so you can remove and add some with commas, and don't forget the ""s as they are critical.

If you have a staff tag system, you can give rights by staff guild. for example:
makevar("this.guildrights.Player Relations") = { "Close", "FAQ", "Ticket" };
you can change the "this.guildrights.Player Relations" to "this.guildrights.Graal Police" or whatever your staff guild is. then change the array after the = sign and add or remove rights he provided.


now for tab rights. the // means it is a comment and not part of the system.
PHP Code:

//#CLIENTSIDE
function onCreated()
{
  
this.rights = new TStaticVar(); // don't touch
  
this.guildrights = new TStaticVar(); //din't touch
  
this.rights.xXziroXx = { //change xXziroXx to your account.
    
"tab:Admin",  // Tabs
    
"Edit""Close""FAQ""Ticket",  // Actions
    
"dep:All" // Departments
  
};
  
makevar("this.guildrights.Public Relations") = {
 
//change the line above to your staffguild
    
"tab:Admin",  // Tabs
    
"Edit""Close""FAQ""Ticket",  //guild Actions
    
"dep:Accounts""dep:Jail" // guild Departments
  
};



mrnothersan 05-21-2011 05:40 PM

Quote:

Originally Posted by cbk1994 (Post 1650875)
At first glance you should avoid that script anyway, it's using clientside rights without verifying on serverside...

What should i use?

fowlplay4 05-21-2011 06:01 PM

Quote:

Originally Posted by mrnothersan (Post 1650879)
What should i use?

Nothing, you're developing on a UC server right now. You should be more worried about gameplay elements than PR elements designed for classic servers.


All times are GMT +2. The time now is 06:38 PM.

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