wc3edit.net

United Warcraft 3 map hacking!
It is currently March 19th, 2024, 8:32 am

All times are UTC




Post new topic Reply to topic  [ 39 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
PostPosted: February 28th, 2020, 6:34 am 
Offline
Junior Member

Joined: January 14th, 2019, 8:32 pm
Posts: 32
nuzamacuxe wrote:
Just compare both war3map.j. What I did was simply increase your chance of being The Evil One to 100 as soon as you type the command "-wevil". That way you will be always the choosen one.

Code:
function ChatEvent takes trigger Trig, string Text, boolean Bool, code Act returns trigger
local integer index=0
loop
  call TriggerRegisterPlayerChatEvent(Trig,Player(index),Text,Bool)
  set index=index+1
  exitwhen index==bj_MAX_PLAYER_SLOTS
endloop
if Act!=null then
   call TriggerAddAction(Trig,Act)
endif
return Trig
endfunction
function CC_Commands takes nothing returns nothing
local integer PID = GetPlayerId( GetTriggerPlayer( ) )
local string Text = SubString( GetEventPlayerChatString(), 1, StringLength(GetEventPlayerChatString()) )

if Text == "wevil" then
   set fz[ PID ]= 100
   set f6[ PID ]= true
   call DisplayTimedTextToPlayer( Player( PID ), 0, 0, 10, "You will be The Evil One." )
endif

endfunction
function CC_Init takes nothing returns nothing
call ChatEvent( CreateTrigger( ), "-", false, function CC_Commands )
endfunction


The evil hero isn't the same way.

I tried adding this before function main and it crashed. I attached the newest map if you wanted to look but I took it out and just put cheat pack in. Is there more to it than just this code?


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: February 28th, 2020, 8:00 pm 
Offline
Also Not an Admin, but closer than devoltz
User avatar

Joined: February 14th, 2018, 5:35 am
Posts: 1791
Title: Just Another S.Mod
Compare the war3map.j from the other map with mine.


Top
 Profile  
 
PostPosted: February 29th, 2020, 12:52 am 
Offline
Junior Member

Joined: January 14th, 2019, 8:32 pm
Posts: 32
nuzamacuxe wrote:
Compare the war3map.j from the other map with mine.
i did, the only thing I found different was you adding the command after endglobals and before function main. is there more to it than that?


Top
 Profile  
 
PostPosted: February 29th, 2020, 4:55 am 
Offline
Also Not an Admin, but closer than devoltz
User avatar

Joined: February 14th, 2018, 5:35 am
Posts: 1791
Title: Just Another S.Mod
You'll need to find out the current integer letters for fz and f6. They are different.

Changes fz to gL
Changes f6 to gT


Top
 Profile  
 
PostPosted: March 1st, 2020, 12:12 pm 
Offline
Junior Member

Joined: January 14th, 2019, 8:32 pm
Posts: 32
nuzamacuxe wrote:
You'll need to find out the current integer letters for fz and f6. They are different.

Changes fz to gL
Changes f6 to gT
I Changed all integers that had fz to gL and all f6 to gT then added the code and the map still crashed. isa there only specific ones??


Top
 Profile  
 
PostPosted: March 1st, 2020, 1:04 pm 
Offline
Junior Member

Joined: February 11th, 2020, 8:24 am
Posts: 43
Place this code below "function main takes nothing returns nothing"
Code:
call CC_Init()


Top
 Profile  
 
PostPosted: March 1st, 2020, 3:12 pm 
Offline
Also Not an Admin, but closer than devoltz
User avatar

Joined: February 14th, 2018, 5:35 am
Posts: 1791
Title: Just Another S.Mod
Dude. You misunderstood what I said. I said to change only the ones inside of function CC_Commands. You simply broke the map doing what you did.


Top
 Profile  
 
PostPosted: March 2nd, 2020, 5:48 am 
Offline
Junior Member

Joined: January 14th, 2019, 8:32 pm
Posts: 32
nuzamacuxe wrote:
Dude. You misunderstood what I said. I said to change only the ones inside of function CC_Commands. You simply broke the map doing what you did.

I did a ctrl+f search for cc_ and CC_commands and got nothing. searching for just cc makes it show up in code like cfffcc00Cant use this item etc.


Top
 Profile  
 
PostPosted: March 2nd, 2020, 6:11 am 
Offline
Junior Member

Joined: January 14th, 2019, 8:32 pm
Posts: 32
could you maybe post a screenshot, sorry for the trouble I'm just not understanding and they come out with a new map ever week so I'd like to understand it.


Top
 Profile  
 
PostPosted: March 4th, 2020, 3:18 am 
Offline
Junior Member

Joined: February 11th, 2020, 8:24 am
Posts: 43
.


You do not have the required permissions to view the files attached to this post.


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

All times are UTC


Who is online

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