Figuring out a map's cheats through Jass

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Niipaa
Newcomer
Posts: 11
Joined: December 4th, 2007, 7:45 am
Location: nyc

Figuring out a map's cheats through Jass

Post by Niipaa »

i've been trying to figure out a map's cheat through reading its jass file, but it seems to have been hidden somewhere? these are cheats you type in through player chat. this is a dota-style AoS game.

here is an example of a non-hidden cheat:

Code: Select all

call DisplayTextToForce(GetPlayersAll(),"Naruto suddenly goes on a WILD RAMPAGE ~ !")
return
endfunction
function vx8 takes nothing returns nothing
set rw=CreateTrigger()
call TriggerRegisterPlayerChatEvent(rw,Player(0),"-go wild",true)
call TriggerRegisterPlayerChatEvent(rw,Player(1),"-go wild",true)
call TriggerRegisterPlayerChatEvent(rw,Player(2),"-go wild",true)
call TriggerRegisterPlayerChatEvent(rw,Player(3),"-go wild",true)
call TriggerRegisterPlayerChatEvent(rw,Player(4),"-go wild",true)
call TriggerRegisterPlayerChatEvent(rw,Player(5),"-go wild",true)
call TriggerRegisterPlayerChatEvent(rw,Player(6),"-go wild",true)
call TriggerRegisterPlayerChatEvent(rw,Player(7),"-go wild",true)
call TriggerRegisterPlayerChatEvent(rw,Player(8),"-go wild",true)
call TriggerRegisterPlayerChatEvent(rw,Player(9),"-go wild",true)
call TriggerAddCondition(rw,Condition(function vk8))
call TriggerAddAction(rw,function vw8)
so if you type in "-go wild" with a certain character, it will be replaced with a secret one.

here is where i believe the cheat is completely hidden within the file:

Code: Select all

call DisplayTextToForce(GetPlayersAll(),"Jiraiya starts to get serious...")
return
endfunction
function v_8 takes nothing returns nothing
set uw=CreateTrigger()
call TriggerRegisterPlayerChatEvent(uw,Player(0),"-",false)
call TriggerRegisterPlayerChatEvent(uw,Player(1),"-",false)
call TriggerRegisterPlayerChatEvent(uw,Player(2),"-",false)
call TriggerRegisterPlayerChatEvent(uw,Player(3),"-",false)
call TriggerRegisterPlayerChatEvent(uw,Player(4),"-",false)
call TriggerRegisterPlayerChatEvent(uw,Player(5),"-",false)
call TriggerRegisterPlayerChatEvent(uw,Player(6),"-",false)
call TriggerRegisterPlayerChatEvent(uw,Player(7),"-",false)
call TriggerRegisterPlayerChatEvent(uw,Player(8),"-",false)
call TriggerRegisterPlayerChatEvent(uw,Player(9),"-",false)
call TriggerAddCondition(uw,Condition(function vQ8))
call TriggerAddAction(uw,function vZ8)
unlike the first line of coding, this one seems to be hidden in order to keep players from finding out the cheat through simply reading the jass file. Any help, comments, would be greatly appreciated.

i have attached the Jass file according to the map i am talking about.

EDIT:// nevermind the upload didnt seem to work. here is the link to the map: http://epicwar.com/maps/36556/
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Figuring out a map's cheats through Jass

Post by Xantan »

its here:
call TriggerAddCondition(uw,Condition(function vQ8))

soo, function vQ8 I think
User avatar
Niipaa
Newcomer
Posts: 11
Joined: December 4th, 2007, 7:45 am
Location: nyc

Re: Figuring out a map's cheats through Jass

Post by Niipaa »

i'm sorry, i still don't quite understand how i can find this cheat. it is not written in the jass anywhere.
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Figuring out a map's cheats through Jass

Post by Xantan »

upload the map
or post the .j please
User avatar
Niipaa
Newcomer
Posts: 11
Joined: December 4th, 2007, 7:45 am
Location: nyc

Re: Figuring out a map's cheats through Jass

Post by Niipaa »

the j file was too big to be posted here so i uploaded it somewhere else:
http://www.esnips.com/doc/4a4509a3-7ba0 ... 70/war3map

the map can be found here:
http://www.epicwar.com/maps/36556

the cheat that i am trying to find, when activated, shows:
call DisplayTextToForce(GetPlayersAll(),"Jiraiya starts to get serious...")
User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Re: Figuring out a map's cheats through Jass

Post by JJ2197 »

I think it works something like this...

First the function v_8 is called at start up...
2nd if any player says - then it fires the trigger uw
3rd if the conditions:

Code: Select all

function vQ8 takes nothing returns boolean
if(not(CountUnitsInGroup(sA(GetTriggerPlayer(),1315990632))==1))then
return false
endif
return la(GetEventPlayerChatString())
endfunction
are true the actions will run
4th the actions:

Code: Select all

function vZ8 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(sA(GetTriggerPlayer(),1315990632),function vR8)
call CreateNUnitsAtLoc(1,1311781197,GetTriggerPlayer(),GetRectCenter(GetPlayableMapRect()),bj_UNIT_FACING)
if(v28())then
call SetUnitPositionLoc(GetLastCreatedUnit(),GetRandomLocInRect(cg))
else
call SetUnitPositionLoc(GetLastCreatedUnit(),GetRandomLocInRect(Dg))
endif
set J4[GetConvertedPlayerId(GetTriggerPlayer())]=GetLastCreatedUnit()
call SelectUnitForPlayerSingle(J4[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
call DisplayTextToForce(GetPlayersAll(),"Jiraiya starts to get serious...")
return
endfunction
And no matter what as long as the conditions were met and someone said - it will display that
to everyone... >.>
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
User avatar
Niipaa
Newcomer
Posts: 11
Joined: December 4th, 2007, 7:45 am
Location: nyc

Re: Figuring out a map's cheats through Jass

Post by Niipaa »

the problem is, there is other text that is needed in order for the actions to trigger. typing in "-" is not the full cheat; there is suppose to be other text that must be typed in along with it. referring back to my first post, one section shows the cheat as "-go wild" which will run the actions. the particular section we are looking at right now does not reveal the cheat.


below is an example of what i am talking about. this section of the jass does NOT reveal the cheat here or anywhere in the entire file, but the actual cheat in order for the action to run here is "-secret past"

Code: Select all

set J4[GetConvertedPlayerId(GetTriggerPlayer())]=GetLastCreatedUnit()
call SelectUnitForPlayerSingle(J4[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
call DisplayTextToForce(GetPlayersAll(),"Kakashi suddenly reveals his hidden history !")
return
endfunction
function uv8 takes nothing returns nothing
set mw=CreateTrigger()
call TriggerRegisterPlayerChatEvent(mw,Player(0),"-",false)
call TriggerRegisterPlayerChatEvent(mw,Player(1),"-",false)
call TriggerRegisterPlayerChatEvent(mw,Player(2),"-",false)
call TriggerRegisterPlayerChatEvent(mw,Player(3),"-",false)
call TriggerRegisterPlayerChatEvent(mw,Player(4),"-",false)
call TriggerRegisterPlayerChatEvent(mw,Player(5),"-",false)
call TriggerRegisterPlayerChatEvent(mw,Player(6),"-",false)
call TriggerRegisterPlayerChatEvent(mw,Player(7),"-",false)
call TriggerRegisterPlayerChatEvent(mw,Player(8),"-",false)
call TriggerRegisterPlayerChatEvent(mw,Player(9),"-",false)
call TriggerAddCondition(mw,Condition(function ui8))
call TriggerAddAction(mw,function uu8)
endfunction
so if you try searching for the cheat text "-secret past", you won't find it in the file.
User avatar
Vegas
Shopping Maul USA Creator
Posts: 1814
Joined: January 18th, 2007, 11:07 am
Title: No Comment
Location: Calgary Canada
Has thanked: 116 times
Been thanked: 10 times

Re: Figuring out a map's cheats through Jass

Post by Vegas »

I always thought a "-",false meant that if someone decided to just type a minus, it wouldnt trigger anything. there still needs to be something elsé as niipaa said.
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Figuring out a map's cheats through Jass

Post by Xantan »

false as a minus means it could be something else, ie the condition somewhere on some trigger is a substring, and its first letter was -.


because event: - as a substring is event: "-", false

anyways, ill try and look at the .j soon i hope
User avatar
Niipaa
Newcomer
Posts: 11
Joined: December 4th, 2007, 7:45 am
Location: nyc

Re: Figuring out a map's cheats through Jass

Post by Niipaa »

thanks you guys. i'm starting to think maybe the cheat was encrypted or hashed somehow...