Fake String activator

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
tengumaru93
Member
Posts: 73
Joined: November 13th, 2010, 3:51 pm
Title: Back from the dead

Fake String activator

Post by tengumaru93 »

Hi, I would like to know how to create a fake string activator for a cheat pack. Let's say, I insterted a JJcp into my map and the activator is -LOL<space><space><space> but ofcourse i dont want other people invading my map using my own cheats so I would like to make a fake activator, something that would show up at the start of the script, maybe "-cheats<space><space>" and when they would type it, a confirmation message would show something like "cheats activated" but when they try to enter a command none would work. Like a distraction or is there a way I could use the cheats, still typing the activator -LOL<space><space><space> but only a few people could do it. Not exactly a name activator, because name activators would cause the cheats to be activated at the start of the map. So if your name is not included in the list, you can't activate it no matter what you do unless you spoof to that person's name.
null
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm
Been thanked: 1 time

Re: Fake String activator

Post by owner123 »

I recommend using a mix of capital i and lowercase L.

So it can look like this:
LoI<><>
Iol<><>
IoI<><>

And anyone who doesn't copy paste the activator from the .j will be tricked by it.

Or create a second variable.
Replace every instance of "activator" with like "realAct"
Then make a new variable named activator, and set it. Makes it look like "activator" is the act, but it's not.
User avatar
tengumaru93
Member
Posts: 73
Joined: November 13th, 2010, 3:51 pm
Title: Back from the dead

Re: Fake String activator

Post by tengumaru93 »

Could you give me a code for that?
null
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm
Been thanked: 1 time

Re: Fake String activator

Post by owner123 »

I don't have jjcp or jasscraft open right now, so this is just psuedocode..

First, replace "Activator" with "RealAct"

Under globals:

string Activator = "-FakeActivator"
string RealAct = "-RealActivator"

Put the RealAct at the bottom of the globals, and Activator at the top of the globals.
User avatar
tengumaru93
Member
Posts: 73
Joined: November 13th, 2010, 3:51 pm
Title: Back from the dead

Re: Fake String activator

Post by tengumaru93 »

Would the "-Fakeactivator" show a confirmation message but won't enable any commands ?
null
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm
Been thanked: 1 time

Re: Fake String activator

Post by owner123 »

The activator variable is a fake variable which is only declared, and never shows up in the code.

Only the RealAct does anything. -Fakeactivator does nothing. With a bit of work you could make it show a confirmation message though.