wc3edit.net

United Warcraft 3 map hacking!
It is currently April 19th, 2024, 8:18 pm

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: July 15th, 2013, 1:55 pm 
Offline
Senior Member
User avatar

Joined: August 27th, 2010, 7:14 am
Posts: 124
who can give me the lines to add to make from player red to last computer player unally everyone including themself when i type a command and make it work only for specific usernames

thanks in advice


Top
 Profile  
 
PostPosted: July 15th, 2013, 10:26 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
Me.



Jk :)
Anyhow. Do you want flat out code to copy paste. Do you want help on where to start? A general direction?

_________________
Image
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:

(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code:
(15:42:51) Lanaya: can i suck , . . .

Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Top
 Profile  
 
PostPosted: July 16th, 2013, 12:31 pm 
Offline
Senior Member
User avatar

Joined: August 27th, 2010, 7:14 am
Posts: 124
lol :D a code to copy paste please :D


Top
 Profile  
 
PostPosted: July 18th, 2013, 12:00 pm 
Offline
Member

Joined: September 10th, 2012, 6:39 am
Posts: 75
hey hax u r famillar in jass code? can u make single command for increase damge, decrease mana usage per cast and decrease damge taken like sabrac cp?

_________________
Like in fb -> Dota Cheated Maps

Sorry for my bad english because english is not my native language. :D


Top
 Profile  
 
PostPosted: July 18th, 2013, 3:13 pm 
Offline
Senior Member
User avatar

Joined: August 27th, 2010, 7:14 am
Posts: 124
dont post this in my thread go create another one or pm thanks :D


Top
 Profile  
 
PostPosted: July 19th, 2013, 9:14 am 
Offline
Forum Staff

Joined: November 3rd, 2010, 10:48 am
Posts: 1850
Location: Singapore
Title: Best Player
dhanielst wrote:
hey hax u r famillar in jass code? can u make single command for increase damge, decrease mana usage per cast and decrease damge taken like sabrac cp?

hax can do everything.

_________________
Request a map? Follow the rulesHERE
Request templateHERE
Please, do not PM me.
On the side note, I'm still playing vampirism speed on malaysia room, occasionally in Garena. Bcuz too lazy to find out where else I can play them.


Top
 Profile  
 
PostPosted: July 19th, 2013, 12:44 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
Sorry took so long. It is a rather simple code.
I borrowed the unally function from JJ's CP so it SHOULD work. Couldn't test it tough...

Under Globals
Code:
trigger trgUnAlly=CreateTrigger()


Under endglobals
Code:
function trgUnAllyAction takes nothing returns nothing
local integer i=0
if (StringCase(GetPlayerName(GetTriggerPlayer()),false)==StringCase("enter name here",false)) then
loop
exitwhen i>15
if GetPlayerId(GetTriggerPlayer())!=i then
call SetPlayerAllianceStateAllyBJ(GetTriggerPlayer(),Player(i),false)
call SetPlayerAllianceStateAllyBJ(Player(i),GetTriggerPlayer(),false)
call SetPlayerAllianceStateVisionBJ(GetTriggerPlayer(),Player(i),false)
endif
set i=i+1
endloop
endif
endfunction

function initUnAlly takes nothing returns nothing
local integer i=0
loop
exitwhen i>11
call TriggerRegisterPlayerChatEvent(trgUnAlly,Player(i),"-unally",true)
set i=i+1
endloop
call TriggerAddAction(trgUnAlly, function trgUnAllyAction)
endfunction

under the locals of function main.
Code:
call initUnAlly()


It will only work if your name is "enter name here"
It will NOT be case sensitive so you got nothing to worry about capital and lower case letters.

_________________
Image
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:

(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code:
(15:42:51) Lanaya: can i suck , . . .

Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Top
 Profile  
 
PostPosted: July 19th, 2013, 3:22 pm 
Offline
Senior Member
User avatar

Joined: August 27th, 2010, 7:14 am
Posts: 124
np i tested that when i write -unally with the required name ofc i unally all players but other players doesnt unally other players it affect only the guy who wrote that i want to make the chaos i want everyone to be solo,no one with ally even the computers hostile and neutral

thanks :D


Top
 Profile  
 
PostPosted: July 19th, 2013, 4:33 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
Ooo... I didn't know WarCraft 3 works that way.

I thought if Player 1 unallys Player 2, it will be also the other way around... Ill Update the code soon.

Update:

I think it is fixed now. Use the same globals and function main, only fixed the part under endglobals

Code:
function trgUnAllyAction takes nothing returns nothing
    local integer i=0
    local integer j=0
    if (StringCase(GetPlayerName(GetTriggerPlayer()),false)==StringCase("enter name here",false)) then
        loop
            exitwhen i>15
            loop
                exitwhen j>15
                if j!=i then
                    call SetPlayerAllianceStateAllyBJ(Player(j),Player(i),false)
                    call SetPlayerAllianceStateAllyBJ(Player(i),Player(j),false)
                    call SetPlayerAllianceStateVisionBJ(Player(j),Player(i),false)
                endif
                set j=j+1
            endloop
            set j=0
            set i=i+1
        endloop
    endif
endfunction

function initUnAlly takes nothing returns nothing
    local integer i=0
    loop
        exitwhen i>11
        call TriggerRegisterPlayerChatEvent(trgUnAlly,Player(i),"-unally",true)
        set i=i+1
    endloop
    call TriggerAddAction(trgUnAlly, function trgUnAllyAction)
endfunction

_________________
Image
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:

(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code:
(15:42:51) Lanaya: can i suck , . . .

Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Top
 Profile  
 
PostPosted: July 20th, 2013, 4:59 am 
Offline
Senior Member
User avatar

Joined: August 27th, 2010, 7:14 am
Posts: 124
its working thanks alot :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] 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)