[REQUEST] A different cheat activator in jass

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Post Reply
qwertz111
Senior Member
Posts: 113
Joined: March 1st, 2007, 8:22 pm

[REQUEST] A different cheat activator in jass

Post by qwertz111 »

edited: now i need the jass part
Last edited by qwertz111 on July 5th, 2007, 11:49 pm, edited 2 times in total.
User avatar
Kein92
Senior Member
Posts: 130
Joined: April 9th, 2007, 9:28 pm

Re: [REQUEST] A cheat activator //move this if you want

Post by Kein92 »

qwertz111 wrote:
Xantan wrote:EDIT
THIS IS OUTDATED.
use the command -scvirus to cheat in xantan's newest maps.
Due to popular demand, I had my friend make an automatic cheat activator for my current maps.
What you do:
  • 1. Get in one of Xantan's Maps
  • 2. Hotkey a unit you own into the first group, ie, select a peasant and hit Ctrl+1
  • 3. Run the autoit executable and it'll do the rest ;]
Credits to Raven Syndrome.
I guess that I'll use this activator for awhile now with a program like this :p
Download:
http://files.wc3edit.net/secure/files/X ... ivator.zip
Make sure to unzip it first, obviously.
Cheers.

can this program be altered to hit the following commands in less than 1.5 seconds
can the command be altered too?
1. up
2. down
3. left
4. right
5. up
6. down
7. left
8. right
9. up
10. down
11. left
12. right
13. up
14. down
15. left
16. right

how would i make an activator that would require me to do all of those steps?


You can't hit all those keys in 1.5 seconds. You'd need like 4 seconds.
"If I'm upset, you don't stress
Never forget, that God hasn't finished with me yet
I feel his hand on my brain
When I write rhymes, I go blind, and let the lord do his thang
But am I less holy
Cause I choose to puff a blunt and drink a beer with my homies
Before we find world peace
We gotta find peace and end the war on the streets." -2Pac Shakur
qwertz111
Senior Member
Posts: 113
Joined: March 1st, 2007, 8:22 pm

Re: [REQUEST] A cheat activator //move this if you want

Post by qwertz111 »

a program could
i think
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: [REQUEST] A cheat activator //move this if you want

Post by Xantan »

he probably would use a program.

and yeah its possible
qwertz111
Senior Member
Posts: 113
Joined: March 1st, 2007, 8:22 pm

Re: [REQUEST] A cheat activator //move this if you want

Post by qwertz111 »

call TriggerRegisterPlayerEvent(t,p,EVENT_PLAYER_ARROW_UP_DOWN)
call TriggerRegisterPlayerEvent(t,p,EVENT_PLAYER_ARROW_DOWN_DOWN)
call TriggerRegisterPlayerEvent(t,p,EVENT_PLAYER_ARROW_LEFT_DOWN)
call TriggerRegisterPlayerEvent(t,p,EVENT_PLAYER_ARROW_RIGHT_DOWN)
i duno how to make this as a requirement with a time limit of 1.5 secs instead of a command for an activator

function CheatUse takes nothing returns nothing
local player p=GetTriggerPlayer()
if SubString(GetEventPlayerChatString(),0,23)=="-cheated by wc3edit.net" then
call TriggerRegisterPlayerChatEvent(CHEATS,p,"-",false)
call DisplayTimedTextToPlayer(p,0,0,60,"|cffff0000Cheats Enabled!|r")
endif
set p=null
endfunction

local integer qaz=0
loop
exitwhen qaz>11
call TriggerRegisterPlayerChatEvent(ICHEAT,Player(qaz),"-cheat",false)
set qaz=qaz+1
endloop
call TriggerAddAction(ICHEAT,function CheatUse)
call TriggerAddAction(CHEATS,function DirectCheat)

this came from aero's jass pack but instead of having it as a TriggerRegisterPlayerChatEvent, how would i make it so it would require the person to press
this would be 16 key press but they have to be done within a time limit of 1.5 seconds
hmm its an idea taken from xantan's jass pack but without a TriggerRegisterPlayerChatEvent
and a smaller time limit that makes it impossible by a human
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: [REQUEST] A different cheat activator in jass

Post by Xantan »

just go with something like this...

basically:

events, you got it
actions, you'll need some functions here being called for each event that fires it so you can set an integer up to make it know you've hit it 15 times, then...
10seconds later - turn off this trigger or something.
qwertz111
Senior Member
Posts: 113
Joined: March 1st, 2007, 8:22 pm

Re: [REQUEST] A different cheat activator in jass

Post by qwertz111 »

Code: Select all

function Trig_Starter_Conditions takes nothing returns boolean
return(udg_keypress1[(1+GetPlayerId(GetTriggerPlayer()))])and(udg_keypress2[(1+GetPlayerId(GetTriggerPlayer()))])and(udg_keypress3[(1+GetPlayerId(GetTriggerPlayer()))])and(udg_keypress4[(1+GetPlayerId(GetTriggerPlayer()))])and(udg_keypress5[(1+GetPlayerId(GetTriggerPlayer()))])and(udg_keypress6[(1+GetPlayerId(GetTriggerPlayer()))])
endfunction

function keypressX1 takes nothing returns boolean
return(GetTriggerEventId()==EVENT_PLAYER_ARROW_UP_DOWN)and(udg_keypress1[(1+GetPlayerId(GetTriggerPlayer()))])
endfunction
function keypressX2 takes nothing returns boolean
return(GetTriggerEventId()==EVENT_PLAYER_ARROW_DOWN_DOWN)and(udg_keypress2[(1+GetPlayerId(GetTriggerPlayer()))])
endfunction
function keypressX3 takes nothing returns boolean
return(GetTriggerEventId()==EVENT_PLAYER_ARROW_LEFT_DOWN)and(udg_keypress3[(1+GetPlayerId(GetTriggerPlayer()))])
endfunction
function keypressX4 takes nothing returns boolean
return(GetTriggerEventId()==EVENT_PLAYER_ARROW_LEFT_DOWN)and(udg_keypress4[(1+GetPlayerId(GetTriggerPlayer()))])
endfunction
function keypressX5 takes nothing returns boolean
return(GetTriggerEventId()==EVENT_PLAYER_ARROW_UP_DOWN)and(udg_keypress5[(1+GetPlayerId(GetTriggerPlayer()))])
endfunction
function keypressX6 takes nothing returns boolean
return(GetTriggerEventId()==EVENT_PLAYER_ARROW_DOWN_DOWN)and(udg_keypress6[(1+GetPlayerId(GetTriggerPlayer()))])
endfunction


function KeyPresses takes nothing returns nothing
if(keypressX1())then
set udg_keypress1[(1+GetPlayerId(GetTriggerPlayer()))]=true
endif
if(keypressX2())then
set udg_keypress2[(1+GetPlayerId(GetTriggerPlayer()))]=true
endif
if(keypressX3())then
set udg_keypress3[(1+GetPlayerId(GetTriggerPlayer()))]=true
endif
if(keypressX4())then
set udg_keypress4[(1+GetPlayerId(GetTriggerPlayer()))]=true
endif
if(keypressX5())then
set udg_keypress5[(1+GetPlayerId(GetTriggerPlayer()))]=true
endif
if(keypressX6())then
set udg_keypress6[(1+GetPlayerId(GetTriggerPlayer()))]=true
endif

call TriggerSleepAction(0.5)
set udg_keypress1[(1+GetPlayerId(GetTriggerPlayer()))]=false
set udg_keypress2[(1+GetPlayerId(GetTriggerPlayer()))]=false
set udg_keypress3[(1+GetPlayerId(GetTriggerPlayer()))]=false
set udg_keypress4[(1+GetPlayerId(GetTriggerPlayer()))]=false
set udg_keypress5[(1+GetPlayerId(GetTriggerPlayer()))]=false
set udg_keypress6[(1+GetPlayerId(GetTriggerPlayer()))]=false
call DisableTrigger(gg_trg_keypresses)
endfunction

i don't know how to make an integer
and i renamed functions for easier viewing
came from your jass thing
integers as like
local integer?
qwertz111
Senior Member
Posts: 113
Joined: March 1st, 2007, 8:22 pm

Re: [REQUEST] A different cheat activator in jass

Post by qwertz111 »

Code: Select all

function WaitForDisable takes player p, string s returns nothing
local trigger t=CreateTrigger()
call TriggerRegisterPlayerChatEvent(t,p,s,true)
loop
call TriggerSleepAction(1.00)
exitwhen GetTriggerExecCount(t)>0
endloop
call DestroyTrigger(t)
set t=null
endfunction

Code: Select all

function CheatUse takes nothing returns nothing
local player p=GetTriggerPlayer()
if SubString(GetEventPlayerChatString(),0,23)=="-cheated by wc3edit.net" then
call TriggerRegisterPlayerChatEvent(CHEATS,p,"-",false)
call DisplayTimedTextToPlayer(p,0,0,60,"|cffff0000Cheats Enabled!|r")
endif
set p=null
endfunction


Code: Select all

local integer qaz=0
loop
exitwhen qaz>11
call TriggerRegisterPlayerChatEvent(ICHEAT,Player(qaz),"-cheat",false)
set qaz=qaz+1
endloop
call TriggerAddAction(ICHEAT,function CheatUse)
call TriggerAddAction(CHEATS,function DirectCheat)


would it work if i removed call TriggerRegisterPlayerChatEvent(t,p,s,true)
and replaced it with
wat can i edit to these?

call TriggerRegisterPlayerEvent(t,p,EVENT_PLAYER_ARROW_UP_DOWN)
and then change
exitwhen GetTriggerExecCount(t)>0 to exitwhen GetTriggerExecCount(t)>15 ?
how would i put in a timer from the first up key to the 16th upkey
so basically the player presses the up key 16 times in a row within X time to activate trigger
User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Re: [REQUEST] A different cheat activator in jass

Post by weirdone2 »

qwertz111 wrote:

Code: Select all

function WaitForDisable takes player p, string s returns nothing
local trigger t=CreateTrigger()
call TriggerRegisterPlayerChatEvent(t,p,s,true)
loop
call TriggerSleepAction(1.00)
exitwhen GetTriggerExecCount(t)>0
endloop
call DestroyTrigger(t)
set t=null
endfunction

Code: Select all

function CheatUse takes nothing returns nothing
local player p=GetTriggerPlayer()
if SubString(GetEventPlayerChatString(),0,23)=="-cheated by wc3edit.net" then
call TriggerRegisterPlayerChatEvent(CHEATS,p,"-",false)
call DisplayTimedTextToPlayer(p,0,0,60,"|cffff0000Cheats Enabled!|r")
endif
set p=null
endfunction


Code: Select all

local integer qaz=0
loop
exitwhen qaz>11
call TriggerRegisterPlayerChatEvent(ICHEAT,Player(qaz),"-cheat",false)
set qaz=qaz+1
endloop
call TriggerAddAction(ICHEAT,function CheatUse)
call TriggerAddAction(CHEATS,function DirectCheat)


would it work if i removed call TriggerRegisterPlayerChatEvent(t,p,s,true)
and replaced it with
wat can i edit to these?

call TriggerRegisterPlayerEvent(t,p,EVENT_PLAYER_ARROW_UP_DOWN)
and then change
exitwhen GetTriggerExecCount(t)>0 to exitwhen GetTriggerExecCount(t)>15 ?
how would i put in a timer from the first up key to the 16th upkey
so basically the player presses the up key 16 times in a row within X time to activate trigger


First off waitfordisable function has nothing to do with the activation in aero's cheat pack.
You'd have to replace
call TriggerRegisterPlayerChatEvent(ICHEAT,Player(qaz),"-cheat",false) and
if SubString(GetEventPlayerChatString(),0,23)=="-cheated by wc3edit.net" then
with your activator, im not going to look into if your activator works or not so don't complain to me it don't work as this is jsut what you would want to replace, though personally I would just make an if tree with a timer check. :wink:

Edit: [Moved]
Last edited by weirdone2 on July 11th, 2007, 3:09 am, edited 1 time in total.
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: [REQUEST] A different cheat activator in jass

Post by Xantan »

Even if you want the activator to be hard, people will find it if they search the .j.

THE BEST way is to encrypt it with hash.

anyways, this is all you on your own now if you'd really like to change it to that.
Post Reply