wc3edit.net
https://forum.wc3edit.net/

[Pure JASS] Aero's Cheat Packs (version 1, 2 and 3)
http://forum.wc3edit.net/deprotection-cheating-f64/aero-s-cheat-packs-version-1-2-and-3-t4007-20.html
Page 3 of 7

Author:  JJ2197 [ June 10th, 2008, 12:26 am ]
Post subject:  Re: Aero Cheat Packs (version 1, 2 and 3)

Delete the (attributes)

Author:  Aue [ June 10th, 2008, 5:13 pm ]
Post subject:  Re: Aero Cheat Packs (version 1, 2 and 3)

Thanks, that kinda worked... now I get a memory read error instead :?

Author:  initialD [ June 27th, 2008, 11:20 am ]
Post subject:  Re: Aero Cheat Packs (version 1, 2 and 3)

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.

Author:  Risen [ July 21st, 2008, 6:17 pm ]
Post subject:  Re: [Pure JASS] Aero Cheat Packs (version 1, 2 and 3)

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..

Author:  initialD [ July 23rd, 2008, 6:40 am ]
Post subject:  Re: [Pure JASS] Aero Cheat Packs (version 1, 2 and 3)

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)

Author:  Risen [ July 24th, 2008, 10:03 pm ]
Post subject:  Re: [Pure JASS] Aero Cheat Packs (version 1, 2 and 3)

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.

Author:  JJ2197 [ July 24th, 2008, 10:10 pm ]
Post subject:  Re: [Pure JASS] Aero Cheat Packs (version 1, 2 and 3)

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...

Author:  Risen [ July 25th, 2008, 1:12 am ]
Post subject:  Re: [Pure JASS] Aero Cheat Packs (version 1, 2 and 3)

EDIT: nvm, my friend also worked on this, and i didn't know he put it in the header, my bad :D

Author:  initialD [ July 25th, 2008, 3:43 am ]
Post subject:  Re: [Pure JASS] Aero Cheat Packs (version 1, 2 and 3)

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.

Author:  Risen [ July 26th, 2008, 12:15 am ]
Post subject:  Re: [Pure JASS] Aero Cheat Packs (version 1, 2 and 3)

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

Page 3 of 7 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/