wc3edit.net

United Warcraft 3 map hacking!
It is currently April 27th, 2024, 10:54 pm

All times are UTC




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: December 22nd, 2008, 10:38 pm 
Offline
Junior Member
User avatar

Joined: May 28th, 2008, 9:21 pm
Posts: 35
Title: eruliaF
is there a way to change this

Spoiler:
Code:
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:
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.


Top
 Profile  
 
PostPosted: December 22nd, 2008, 11:23 pm 
Offline
Legendary Genius
User avatar

Joined: August 8th, 2007, 8:10 am
Posts: 1318
Location: St. George Utah
Title: Legendary Genius²
The only way I know how to compact it is like this:

Code:
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


Top
 Profile  
 
PostPosted: December 23rd, 2008, 1:38 am 
Offline
Forum Staff
User avatar

Joined: June 2nd, 2007, 6:53 pm
Posts: 2732
Title: I Just Lost the Game
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


Top
 Profile  
 
PostPosted: December 23rd, 2008, 3:13 am 
Offline
Junior Member
User avatar

Joined: May 28th, 2008, 9:21 pm
Posts: 35
Title: eruliaF
yep cool thanks :)


Top
 Profile  
 
PostPosted: July 12th, 2009, 5:54 am 
Offline
Member

Joined: April 12th, 2007, 2:43 am
Posts: 54
Location: STALKER!!!
I hate to bump this death thread, but I just have to say this:

Code:
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!!


Top
 Profile  
 
PostPosted: July 20th, 2009, 3:24 am 
Offline
Some Honorary Title

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

Top
 Profile  
 
PostPosted: July 24th, 2009, 9:02 am 
Offline
Member
User avatar

Joined: August 6th, 2008, 11:00 am
Posts: 59
lol initiald pwned sevion

eeeee cheeky cheeky pro wannabe sevion :lol:


Top
 Profile  
 
PostPosted: July 27th, 2009, 1:08 am 
Offline
Member

Joined: April 12th, 2007, 2:43 am
Posts: 54
Location: STALKER!!!
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!!


Top
 Profile  
 
PostPosted: July 27th, 2009, 4:32 am 
Offline
Some Honorary Title

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


Top
 Profile  
 
PostPosted: July 27th, 2009, 6:53 am 
Offline
Member

Joined: April 12th, 2007, 2:43 am
Posts: 54
Location: STALKER!!!
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!!


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

All times are UTC


Who is online

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