wc3edit.net

United Warcraft 3 map hacking!
It is currently April 18th, 2024, 6:48 am

All times are UTC




Post new topic Reply to topic  [ 67 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
PostPosted: June 10th, 2008, 12:26 am 
Offline
Legendary Genius
User avatar

Joined: August 8th, 2007, 8:10 am
Posts: 1318
Location: St. George Utah
Title: Legendary Genius²
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


Top
 Profile  
 
PostPosted: June 10th, 2008, 5:13 pm 
Offline
Newcomer

Joined: June 9th, 2008, 10:37 pm
Posts: 15
Thanks, that kinda worked... now I get a memory read error instead :?


Top
 Profile  
 
PostPosted: June 27th, 2008, 11:20 am 
Offline
Some Honorary Title

Joined: June 8th, 2007, 5:08 am
Posts: 1781
Title: Angry Bird
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.


Top
 Profile  
 
PostPosted: July 21st, 2008, 6:17 pm 
Offline
Forum Staff
User avatar

Joined: January 1st, 2008, 12:58 am
Posts: 862
Code:
call TriggerRegisterPlayerChatEvent(cp_ICHEAT,Player(0),"-cheat",false)

If you wanna save a little space/time, just change it to;
Code:
call TriggerRegisterAnyPlayerChatEvent(cp_ICHEAT,"-cheat",false)

It registers all player chat events....pretty useful in situations..

_________________
Image
Wanna learn to hack maps? --> Guide


Top
 Profile  
 
PostPosted: July 23rd, 2008, 6:40 am 
Offline
Some Honorary Title

Joined: June 8th, 2007, 5:08 am
Posts: 1781
Title: Angry Bird
Code:
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:
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:
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:
call TriggerRegisterPlayerChatEvent(cp_ICHEAT,GetLocalplayer(),"-cheat",false)


Top
 Profile  
 
PostPosted: July 24th, 2008, 10:03 pm 
Offline
Forum Staff
User avatar

Joined: January 1st, 2008, 12:58 am
Posts: 862
initiald wrote:
Code:
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


Top
 Profile  
 
PostPosted: July 24th, 2008, 10:10 pm 
Offline
Legendary Genius
User avatar

Joined: August 8th, 2007, 8:10 am
Posts: 1318
Location: St. George Utah
Title: Legendary Genius²
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


Top
 Profile  
 
PostPosted: July 25th, 2008, 1:12 am 
Offline
Forum Staff
User avatar

Joined: January 1st, 2008, 12:58 am
Posts: 862
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


Top
 Profile  
 
PostPosted: July 25th, 2008, 3:43 am 
Offline
Some Honorary Title

Joined: June 8th, 2007, 5:08 am
Posts: 1781
Title: Angry Bird
Risen wrote:
initiald wrote:
Code:
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.


Top
 Profile  
 
PostPosted: July 26th, 2008, 12:15 am 
Offline
Forum Staff
User avatar

Joined: January 1st, 2008, 12:58 am
Posts: 862
initiald wrote:
Risen wrote:
initiald wrote:
Code:
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:
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


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 17 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)