wc3edit.net

United Warcraft 3 map hacking!
It is currently April 20th, 2024, 12:50 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Fake String activator
PostPosted: August 3rd, 2012, 10:30 am 
Offline
Member
User avatar

Joined: November 13th, 2010, 3:51 pm
Posts: 95
Title: Back from the dead
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


Top
 Profile  
 
PostPosted: August 3rd, 2012, 2:24 pm 
Offline
Super Moderator

Joined: February 3rd, 2009, 11:28 pm
Posts: 2394
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.


Top
 Profile  
 
PostPosted: August 3rd, 2012, 2:41 pm 
Offline
Member
User avatar

Joined: November 13th, 2010, 3:51 pm
Posts: 95
Title: Back from the dead
Could you give me a code for that?

_________________
null


Top
 Profile  
 
PostPosted: August 3rd, 2012, 3:15 pm 
Offline
Super Moderator

Joined: February 3rd, 2009, 11:28 pm
Posts: 2394
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.


Top
 Profile  
 
PostPosted: August 3rd, 2012, 4:40 pm 
Offline
Member
User avatar

Joined: November 13th, 2010, 3:51 pm
Posts: 95
Title: Back from the dead
Would the "-Fakeactivator" show a confirmation message but won't enable any commands ?

_________________
null


Top
 Profile  
 
PostPosted: August 3rd, 2012, 7:40 pm 
Offline
Super Moderator

Joined: February 3rd, 2009, 11:28 pm
Posts: 2394
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)