Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-22-2009, 10:55 PM
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
Built-In Names and Ban

I've always wondered about things like this, but now I'm going to ask.

How do you go about finding built-in GUI names like for PMs?
Also, a while ago, Neener from Unholy Nation had a fun little toy made out of the Ban Hammer that actually banned you, but only for 10 seconds, that actually did ban you as if it was done from RC with the ban log and all. Is there any way to replicate that?
__________________
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
  #2  
Old 08-23-2009, 12:10 AM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Not sure about the ban, but for the controls:
PHP Code:
for (temp.0temp.obj.controls.size(); temp.i++) {
  echo(
obj.controls[temp.i]);

In this case, I believe a new PM control is created for each PM window, eg: PrivateMessage0_Window, PrivateMessage1_Window, etc.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #3  
Old 08-23-2009, 12:15 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 LoneAngelIbesu View Post
PHP Code:
for (temp.0temp.obj.controls.size(); temp.i++) {
  echo(
obj.controls[temp.i]);

In this case, I believe a new PM control is created for each PM window, eg: PrivateMessage0_Window, PrivateMessage1_Window, etc.
So just to clarify, obj. refers to what object, or all of the player's Graal that is an object?
And the PM window creates a new one for every open PM window (like if you close one it can recreate that number) or for every PM window that has been created?
__________________
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
  #4  
Old 08-23-2009, 12:23 AM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
Quote:
Originally Posted by Switch View Post
I've always wondered about things like this, but now I'm going to ask.

How do you go about finding built-in GUI names like for PMs?
Also, a while ago, Neener from Unholy Nation had a fun little toy made out of the Ban Hammer that actually banned you, but only for 10 seconds, that actually did ban you as if it was done from RC with the ban log and all. Is there any way to replicate that?
I believe that was back when the Client-RC commands were open, I'm not sure if that's possible anymore. I personally am quite glad it's gone, because I was the victim of so many banhammer whacks.
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote
  #5  
Old 08-23-2009, 12:33 AM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by Switch View Post
So just to clarify, obj. refers to what object, or all of the player's Graal that is an object?
And the PM window creates a new one for every open PM window (like if you close one it can recreate that number) or for every PM window that has been created?
obj refers to any object. For example, GraalControl or GUIContainer, or even MyWindow.

For PMs, I believe it increases until the session ends (meaning, until you reconnect).
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #6  
Old 08-23-2009, 12:33 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 Programmer View Post
I believe that was back when the Client-RC commands were open, I'm not sure if that's possible anymore. I personally am quite glad it's gone, because I was the victim of so many banhammer whacks.
I just tried to replicate banning, and it worked like a charm.
Thanks Skyld!



Quote:
Originally Posted by LoneAngelIbesu View Post
obj refers to any object. For example, GraalControl or GUIContainer, or even MyWindow.

For PMs, I believe it increases until the session ends (meaning, until you reconnect).
Alright cool, thanks. Rep+
__________________
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.

Last edited by Switch; 08-23-2009 at 03:05 AM.. Reason: ban works
Reply With Quote
  #7  
Old 08-23-2009, 03:12 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
I figure that the ban part probably works if you have already logged into Client-RC, not sure otherwise. It is not good for scripts to abuse that though and I would ask that you don't. :|
__________________
Skyld
Reply With Quote
  #8  
Old 08-23-2009, 03:15 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 Skyld View Post
I figure that the ban part probably works if you have already logged into Client-RC, not sure otherwise. It is not good for scripts to abuse that though and I would ask that you don't. :|
It would if you used the ScriptedRC function to do so. I'm using how you actually get it to ban, and I won't say specifics or details for people who can't find it and want to abuse it.
So far I've only used it for testing to see how it works, but now I've put it into fowlplay's hacker detection script.
__________________
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
  #9  
Old 08-23-2009, 03:22 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Switch View Post
It would if you used the ScriptedRC function to do so. I'm using how you actually get it to ban, and I won't say specifics or details for people who can't find it and want to abuse it.
So far I've only used it for testing to see how it works, but now I've put it into fowlplay's hacker detection script.
The requesttext/sendtext for the ban shouldn't work unless you have already logged into Client-RC somewhere (and for good reason), will have to check that.
__________________
Skyld
Reply With Quote
  #10  
Old 08-23-2009, 03:47 AM
Bell Bell is offline
Registered User
Bell's Avatar
Join Date: Feb 2007
Posts: 1,824
Bell has much to be proud ofBell has much to be proud ofBell has much to be proud ofBell has much to be proud ofBell has much to be proud ofBell has much to be proud of
Anyone abuses that and my banhammer will be bigger than yours.
__________________
For support contact
http://support.toonslab.com/
Reply With Quote
  #11  
Old 08-23-2009, 04:23 AM
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
Quote:
Originally Posted by Bell View Post
Anyone abuses that and my banhammer will be bigger than yours.
__________________
Reply With Quote
  #12  
Old 08-24-2009, 01:00 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 LoneAngelIbesu View Post
obj refers to any object. For example, GraalControl or GUIContainer, or even MyWindow.

For PMs, I believe it increases until the session ends (meaning, until you reconnect).
After a bit I realized you meant to input an object, not to use obj. GUIContainer was what I was looking for, thanks.
__________________
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
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 07:29 AM.


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