Author Topic: TKC ArmA SuperCheatPack Community Scripts Topic  (Read 18652 times)

0 Members and 1 Guest are viewing this topic.

M. O.

  • Administrator
  • MasstKer
  • *
  • Posts: 9184
    • View Profile
    • http://www.tkc-community.net
TKC ArmA SuperCheatPack Community Scripts Topic
« on: August 20, 2007, 04:33:17 pm »
Post any -finished- scripts you want to share here. If you need help with scripting, ask in a separate topic.

Please post code chunks with the GeSHi code formatting. (It's above the smilies when you post).
« Last Edit: September 09, 2007, 09:57:54 pm by Mullah Omar »
Heckling is an art, and game hacking a science.

Easy_tiger

  • Klass Klown
  • ***
  • Posts: 331
  • ArmA Anti-Christ
    • View Profile
Global Chat consoleer
« Reply #1 on: September 09, 2007, 05:55:02 pm »
Mullah asked me to pop this in here so here it is

The steps below allow you to add a chat box to the main SCP GUI so after selecting a player, you can console his global chat and say whatever you want. Whatever you type in the chat box will appear to all other players as coming from the player you have selected.

Prerequisites:

Knowledge at least two of the topics below is recommended before attempting this modification

* Practical knowledge of a Object Orientated programming language such as Java, C++, C#.....
* Knowledge of Graphical User Interface principles
* Knowledge of the ArmA virtual machine scripting language




First job is to add the console GUI components to the SCP GUI.

1. RscEditDialog.hpp


1.1 Locate the Controls[] array in class Edit_YOURDEVSTRING_Dialog and add  consoleInput (The text box you will type into)  and ButtonActivateChatconsole(the button that will execute the console script). Now the names of the new controls have been defined we can now add the classes.

Add the following classes after the LAST class in the parent class Edit_YOURDEVSTRING_Dialog   (class ButtonEnd ).

Code: (cpp) [Select]
class console_YOURDEVSTRING_Input : ValueClass
{
idc = IDC_TKC_YOURDEVSTRING_console_INPUT;
y = 0.20;
text = "Enter text here";
colorText[] = {White, 1};
colorBackground[] = {Black, 0.9};
};

class ButtonActivateChat_YOURDEVSTRING_console : MyRscButton
{
idc = IDC_BUTTONACTconsole_YOURDEVSTRING;
x = 0.095;
y = 0.23;
w = 0.100;
h = 0.025;
colorText[] = {ShineRed, 1};
colorBackground[] = {Black, 0.9};
colorFocused[] = {White, 0.9};
colorBorder[] = {Red, 0.8};
text = $STR_ED_DIALOGSCRIPTACTIVATEconsole;
action = "runInitScript;[IDC_TKC_YOURDEVSTRING_console_INPUT] exec format[""%1console.sqs"",console];";
};
                 

2. RscEditDialog.csv

2.1 Add the string for the  ButtonActivateChat_YOURDEVSTRING_console   button text to the parent dialogs string table:

Code: (cpp) [Select]
STR_ED_DIALOGSCRIPTACTIVATEconsole,"console","console","console","console","console","console","console","console"


3. EditDialog.sqs

3.1 EditDialog.sqs can be found in scripts\Edit_YOURDEVSTRING_Dialog. Open it and define the UNIQUE  ID numbers for the controls you have just created :

Code: (cpp) [Select]
IDC_BUTTONACTconsole_YOURDEVSTRING   = 666
IDC_TKC_YOURDEVSTRING_console_INPUT     = 667

4. console.sqs

4.1 Now create a file called console.sqs and add the following simple code:

Code: (cpp) [Select]
_console_YOURDEVSTRING_Idd = _this select 0
console_YOURDEVSTRING_Text= ctrlText IDC_TKC_YOURDEVSTRING_console_INPUT

[obj, "l globalchat format[""%1"",console_YOURDEVSTRING_Text] "] exec "YOURDEVSTRING\scripts\_do_public2.sqs"
exit

That should be it!

Repack your SCP, join a game, select your target and have some fun!



« Last Edit: September 13, 2007, 02:04:58 am by Easy_tiger »

M. O.

  • Administrator
  • MasstKer
  • *
  • Posts: 9184
    • View Profile
    • http://www.tkc-community.net
Re: TKC ArmA SuperCheatPack Community Scripts Topic
« Reply #2 on: September 09, 2007, 09:57:10 pm »
I edited a few things. The class names and all other variables should include YOURDEVSTRING. Some variables that are used often in maps like obj  a b c x y z are assumed to be secure. I'm not sure if the .csv file string variables need the YOURDEVSTRING. But perhaps it should be added there as well. So it might be a good idea to change that to be on the safe side. (Even the other .csv string names). But you'll need a program that can replace text in multiple files at once, like Ultra Edit.
Heckling is an art, and game hacking a science.

Easy_tiger

  • Klass Klown
  • ***
  • Posts: 331
  • ArmA Anti-Christ
    • View Profile
Re: TKC ArmA SuperCheatPack Community Scripts Topic
« Reply #3 on: September 09, 2007, 10:22:41 pm »
thanks for the input mullah! :icon_thumbsup

eurofighter1

  • Intentional Cheater
  • **
  • Posts: 28
    • View Profile
Re: TKC ArmA SuperCheatPack Community Scripts Topic
« Reply #4 on: September 11, 2007, 12:32:03 am »
umm i dont understand it. like how to start it ect. Do u put the code in a new notepad and save it?
Srry for i get very confused with coding  :icon_confused2

M. O.

  • Administrator
  • MasstKer
  • *
  • Posts: 9184
    • View Profile
    • http://www.tkc-community.net
Re: TKC ArmA SuperCheatPack Community Scripts Topic
« Reply #5 on: September 11, 2007, 12:54:06 am »
You'll have to extract the .pbo file and then open and add to the files listed above.
Heckling is an art, and game hacking a science.

eurofighter1

  • Intentional Cheater
  • **
  • Posts: 28
    • View Profile
Re: TKC ArmA SuperCheatPack Community Scripts Topic
« Reply #6 on: September 11, 2007, 01:05:18 am »
Ok thanks ill go and try it :)

shooter420

  • Cheater Apprentice
  • *
  • Posts: 17
    • View Profile
Re: TKC ArmA SuperCheatPack Community Scripts Topic
« Reply #7 on: September 11, 2007, 01:11:55 am »
sweeet :icon_biggrin2

flasher

  • Poptart
  • *
  • Posts: 6
    • View Profile
TKC ArmA SuperCheatPack
« Reply #8 on: September 13, 2007, 02:57:48 pm »
Hi All,

Just tried these script, by using the automatic install, but it seems there is a problem, when I activate the script using the TKC-SCP dialog box, I only have inside the game 6 menu available : teleport, select, lock/unlock player, rig vehicule and info available, where are all the others scripts available and how to activate them ?

Thanks

M. O.

  • Administrator
  • MasstKer
  • *
  • Posts: 9184
    • View Profile
    • http://www.tkc-community.net
Re: TKC ArmA SuperCheatPack Community Scripts Topic
« Reply #9 on: September 13, 2007, 03:06:18 pm »
Instead of activating init.sqf activate those seen in the script list.
Heckling is an art, and game hacking a science.

flasher

  • Poptart
  • *
  • Posts: 6
    • View Profile
Re: TKC ArmA SuperCheatPack Community Scripts Topic
« Reply #10 on: September 13, 2007, 04:49:54 pm »
Instead of activating init.sqf activate those seen in the script list.

How from the inside a game ?

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: TKC ArmA SuperCheatPack Community Scripts Topic
« Reply #11 on: September 13, 2007, 05:15:20 pm »
Instead of activating init.sqf activate those seen in the script list.

How from the inside a game ?

lol someone needs to make a menu system for the scripts
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

M. O.

  • Administrator
  • MasstKer
  • *
  • Posts: 9184
    • View Profile
    • http://www.tkc-community.net
Re: TKC ArmA SuperCheatPack Community Scripts Topic
« Reply #12 on: September 13, 2007, 05:42:55 pm »
If you want to see the script list either print it out, alt tab or run the info.sqs script in-game.

Just replace init.sqf in the box.  :wink2

The scripts have a special naming convention that should assist you remember their names.


A menu system could be useful yes. But it requires a lot of work and probably requires manual updating for every new script that's added. The current system can be improved by not requiring the path, just the scriptname. It's good as it is now but might take some time to get used to imo.
Heckling is an art, and game hacking a science.

Avatar

  • Relentless Teamkiller
  • **
  • Posts: 64
    • View Profile
Re: TKC ArmA SuperCheatPack Community Scripts Topic
« Reply #13 on: September 14, 2007, 08:19:56 pm »
Can someone help me make a small viewdistance script that i can use on evo instead of going to stupid office?

[TKC]Wesker

  • ArmA's Most Wanted
  • The Central Committee
  • Master Heckler
  • *
  • Posts: 2209
  • The Illusive Man
    • View Profile
    • TKC Tube
Re: TKC ArmA SuperCheatPack Community Scripts Topic
« Reply #14 on: September 14, 2007, 08:39:23 pm »
Code: [Select]
Hint "ViewDistance set to 2000"
SetViewDistance 2000
Exit

The Illusive Man