[Pure JASS] Aero's Cheat Packs (version 1, 2 and 3)

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Re: Aero Cheat Packs (version 1, 2 and 3)

Post by JJ2197 »

Delete the (attributes)
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
Aue
Newcomer
Posts: 15
Joined: June 9th, 2008, 10:37 pm

Re: Aero Cheat Packs (version 1, 2 and 3)

Post by Aue »

Thanks, that kinda worked... now I get a memory read error instead :?
initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

Re: Aero Cheat Packs (version 1, 2 and 3)

Post by initialD »

just upload the J file here.
Then people here can tell you what's the problem.

those codes was copied directly from my JASScraft after I have done editing them.
So I didn't really add any instruction to them.
Those 3 parts were there.

Nvm, for newbies' sake, I added back instructions there. Now you can see those 3 parts easily.
User avatar
Risen
Forum Staff
Posts: 811
Joined: January 1st, 2008, 12:58 am

Re: [Pure JASS] Aero Cheat Packs (version 1, 2 and 3)

Post by Risen »

Code: Select all

call TriggerRegisterPlayerChatEvent(cp_ICHEAT,Player(0),"-cheat",false)
If you wanna save a little space/time, just change it to;

Code: Select all

call TriggerRegisterAnyPlayerChatEvent(cp_ICHEAT,"-cheat",false)
It registers all player chat events....pretty useful in situations..
Image
Wanna learn to hack maps? --> Guide
initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

Re: [Pure JASS] Aero Cheat Packs (version 1, 2 and 3)

Post by initialD »

Code: Select all

call TriggerRegisterAnyPlayerChatEvent
If this native list ever existed. We have already used it in the JASS pack.
Too Bad there is no such native list.
In another word, it doesn't work.

To save some spaces. The only way to do it is to Loop the integer.

Code: Select all

local integer i7=0
loop
call TriggerRegisterPlayerChatEvent(cp_ICHEAT,Player(i7),"-cheat",false)
set i7=i7+1
exitwhen i7>11
endloop
But .....
There is a reason Aero do his code that way.
Because it runs faster, without loops:

Code: Select all

call TriggerRegisterPlayerChatEvent(cp_ICHEAT,Player(0),"-cheat",false)
call TriggerRegisterPlayerChatEvent(cp_ICHEAT,Player(1),"-cheat",false)
call TriggerRegisterPlayerChatEvent(cp_ICHEAT,Player(2),"-cheat",false)
call TriggerRegisterPlayerChatEvent(cp_ICHEAT,Player(3),"-cheat",false)
call TriggerRegisterPlayerChatEvent(cp_ICHEAT,Player(4),"-cheat",false)
etc...
there is another way to do it. But I haven't tested it yet, so it may not work.
You may test it yourself if you are interested.

Code: Select all

call TriggerRegisterPlayerChatEvent(cp_ICHEAT,GetLocalplayer(),"-cheat",false)
User avatar
Risen
Forum Staff
Posts: 811
Joined: January 1st, 2008, 12:58 am

Re: [Pure JASS] Aero Cheat Packs (version 1, 2 and 3)

Post by Risen »

initiald wrote:

Code: Select all

call TriggerRegisterAnyPlayerChatEvent
If this native list ever existed. We have already used it in the JASS pack.
Too Bad there is no such native list.
In another word, it doesn't work.
Lmao. it does work. I use it for at least 20 different chat strings in my map..>.> so obviously it works.
Image
Wanna learn to hack maps? --> Guide
User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Re: [Pure JASS] Aero Cheat Packs (version 1, 2 and 3)

Post by JJ2197 »

There is no native TriggerRegisterAnyPlayerChatEvent...
I've tried it myself, just gives an error... Maybe you could
post the map... or a map using it...
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
Risen
Forum Staff
Posts: 811
Joined: January 1st, 2008, 12:58 am

Re: [Pure JASS] Aero Cheat Packs (version 1, 2 and 3)

Post by Risen »

EDIT: nvm, my friend also worked on this, and i didn't know he put it in the header, my bad :D
Image
Wanna learn to hack maps? --> Guide
initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

Re: [Pure JASS] Aero Cheat Packs (version 1, 2 and 3)

Post by initialD »

Risen wrote:
initiald wrote:

Code: Select all

call TriggerRegisterAnyPlayerChatEvent
If this native list ever existed. We have already used it in the JASS pack.
Too Bad there is no such native list.
In another word, it doesn't work.
Lmao. it does work. I use it for at least 20 different chat strings in my map..>.> so obviously it works.
so sure of it?
Upload the map you said it works. Then you can have be my JASS teacher then.

w/e
don't get angry, just talking.
User avatar
Risen
Forum Staff
Posts: 811
Joined: January 1st, 2008, 12:58 am

Re: [Pure JASS] Aero Cheat Packs (version 1, 2 and 3)

Post by Risen »

initiald wrote:
Risen wrote:
initiald wrote:

Code: Select all

call TriggerRegisterAnyPlayerChatEvent
If this native list ever existed. We have already used it in the JASS pack.
Too Bad there is no such native list.
In another word, it doesn't work.
Lmao. it does work. I use it for at least 20 different chat strings in my map..>.> so obviously it works.
so sure of it?
Upload the map you said it works. Then you can have be my JASS teacher then.

w/e
don't get angry, just talking.
Heres the code if you don't believe me..

Code: Select all

function TriggerRegisterAnyPlayerChatEvent takes trigger trig, string chatMessage, boolean exactMatch returns nothing
    local integer i = 0
    loop
        call TriggerRegisterPlayerChatEvent( trig, Player(i), chatMessage, exactMatch )
        set i = i + 1
        exitwhen i == bj_MAX_PLAYER_SLOTS
    endloop
endfunction
Image
Wanna learn to hack maps? --> Guide