![]() |
Request: test function(funcName);
Built-in Function:
Request: testfunction(funcName) Usage: testfunction("onwall2"); Returns: true if function exists, false if it doesn't. Why? Cheat Engine and other memory editors that can pass through the cheat windows check, and rename functions by searching for text. Usage in script: PHP Code:
|
They could just as easily disable those checks...
|
This seems quite useful Deadly_Killer, it should be implemented.
|
Quote:
|
Stop the use of malicious applications whilst Graal is operating.
|
Quote:
Though, I think I just came into another problem. I noticed that this wouldn't exactly solve it if people don't rename the onwall2 function, but rename the use of the function. Quote:
|
The clientsided part of scripts can be edit any way they want, so they would just disable the trigger. Duh.
|
Quote:
|
Quote:
|
Quote:
|
PHP Code:
|
The next Graal version will have hasfunction() as well, until then use getfunctions() like Skyld said
|
PHP Code:
|
What the heck is magicFunction()?
|
Quote:
|
Quote:
|
Oh, so we need to make our own system NPC to check if the functions exist? fun... o_o
|
Quote:
|
Because functions can be edited, isn't that why Stefan created this...?
|
Quote:
if ("magicFunction".lower() in this.getfunctions()) tells you if the function magicFunction() has been defined somewhere on the current object (normally the script/NPC). Change the this. to some other object to check if the function is defined in that object instead. It's only one line, and it certainly does not need a system NPC creating to use it. |
However, we need to add this to each of our system npcs.
|
Quote:
|
To check if the functions actually exist.
If people can edit function names via memory editing, we are checking to see if they exist. Correct me if I have perceived this thread totally wrong... |
Quote:
The main use for it I guess is checking if functions are present from joined classes or so. |
Quote:
|
Skyld, I see. object.isinclass isn't good enough :p
xXZiroXx, kind of, not all. |
Quote:
|
Quote:
-- Anyway: Changing onwall/2 makes it so you can walk on walls because it will return false ( no longer exists ) Would be cool if non-existing functions returned like -1. |
Quote:
Quote:
|
TGraalVar.hasFunction(functionname);
Stefan has granted your wish, and screwed up getVarNames() in the process. |
Quote:
|
PHP Code:
|
Quote:
And a second thought, why are you even showing this to us? hasfunction() already exists for all objects now. |
| All times are GMT +2. The time now is 08:26 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.