adding gold/lumber cheats to any map in 3 easy steps!

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Dekar
Forum Drunk
Posts: 2895
Joined: January 17th, 2007, 4:22 pm
Location: Darmstadt, Germany

Post by Dekar »

Code: Select all

function Trig_blubb_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 1000, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction

here: AdjustPlayerStateBJ( 1000

greets Dekar
Don't pm me with Warcraft questions, this is a forum so just make a post!

In the world of thinking we are all immigrants. -Robert Nozick
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Post by Aero »

Hey,

The tutorial is pretty good and seems to work on quite a few maps, however...

I added a gold cheat in a protected sheep tag map using this method and it worked fine

Next I decided to try Island Defense (2.7.5BETA in case you're wondering) but the .j script was different in that there was no 'useless spaces' or //(custom text here)
Also, in the beginning where it defines triggers (Normally it's 'trigger gg_trg_(trigger_name) = null' but here it was 'trigger gg_trg_(trigger_name) = CreateTrigger()'. The actual triggers are also slightly different too. I tried to apply the 'trigger gg_trg_(trigger_name) = null' method here with the map and included the "call InitTrig_(trigger_name)( )" after the 'function main' but the map ended up bugged. I tried other modifications but to no avail.

Care to explain and offer a solution? :?

By the way, I'm also curious about how to remove triggers because when I removed a trigger from a map (Removed both the 'trigger gg_trg_(trigger_name = null' and the actual trigger) and the map ended up corrupt

Any help appreciated, thanks for time/help (If I get it :?)

-Aero
User avatar
Dekar
Forum Drunk
Posts: 2895
Joined: January 17th, 2007, 4:22 pm
Location: Darmstadt, Germany

Post by Dekar »

just post link, there should be really no problem!

greets Dekar
Don't pm me with Warcraft questions, this is a forum so just make a post!

In the world of thinking we are all immigrants. -Robert Nozick
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Post by Aero »

Since it was a beta version it isn't available on the site but here's the version before (which gives me the same result too)

http://islanddefense.net/mambo/index.php?option=com_remository&Itemid=42&func=fileinfo&id=66

Any help appreciated :?

EDIT: Island Defense cheated version here
May need to extract .j script from the cheated map and replace the original's .j script with it in case it doesn't work for you
Otherwise, works fine

-Aero
gruzinda
Newcomer
Posts: 5
Joined: January 29th, 2007, 10:10 pm

Crusade RPG 1.01J

Post by gruzinda »

I followed ur steps and it works for many maps but i cant do it to Crusade RPG 1.01J if u could please add a few commands like gold, xp : it will be great. here the link to the map http://www.epicwar.com/maps/9107/
User avatar
Dekar
Forum Drunk
Posts: 2895
Joined: January 17th, 2007, 4:22 pm
Location: Darmstadt, Germany

Post by Dekar »

it works, im sure... youve probably sone something wrong!
this is NO request forum!

greets Dekar
Don't pm me with Warcraft questions, this is a forum so just make a post!

In the world of thinking we are all immigrants. -Robert Nozick
Shadow-Flare
Newcomer
Posts: 14
Joined: February 6th, 2007, 4:21 pm

Post by Shadow-Flare »

Didn't work for me.
Tried it on mc 5.4a, but I can't create it+doesn't show any player slots+when I click Start Game it just reloads wc.
MeklarSpy
Newcomer
Posts: 12
Joined: February 4th, 2007, 3:11 pm

Post by MeklarSpy »

The method works, i managed to do it in the 6.40 version of dota.

However, i cannot do it in the 6.41 versions :(. When i try to create the game, war3 crashes. Is there a possibility icefrog created an anti-edit thing or sth?

Also, maybe you would like to know, that everytime you edit the map with MPQ master, about ~100kB are added to map size ;).
User avatar
Dekar
Forum Drunk
Posts: 2895
Joined: January 17th, 2007, 4:22 pm
Location: Darmstadt, Germany

Post by Dekar »

havnt tried dota 6.41 yet...
you can use the flush function in mpq master/compress in winmpq
if this doesnt work, just extract all files and delete them inside
the mpq... then just flush and import them again!

greets Dekar
Don't pm me with Warcraft questions, this is a forum so just make a post!

In the world of thinking we are all immigrants. -Robert Nozick
Edv
Newcomer
Posts: 5
Joined: February 15th, 2007, 1:48 pm

program for compressing?

Post by Edv »

Some program exists to compress the map that to been unprotected and modified?

size of the original map -> 1.6Mb :?
size of the map modified -> 3.7Mb :shock: :shock:


Thx..

Atte. Edv