Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Built-In Names and Ban (https://forums.graalonline.com/forums/showthread.php?t=87563)

Switch 08-22-2009 10:55 PM

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?

LoneAngelIbesu 08-23-2009 12:10 AM

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.

Switch 08-23-2009 12:15 AM

Quote:

Originally Posted by LoneAngelIbesu (Post 1517720)
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?

Programmer 08-23-2009 12:23 AM

Quote:

Originally Posted by Switch (Post 1517696)
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. >_<

LoneAngelIbesu 08-23-2009 12:33 AM

Quote:

Originally Posted by Switch (Post 1517721)
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).

Switch 08-23-2009 12:33 AM

Quote:

Originally Posted by Programmer (Post 1517725)
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 (Post 1517727)
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+

Skyld 08-23-2009 03:12 AM

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. :|

Switch 08-23-2009 03:15 AM

Quote:

Originally Posted by Skyld (Post 1517749)
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.

Skyld 08-23-2009 03:22 AM

Quote:

Originally Posted by Switch (Post 1517750)
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.

Bell 08-23-2009 03:47 AM

Anyone abuses that and my banhammer will be bigger than yours.

Crono 08-23-2009 04:23 AM

Quote:

Originally Posted by Bell (Post 1517755)
Anyone abuses that and my banhammer will be bigger than yours.

:blush:

Switch 08-24-2009 01:00 AM

Quote:

Originally Posted by LoneAngelIbesu (Post 1517727)
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. :)


All times are GMT +2. The time now is 12:21 PM.

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