Anyone know how, what and where to put an arrow(Directional button) activator?? Please make one for me... cuz i dunno how to code one...
Dis is wat I want.. : UP UP LEFT LEFT RIGHT RIGHT DOWN DOWN
Thanks in advance...!
[HELP]Arrow Activator
Moderator: Cheaters
-
- Spice Pirate
- Posts: 862
- Joined: January 29th, 2009, 5:35 pm
- Title: LHC
- Location: Canada
Re: [HELP]Arrow Activator
This is the code taken from the Arrow Key activator for JJCP, found here: http://forum.wc3edit.net/map-deprotecti ... t9453.html
You'll probably need to modify some stuff in this unless you plan on just using it for JJCP. If you need help wit that, let us know.
Spoiler:
Spoiler:
-
- Member
- Posts: 62
- Joined: April 1st, 2009, 8:40 am
Re: [HELP]Arrow Activator
Should I mixed it with the old global,endglobal,Function main???? or I should over right those to that??
-
- Spice Pirate
- Posts: 862
- Joined: January 29th, 2009, 5:35 pm
- Title: LHC
- Location: Canada
-
- Member
- Posts: 62
- Joined: April 1st, 2009, 8:40 am
Re: [HELP]Arrow Activator
I did follow everything wats written there... but I think their code of Function Main is not compatible for 1.24 W3... Am I wrong?? If Im correct How can I mixed it up with JJ's 1.24 Function main
here:
local integer zzz=0
loop
exitwhen zzz>11
call TriggerRegisterPlayerChatEvent(ICHEAT,Player(zzz),"-",false)
set zzz=zzz+1
endloop
call TriggerAddAction(ICHEAT,function CheatUse)
call TriggerAddCondition(CHEATS,Condition(function Cheatz0r))
call TriggerAddAction(CHEATS,function DirectCheat)
call UnitId2Stringz()
call InitS2RAW()
this is from your link:
local integer zzz=0
set ICHEAT[0]=CreateTrigger()
set ICHEAT[1]=CreateTrigger()
set ICHEAT[2]=CreateTrigger()
set ICHEAT[3]=CreateTrigger()
loop
exitwhen zzz>11
call TriggerRegisterPlayerEvent(ICHEAT[0],Player(zzz),EVENT_PLAYER_ARROW_LEFT_DOWN)
call TriggerRegisterPlayerEvent(ICHEAT[1],Player(zzz),EVENT_PLAYER_ARROW_RIGHT_DOWN)
call TriggerRegisterPlayerEvent(ICHEAT[2],Player(zzz),EVENT_PLAYER_ARROW_UP_DOWN)
call TriggerRegisterPlayerEvent(ICHEAT[3],Player(zzz),EVENT_PLAYER_ARROW_DOWN_DOWN)
set zzz=zzz+1
endloop
call TriggerAddAction(ICHEAT[0],function CheatUseLeft)
call TriggerAddAction(ICHEAT[1],function CheatUseRight)
call TriggerAddAction(ICHEAT[2],function CheatUseUp)
call TriggerAddAction(ICHEAT[3],function CheatUseDown)
call TriggerAddCondition(CHEATS,Condition(function Cheatz0r))
call TriggerAddAction(CHEATS,function DirectCheat)
call UnitId2Stringz()
call InitS2RAW()
here:
local integer zzz=0
loop
exitwhen zzz>11
call TriggerRegisterPlayerChatEvent(ICHEAT,Player(zzz),"-",false)
set zzz=zzz+1
endloop
call TriggerAddAction(ICHEAT,function CheatUse)
call TriggerAddCondition(CHEATS,Condition(function Cheatz0r))
call TriggerAddAction(CHEATS,function DirectCheat)
call UnitId2Stringz()
call InitS2RAW()
this is from your link:
local integer zzz=0
set ICHEAT[0]=CreateTrigger()
set ICHEAT[1]=CreateTrigger()
set ICHEAT[2]=CreateTrigger()
set ICHEAT[3]=CreateTrigger()
loop
exitwhen zzz>11
call TriggerRegisterPlayerEvent(ICHEAT[0],Player(zzz),EVENT_PLAYER_ARROW_LEFT_DOWN)
call TriggerRegisterPlayerEvent(ICHEAT[1],Player(zzz),EVENT_PLAYER_ARROW_RIGHT_DOWN)
call TriggerRegisterPlayerEvent(ICHEAT[2],Player(zzz),EVENT_PLAYER_ARROW_UP_DOWN)
call TriggerRegisterPlayerEvent(ICHEAT[3],Player(zzz),EVENT_PLAYER_ARROW_DOWN_DOWN)
set zzz=zzz+1
endloop
call TriggerAddAction(ICHEAT[0],function CheatUseLeft)
call TriggerAddAction(ICHEAT[1],function CheatUseRight)
call TriggerAddAction(ICHEAT[2],function CheatUseUp)
call TriggerAddAction(ICHEAT[3],function CheatUseDown)
call TriggerAddCondition(CHEATS,Condition(function Cheatz0r))
call TriggerAddAction(CHEATS,function DirectCheat)
call UnitId2Stringz()
call InitS2RAW()
-
- Spice Pirate
- Posts: 862
- Joined: January 29th, 2009, 5:35 pm
- Title: LHC
- Location: Canada
Re: [HELP]Arrow Activator
You may have to reverse the last 2 lines of it. So make the last 2 lines:
call InitS2RAW()
call UnitId2Stringz()
call InitS2RAW()
call UnitId2Stringz()
Spoiler:
-
- Member
- Posts: 62
- Joined: April 1st, 2009, 8:40 am
Re: [HELP]Arrow Activator
same result.... nothing change... first trial(your code) = fatal error, second trial(your link)=can't create the map, lastly= same as the second...
now i look inside this vampirism and it has a arrow activator and it works just fine... every single of its code is the same with the link you provided b4... maybe the map needs to be deprotected?? but I sucessfuly injected the map with JJCP... but one thing I want... the arrow activator... just 1 step left man...
BTW... my w3 is 1.24
now i look inside this vampirism and it has a arrow activator and it works just fine... every single of its code is the same with the link you provided b4... maybe the map needs to be deprotected?? but I sucessfuly injected the map with JJCP... but one thing I want... the arrow activator... just 1 step left man...
BTW... my w3 is 1.24