Map Name: Zombie Invasion (v6.5)
Map Link: https://www.epicwar.com/maps/289785/
Request: I would like you to add custom command ( +500 wood when press "/" ).
Thanks in advance to anyone who could do this!
[CC] Zombie Invasion (v6.5)
Moderator: Cheaters
-
- Newcomer
- Posts: 9
- Joined: February 17th, 2020, 8:33 pm
-
- Super Moderator
- Posts: 1943
- Joined: February 3rd, 2009, 11:28 pm
- Been thanked: 1 time
Re: [CC] Zombie Invasion (v6.5)
Why do you want this specifically added rather than just a cheatpack which can do the same thing?
-
- Also Not an Admin, but closer than devoltz
- Posts: 1655
- Joined: February 14th, 2018, 5:35 am
- Title: Just Another S.Mod
- Been thanked: 6 times
-
- Super Moderator
- Posts: 1943
- Joined: February 3rd, 2009, 11:28 pm
- Been thanked: 1 time
Re: [CC] Zombie Invasion (v6.5)
This is much less hidden than an ordinary cheatpack. Someone could accidentally press the key and gain lumber.
-
- Also Not an Admin, but closer than devoltz
- Posts: 1655
- Joined: February 14th, 2018, 5:35 am
- Title: Just Another S.Mod
- Been thanked: 6 times
-
- Super Moderator
- Posts: 1943
- Joined: February 3rd, 2009, 11:28 pm
- Been thanked: 1 time
Re: [CC] Zombie Invasion (v6.5)
Even though I'm pretty sure you don't want this, I added the CC.
Btw we can't make a "key pressed" event for "/" so I made it a chat event instead.
Type "/" to get 500 lumber.
Tested/working on 1.30
BTW the map is already cheated with JJCP with name activators:
So if you see any of these people ingame, know that they are cheating
To add this CC, I merged the following JASS code with the map code:
Btw we can't make a "key pressed" event for "/" so I made it a chat event instead.
Type "/" to get 500 lumber.
Tested/working on 1.30
BTW the map is already cheated with JJCP with name activators:
Code: Select all
if GetPlayerName(Player(zzz))=="Xirizo" then
if GetPlayerName(Player(zzz))=="xirizo" then
if GetPlayerName(Player(zzz))=="|c0096FF96Weed" then
if GetPlayerName(Player(zzz))=="grimgrents" then
if GetPlayerName(Player(zzz))=="Indyklaus" then
To add this CC, I merged the following JASS code with the map code:
Spoiler:
You do not have the required permissions to view the files attached to this post.
-
- Newcomer
- Posts: 9
- Joined: February 17th, 2020, 8:33 pm
Re: [CC] Zombie Invasion (v6.5)
That works too, thank you!
I just needed extra lumber haha, thought it was more troublesome to add the whole cheatpack.
I just needed extra lumber haha, thought it was more troublesome to add the whole cheatpack.
-
- Also Not an Admin, but closer than devoltz
- Posts: 1655
- Joined: February 14th, 2018, 5:35 am
- Title: Just Another S.Mod
- Been thanked: 6 times
Re: [CC] Zombie Invasion (v6.5)
It's possible.
That'll work only in 1.31.1 though.
Code: Select all
function OskeyEvent takes trigger Trig, code Act returns trigger
local integer index = 0
loop
call BlzTriggerRegisterPlayerKeyEvent( Trig, Player( index ), OSKEY_DIVIDE, 0, true )
call BlzTriggerRegisterPlayerKeyEvent( Trig, Player( index ), OSKEY_OEM_2, 0, true )
set index = index + 1
exitwhen index == bj_MAX_PLAYER_SLOTS
endloop
if Act != null then
call TriggerAddAction( Trig, Act )
endif
return Trig
endfunction
function OskeyAct takes nothing returns nothing
if BlzGetTriggerPlayerKey( ) == OSKEY_DIVIDE or BlzGetTriggerPlayerKey( ) == OSKEY_OEM_2 then
call SetPlayerState( GetTriggerPlayer( ), PLAYER_STATE_RESOURCE_LUMBER, GetPlayerState( GetTriggerPlayer( ), PLAYER_STATE_RESOURCE_LUMBER ) + 500 )
endif
endfunction
function Oskey_Init takes nothing returns nothing
call OskeyEvent( CreateTrigger( ), function OskeyAct )
endfunction
function main takes nothing returns nothing
call Oskey_Init()
endfunction