Island Defense

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

storyyeller
Senior Member
Posts: 178
Joined: February 15th, 2009, 9:08 pm

Island Defense

Post by storyyeller »

I need a small modification to the triggers of Island Defense 3.0.0.a.PD
(Downloadable at http://mapgnome.org/map-download/277610)

I want this function to be modified slightly

Code: Select all

function I0O0IO takes string I0O0OO returns boolean
local integer l=StringLength(I0O0OO)
local boolean b
loop
exitwhen l==0
call I0OOIO(I0OOOO(SubString(I0O0OO,l-1,l)))
set l=l-1
endloop
set b=OIIOII==685642099 and OIIOOI==457471954
set OIIOII=0
set OIIOOI=0
return b
endfunction
and changed to this

Code: Select all

function I0O0IO takes string I0O0OO returns boolean
local integer l=StringLength(I0O0OO)
local boolean b
loop
exitwhen l==0
call I0OOIO(I0OOOO(SubString(I0O0OO,l-1,l)))
set l=l-1
endloop
call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,8,I2S(OIIOII))
call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,12,I2S(OIIOOI))
set b=OIIOII==685642099 and OIIOOI==457471954
set OIIOII=0
set OIIOOI=0
return true
endfunction
Also, if you don't mind, I would really appreciate it if you would explain how you did it as well.
Last edited by storyyeller on February 16th, 2009, 5:32 am, edited 1 time in total.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Island Defense

Post by Ozzapoo »

You can easily do it yourself! Just extract the war3map.j file, edit it and then re-insert it! You can find out how to extract and re-insert using JJ's cheatpack guide!
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
storyyeller
Senior Member
Posts: 178
Joined: February 15th, 2009, 9:08 pm

Re: Island Defense

Post by storyyeller »

When I do that, warcraft refuses to let me play the map. (When I click create game, it goes back to the previous screen)
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Island Defense

Post by Ozzapoo »

Did you delete the (attributes) file?
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
storyyeller
Senior Member
Posts: 178
Joined: February 15th, 2009, 9:08 pm

Re: Island Defense

Post by storyyeller »

Yes
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Island Defense

Post by Ozzapoo »

Press F9 in jasscraft, does it show any errors?
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
storyyeller
Senior Member
Posts: 178
Joined: February 15th, 2009, 9:08 pm

Re: Island Defense

Post by storyyeller »

I don't have Jasscraft. Should I download it?
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Island Defense

Post by Ozzapoo »

I guess notepad is fine, but jasscraft is better for editing, because it has a syntax checker. Upload your hacked one and i'll see what's wrong.
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
storyyeller
Senior Member
Posts: 178
Joined: February 15th, 2009, 9:08 pm

Re: Island Defense

Post by storyyeller »

Ok here is the modified version.
You do not have the required permissions to view the files attached to this post.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Island Defense

Post by Ozzapoo »

AHA! You accidentally made a small mistake ;)

You did this:
Spoiler:

Code: Select all

function I0O0IO takes string I0O0OO returns boolean
local integer l=StringLength(I0O0OO)
local boolean b
loop
exitwhen l==0
call I0OOIO(I0OOOO(SubString(I0O0OO,l-1,l)))
set l=l-1
endloopcall DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,8,I2S(OIIOII))call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,12,I2S(OIIOOI))
set b=OIIOII==685642099 and OIIOOI==457471954
set OIIOII=0
set OIIOOI=0
return true
endfunction

Code: Select all

endloopcall DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,8,I2S(OIIOII))call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,12,I2S(OIIOOI))
Make sure you seperate the lines and don't join them, otherwise it won't work. The above, SHOULD be:

Code: Select all

endloop
call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,8,I2S(OIIOII))
call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,12,I2S(OIIOOI))
Here's the fixed war3map.j. Have fun! (It should work, poke me if it doesn't)

Moved to Map Deprotection/Cheating
You do not have the required permissions to view the files attached to this post.
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!