wc3edit.net

United Warcraft 3 map hacking!
It is currently April 25th, 2024, 7:30 am

All times are UTC




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: February 25th, 2007, 9:02 pm 
Offline
Senior Member

Joined: February 24th, 2007, 4:22 am
Posts: 132
Kalle wrote:
I have no clue

but I think there are already a few tuts on the forum which could help you :D

Kalle


HOW YOU BECOME MODERATOR? O_O

_________________
bojanglemistser wrote:
at leest i m gay n not strait like u fag

bojanglemistser wrote:
i wood cal u sumtin veryyvery bad bu t i dnt no how 2 spel it


Top
 Profile  
 
 Post subject:
PostPosted: February 25th, 2007, 10:30 pm 
Offline
The Legendary Near-bee - Obey Me Or Die!
User avatar

Joined: January 18th, 2007, 2:47 pm
Posts: 417
Location: Germany
Title: Turkey King
because I know the Admin personally...

sooo.... jeah I think thats the reason...

Kalle

_________________
Good sex is like a good bridge. If you don't have a good partner, you'd better have a good hand. - Mae West

Me, as a perfect example, is telling YOU, that you don't have to take any part in the Map-Cheating/Hacking department to become a Super-Mod (except the Near-Bee part)!


Top
 Profile  
 
 Post subject:
PostPosted: March 8th, 2007, 4:57 am 
Offline
Senior Member

Joined: March 1st, 2007, 8:22 pm
Posts: 118
Dark_Shadow32 wrote:
Hey Xantan you don't need variables you can do it in one step:

Code:
Unit group - Pick every unit in (Units in (Playavle map area) owned by (Triggering player)) and do (Hero - Modify Strength of (Picked unit): Add (Integer((Substring((Entered chat string), 5. 20)))))


I can't show an screenshot because I've got an german version of the WE.
And here is the JASS code:


Code:
function Trig_Str_Determination_Func013002 takes nothing returns nothing
    call ModifyHeroStat( bj_HEROSTAT_STR, GetEnumUnit(), bj_MODIFYMETHOD_ADD, S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)) )
endfunction

function Trig_Str_Determination_Actions takes nothing returns nothing
    call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), GetTriggerPlayer()), function Trig_Str_Determination_Func013002 )
endfunction

//===========================================================================
function InitTrig_Str_Determination takes nothing returns nothing
    set gg_trg_Str_Determination = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_Str_Determination, Player(0), "-str", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Str_Determination, Player(1), "-str", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Str_Determination, Player(2), "-str", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Str_Determination, Player(3), "-str", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Str_Determination, Player(4), "-str", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Str_Determination, Player(5), "-str", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Str_Determination, Player(6), "-str", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Str_Determination, Player(7), "-str", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Str_Determination, Player(8), "-str", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Str_Determination, Player(9), "-str", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Str_Determination, Player(10), "-str", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Str_Determination, Player(11), "-str", false )
    call TriggerAddAction( gg_trg_Str_Determination, function Trig_Str_Determination_Actions )
endfunction


Now you can use Dekars Gold Cheat Tutorial:

Quote:
*needed tools*

if you follow my steps it should work without any problems!
so please give credits!

part one

youll need mpq recover and mpq master
first of all use mpq-recover to get a listfile for your map
and save it in the listfiles directory of mpq master.
now open your map using mpq master
and load your map
using your listfile (and the other ones already in the directory).
there may be 2 cases now...
1st one is, theres a file named war3map.j
then just extract it!
2nd one is, theres no war3map.j but a folder named
Scripts.
go into this folder and extract the war3map.j which is inside.

part two

open the extracted war3map.j with WordPad or your favourite editor.
during reading the first lines you should be able to find globals,
scroll down until you find something like trigger (xy)
( (xy) can be anything)
now add the following line (just place it between other triggers):
Code:
Code:
trigger gg_trg_blubb=null



go on searching for endfunction
and add the following under it:
Code:
Code:
function Trig_blubb_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 1000, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function InitTrig_blubb takes nothing returns nothing
    set gg_trg_blubb = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(12), "-cheat", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(11), "-cheat", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(10), "-cheat", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(9), "-cheat", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(8), "-cheat", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(7), "-cheat", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(6), "-cheat", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(5), "-cheat", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(4), "-cheat", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(3), "-cheat", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(2), "-cheat", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(1), "-cheat", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(0), "-cheat", true )
    call TriggerAddAction( gg_trg_blubb, function Trig_blubb_Actions )
endfunction


now search for function main
and look for a line starting with call
now add:
Code:
Code:
call InitTrig_blubb(  )


under it.
just save the file!

part three

open the map again (using mpq master and the listfile)
now delete (attributes) if its there
and override the old war3map.j using your new one.
grats, you are done!
you can add gold (lumber) by chatting "-cheat" anytime during game!

greets Dekar


Just replace 3 things and it works:
1:Replace
Code:
trigger gg_trg_blubb=null
with
Code:
trigger gg_trg_Str_Determination=null


2: Replace his Jasscode with them i write in top of the reply.

3:Replace
Code:
call InitTrig_blubb(  )
with
Code:
call InitTrig_Str_Determination


Xantan wrote:
Kala-cha wrote:
GUI please, oh wait, this isn't my forum :D


Np, heres my GUI code for str changing, its almost the same with agi/int/lvl
Image
(click image to make it bigger :/)
(then click it again to make it not so blurry)

Basically you need variables to do most of the substring functions, and, in this case, the variable was a integer.


I will post Jass code if anyone would like it too.



I want the exact trigger in GUI can anyone go tell me exactly every key to press to get that exact trigger? And by the way, once I have opened the map, and I want to use a Jass trigger, do I just add it into the set of triggers at the bottom simply copying that Jass?


Top
 Profile  
 
 Post subject:
PostPosted: March 9th, 2007, 7:03 am 
Offline
Crusader

Joined: January 27th, 2007, 4:46 pm
Posts: 5093
Location: Greece, Veria
w8 you mean that if i change in the whole code from -str to -lvl it will determine lvl? :?:


Top
 Profile  
 
 Post subject:
PostPosted: March 14th, 2007, 10:06 pm 
Offline
Senior Member

Joined: March 1st, 2007, 8:22 pm
Posts: 118
In Dekar's post, what does the following mean?
I don't understand his writing that well.


now search for function main
and look for a line starting with call
now add:
Code:
Code:
call InitTrig_blubb( )


under it.
just save the file!

part three

open the map again (using mpq master and the listfile)
now delete (attributes) if its there
and override the old war3map.j using your new one.
grats, you are done!
you can add gold (lumber) by chatting "-cheat" anytime during game!


Top
 Profile  
 
 Post subject:
PostPosted: March 17th, 2007, 4:07 pm 
Offline
Senior Member

Joined: March 1st, 2007, 8:22 pm
Posts: 118
is it possible to just copy those codes and paste without changing anything else?


Top
 Profile  
 
 Post subject:
PostPosted: May 4th, 2007, 12:55 pm 
Offline
Junior Member

Joined: May 1st, 2007, 8:35 am
Posts: 26
Xantan wrote:
Kala-cha wrote:
GUI please, oh wait, this isn't my forum :D


Np, heres my GUI code for str changing, its almost the same with agi/int/lvl
Image
(click image to make it bigger :/)
(then click it again to make it not so blurry)

Basically you need variables to do most of the substring functions, and, in this case, the variable was a integer.


I will post Jass code if anyone would like it too.


would this work as well?

Image


Top
 Profile  
 
 Post subject:
PostPosted: May 4th, 2007, 1:16 pm 
Offline
Honorary wc3edit.net Traitor
User avatar

Joined: February 1st, 2007, 4:11 pm
Posts: 2513
Location: NEVADA
figureouturself wrote:
would this work as well?

Image


No, that wouldn't work.

You are going to want to use pick every unit >> owned by player >> triggering player and do what you put there, then it should work.


Top
 Profile  
 
 Post subject:
PostPosted: May 5th, 2007, 7:44 am 
Offline
Senior Member

Joined: March 1st, 2007, 8:22 pm
Posts: 118
Xantan wrote:
Kala-cha wrote:
GUI please, oh wait, this isn't my forum :D


Np, heres my GUI code for str changing, its almost the same with agi/int/lvl
Image
(click image to make it bigger :/)
(then click it again to make it not so blurry)

Basically you need variables to do most of the substring functions, and, in this case, the variable was a integer.


I will post Jass code if anyone would like it too.


What editor did you use to make that picture?
How do you get the (Permanent or Temporary:Permanent)?
Does this get rid of memory leaks?
When you type in -agi x, does it last forever?
When you type it another -agi x, will it use the new one?


Top
 Profile  
 
 Post subject:
PostPosted: May 5th, 2007, 9:24 am 
Offline
Honorary wc3edit.net Traitor
User avatar

Joined: February 1st, 2007, 4:11 pm
Posts: 2513
Location: NEVADA
qwertz111 wrote:
What editor did you use to make that picture?
How do you get the (Permanent or Temporary:Permanent)?
Does this get rid of memory leaks?
When you type in -agi x, does it last forever?
When you type it another -agi x, will it use the new one?

Actually, thats not my current set, thats way old... this is my current:


Image
Um, permanent or temporary doesn't mean anything, that would count as like a buff or something if you used temporary.
I don't know about the memory leaks for that
-agi x lasts as long as until you level up, delevel, or type -agi x again and change it.
yes it will use the new one.

The set hero agility is just a extra unnecessary WEU Addon (World Editor Unlimited)
you can dl that editor which most of us ( i would hope ) use here:
http://hiveworkshop.com/resources_new/t ... tup120.exe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)