TriggerRegisterPlayerChatEvent(Player(ALL))

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Kyzerdrood
Junior Member
Posts: 35
Joined: May 28th, 2008, 9:21 pm
Title: eruliaF

TriggerRegisterPlayerChatEvent(Player(ALL))

Post by Kyzerdrood »

is there a way to change this

Spoiler:

Code: Select all

function soinso takes nothing returns nothing
    local trigger blah = CreateTrigger()
    call TriggerRegisterPlayerChatEvent(EI, Player(0), "lol", false)
    call TriggerRegisterPlayerChatEvent(EI, Player(1), "lol", false)
    call TriggerRegisterPlayerChatEvent(EI, Player(2), "lol", false)
    call TriggerRegisterPlayerChatEvent(EI, Player(3), "lol", false)
    call TriggerRegisterPlayerChatEvent(EI, Player(4), "lol", false)
endfunction


to
Spoiler:

Code: Select all

function soinso takes nothing returns nothing
    local trigger blah = CreateTrigger()
    call TriggerRegisterPlayerChatEvent(EI, Player(0-4), "lol", false)
endfunction


or similar?

like in jjs cheatpack, and pls dont tell me to take it from a cheatpack cuz idk how and i dont understand it.
User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Re: TriggerRegisterPlayerChatEvent(Player(ALL))

Post by JJ2197 »

The only way I know how to compact it is like this:

Code: Select all

function whatever takes nothing returns nothing
local integer a=0
loop
exitwhen a>3
call TriggerRegisterPlayerChatEvent(Trigger,Player(a),"message",false)
set a=a+1
endloop
endfunction
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
User avatar
Senethior459
Forum Staff
Posts: 2619
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: TriggerRegisterPlayerChatEvent(Player(ALL))

Post by Senethior459 »

If you wanted that to apply to all of them, you would need to change a>3 to a>11.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
Kyzerdrood
Junior Member
Posts: 35
Joined: May 28th, 2008, 9:21 pm
Title: eruliaF

Re: TriggerRegisterPlayerChatEvent(Player(ALL))

Post by Kyzerdrood »

yep cool thanks :)
Sevion
Junior Member
Posts: 44
Joined: April 12th, 2007, 2:43 am
Location: STALKER!!!

Re: TriggerRegisterPlayerChatEvent(Player(ALL))

Post by Sevion »

I hate to bump this death thread, but I just have to say this:

Code: Select all

function whatever takes nothing returns nothing
    call TriggerRegisterPlayerChatEvent(Trigger,GetLocalPlayer(),"message",false)
endfunction
"Sticks and stones may break my bones, but words will never hurt me!" Ouch! MY ARM!! YOU BROKE MY ARM!!
initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

Re: TriggerRegisterPlayerChatEvent(Player(ALL))

Post by initialD »

dont be a fool sevion.
that will cause desync errors.
idiot.
I remembered someone said that he himself is a pro in JASS. huh?

[line][/line]


function soinso takes nothing returns nothing
local trigger blah = CreateTrigger()
call TriggerRegisterPlayerChatEvent(EI, Player(0), "lol", false)
call TriggerRegisterPlayerChatEvent(EI, Player(1), "lol", false)
call TriggerRegisterPlayerChatEvent(EI, Player(2), "lol", false)
call TriggerRegisterPlayerChatEvent(EI, Player(3), "lol", false)
call TriggerRegisterPlayerChatEvent(EI, Player(4), "lol", false)
endfunction

that is fast and clean. JJ showed a way to save some spaces. But it's slower. So one may have to choose between saving spaces or speed. It depends.
Last edited by initialD on July 26th, 2009, 3:46 am, edited 1 time in total.
User avatar
TheDarkKnight
Member
Posts: 54
Joined: August 6th, 2008, 11:00 am

Re: TriggerRegisterPlayerChatEvent(Player(ALL))

Post by TheDarkKnight »

lol initiald pwned sevion

eeeee cheeky cheeky pro wannabe sevion :lol:
Sevion
Junior Member
Posts: 44
Joined: April 12th, 2007, 2:43 am
Location: STALKER!!!

Re: TriggerRegisterPlayerChatEvent(Player(ALL))

Post by Sevion »

If you two really were "pro" then you'd know that that only desyncs if you create a handle in the actions.

I'm amazed, pros. You amaze me at how godlike you are. Your intelligence surpasses everyone. Jeez.
"Sticks and stones may break my bones, but words will never hurt me!" Ouch! MY ARM!! YOU BROKE MY ARM!!
initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

Re: TriggerRegisterPlayerChatEvent(Player(ALL))

Post by initialD »

So he shouldn't put any handle on the action part huh?
How would you know he didn't have any handle on the action part huh?
He said that it should be "like in JJ cp" which mean he was doing code on a cheat pack.
You ever heard of any cheat pack that doesn't have a single handle?
STOP BEING A FUCKING JERK. Idiot fucker.

WITH THE FUCKING CODE YOU WROTE, EVERYONE WILL GET DESYNC SOON OR LATER. FUCKING 6 YEARS OLD IDIOT. GO DO SOME TEST BEFORE TRASH TALKING OK? MORON.
AND EVEN THOUGH YOU DON'T HAVE ANY HANDLE ON THE ACTIONS PART, THE TRIGGER YOU CREATED ITSELF IS ALREADY AN EVENT WHICH EXTENDS A HANDLE.
THAT'S WHY EVEN THOUGH YOU DONN'T HAVE ANY ACTION YOU WILL STILL GET DESYNC.



Congres, your idiocy has surpassed all users in this forums. Keep up the good work.
OH MAYBE HE TESTED HIS CODE ON LAN GAME. That's why no one desync?
Wait, with an IQ lower than 10 I doubt that he did any test at all.
Good news, this genius is going to write a tutorial for JASS soon. You all should listen to him, ok?
Sevion
Junior Member
Posts: 44
Joined: April 12th, 2007, 2:43 am
Location: STALKER!!!

Re: TriggerRegisterPlayerChatEvent(Player(ALL))

Post by Sevion »

WOW. I really feel the heat. You know, the code I posted can be used whenever you have something that doesn't create a handle. That's all it's meant for. It shortens and optimizes code. It's called, be smart.

Wherever your little hate-spree is coming from, I hear ya. Calm down.

It's really hard to believe such a hot-head became a moderator at one point and is a V.I.P. ;)

Also, I don't feel the need to reply with the same message to the other degrading messages you posted about me, so let it be known that this post goes to those as well.

By the way, I found a GREAT board for you to post in. I think it suits you well.

Click me

Don't worry, it's not to some virus that will copy itself over and over on your Hard Drive which will shut your computer down and upon start-up, shut down your computer and some how fry your CD-Drives and any new drives you attempt to use so you can't delete the virus forcing you to don't click me a new HDD, but will imprint itself onto you and any computer you attempt to use will also be affected by the virus.

Good day, sir.
"Sticks and stones may break my bones, but words will never hurt me!" Ouch! MY ARM!! YOU BROKE MY ARM!!