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 03-24-2008, 07:02 PM
[email protected] rkritou@opt.net is offline
Registered User
Join Date: Mar 2008
Posts: 10
rkritou@opt.net is on a distinguished road
GUI Tool

What I've posted here today, is, well a "tool" I guess. Don't judge right off the bat though, I made this in mind that it would help Admins/Managers around the server while on player doing whatever. Please don't get an image of "BlooTool" or anything like that. You've all posted scripts here in mind of helping other servers, and I'd like to do the same. Except my concept is more focused on PR related issues, not so much of development.

Basically is a chat room with many features, and tools that
can help you as an Admin, Manager, or whatever in situations
you may come across on player. I've found this useful, and hope you do too.
(I'm sorta geeky and made it like an RC theme. ;p)

I came across this link (My inspiration I guess), and though I could actually make a tool that's more useful and such, rather than abusive looking.
http://forums.graalonline.com/forums...ght=admin+tool

Also, I didn't add features such as summon all, and stuff like that,
as I really see no point for that, as I've NEVER needed to summon the
whole server to a level at one place or w/e. If you really need crud like
that, script it on your own.

With that aside, I'd also just like to mention that my script may seem
a bit unorganized...well, it is. But as long as I script efficiently and the
fact that I'm not allowing you guys to edit much in this script anyways,
I didn't see a point in organizing so you can find stuff. But if organizing a script so a player can find things easier helps a script run smoother or less laggy in some way that I don't know of, please tell me, as I seriously wasn't aware. o.o

Also, criticism is welcome. But only if you've actually looked at the script atleast, or fired the weapon! So please tell me what you think of the GUI, and the scripting itself. I'm GP Chief on Unholy Nation, not a NAT, but I'd like to learn as much as possible! Thanks.

Also note, when using it on your server, you need to add yourself
to a certain string in the weapon before using it, or else it will destroy
itself onCreated. Just some security I've added with a ranking system for
the weapon. The string is on the clientside function onCreated part of the script.
Attached Files
File Type: txt CRC.txt (60.8 KB, 548 views)

Last edited by [email protected]; 03-24-2008 at 08:08 PM..
Reply With Quote
  #2  
Old 03-24-2008, 07:05 PM
Toxen Toxen is offline
A Toxic Fellow
Join Date: Jan 2008
Location: Georgia
Posts: 36
Toxen is on a distinguished road
Actually ,I've watched this man script this overtime on Unholy Dev on Rc, it's actually a very nice put together GUI based tool.
Gratzz man.
Rep ++
__________________
UN NAT.
Reply With Quote
  #3  
Old 03-24-2008, 07:14 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
Far from everyone use Windows, or are generally unable to read .doc files. Please, make it a .txt file.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #4  
Old 03-24-2008, 07:19 PM
[email protected] rkritou@opt.net is offline
Registered User
Join Date: Mar 2008
Posts: 10
rkritou@opt.net is on a distinguished road
Ohh sure thing, sorry about that.
I'm on a MAc, and haven't posted an attachment before, I'll change that!
Reply With Quote
  #5  
Old 03-24-2008, 08:11 PM
[email protected] rkritou@opt.net is offline
Registered User
Join Date: Mar 2008
Posts: 10
rkritou@opt.net is on a distinguished road
Okay, my parents allowed me to use their Windows (eww) PC.
So I uploaded it as a txt doc, you all should be good to go!
Reply With Quote
  #6  
Old 03-24-2008, 08:18 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by [email protected] View Post
Okay, my parents allowed me to use their Windows (eww) PC.
So I uploaded it as a txt doc, you all should be good to go!
What? Can't post a .txt file with a Mac?
__________________
Reply With Quote
  #7  
Old 03-24-2008, 09:02 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by xXziroXx View Post
Far from everyone use Windows, or are generally unable to read .doc files. Please, make it a .txt file.
Who can't open a .doc file?
If you're on Windows without Word, MS Works will open it.
If you're on a Mac without Word, there's always NeoOffice.
If you're on a Unix system, you have OpenOffice.

@Inverness: They can, maybe he's never used TextEditor? I dunno x-x.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #8  
Old 03-24-2008, 10:20 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Some things though:

All the lines aren't aligned the same, example:
PHP Code:
   if (temp.Online2 != true) {
   for (
plserverr.CrowRC) {
     
pl findPlayer(pl);
     
pl.triggerClient("weapon"this.name"errormsg"params[1], player.account);
    }
   } 
And instead of if (temp.Online2 != true) you should probably use if (!temp.Online2)
__________________
Reply With Quote
  #9  
Old 03-24-2008, 10:21 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 Inverness View Post
What? Can't post a .txt file with a Mac?
What? Can't open .doc file with a Windows?

You can save as TXT, he didn't know how.

Attachments show how on the two programs that come with Mac for word processing.
Attached Thumbnails
Click image for larger version

Name:	Picture 23.png
Views:	199
Size:	25.2 KB
ID:	44200   Click image for larger version

Name:	Picture 24.png
Views:	200
Size:	22.9 KB
ID:	44201  
__________________
Reply With Quote
  #10  
Old 03-25-2008, 12:36 AM
[email protected] rkritou@opt.net is offline
Registered User
Join Date: Mar 2008
Posts: 10
rkritou@opt.net is on a distinguished road
Ahh, thanks for the info there Chompy. :]
I'll go ahead and change some of that. xd

And thanks cbkbud for the screen shots. I didn't know I could do that. xD Glad someone told me, so I don't have to keep swapping PCs all the time for things such as that, lol.
Reply With Quote
  #11  
Old 03-25-2008, 03:16 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 Tolnaftate2004 View Post
Who can't open a .doc file?
If you're on Windows without Word, MS Works will open it.
If you're on a Mac without Word, there's always NeoOffice.
If you're on a Unix system, you have OpenOffice.
I've used various friends and whatnot computer's that didn't have any program that can read a .doc file, both on Windows and Linux. And not like I would bother downloading/telling them to download it, just to read a file with an extention that I rarely come across.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #12  
Old 03-25-2008, 04:09 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 xXziroXx View Post
I've used various friends and whatnot computer's that didn't have any program that can read a .doc file, both on Windows and Linux. And not like I would bother downloading/telling them to download it, just to read a file with an extention that I rarely come across.
Fair enough, I originally read it as RTF and thought y'all were crazy ...

I should start posting some .pages documents.


EDIT:

Quote:
// While using this script you may only edit the contents 4 strings and nothing else, the 4 strings are:
Uhm, you posted it in the Code Gallery. We can change anything we want ...
Attached Images
 
__________________
Reply With Quote
  #13  
Old 03-25-2008, 11:15 PM
[email protected] rkritou@opt.net is offline
Registered User
Join Date: Mar 2008
Posts: 10
rkritou@opt.net is on a distinguished road
Yeah, I pretty much know that cbkbud.
I added that in hopes players just wouldn't add other abusive commands or
whatnot. Because if the original script is down under my name, it wouldn't look
to good on me if other staff using it unfortunately used their additions in abusive ways and such.

Thanks for telling me anyways though. =o
Reply With Quote
  #14  
Old 03-26-2008, 12:17 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
There is a hideimgs(start, end) function that you can use to hide multiple images instead of defining that ugly hideImgs() function in your script.
Quote:
Originally Posted by cbkbud View Post
What? Can't open .doc file with a Windows?
Yes I can actually, thanks.

On Windows you can use Wordpad to view most .doc files, and Microsoft Word can view any that Wordpad can't view. .docx is viewed with Microsoft Word 2007 and above.
__________________
Reply With Quote
  #15  
Old 03-26-2008, 01:12 AM
[email protected] rkritou@opt.net is offline
Registered User
Join Date: Mar 2008
Posts: 10
rkritou@opt.net is on a distinguished road
Eww, I wish I knew of that before. z.z
I was looking on the wiki for something along the lines such as that, since no
no NAT on UN knew of any such command, but I guess I never looked hard
enough because I didn't come across it.

Thanks, that'll actually come in hand for a few of my other scripts as well.
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 05:21 PM.


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