wc3edit.net

United Warcraft 3 map hacking!
It is currently April 25th, 2024, 9:00 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: July 31st, 2012, 7:16 am 
Offline
Newcomer

Joined: January 26th, 2012, 6:19 am
Posts: 5
can someone give me -scanmh script in this map,, this is usefull i think,, because when you start playing or just type -scanmh,, player that use mh like fog map and minimap, reveal unit map and mini map will Fatal error..

http://www.epicwar.com/maps/198996/
file .j in atachment "i already give fai ^_^"

i try it so far (but still not work) :
under globals from this map
Quote:
Code:
trigger gg_trg_scanmh=null
trigger gg_trg_active_scan=null



under endglobals from this map
Quote:
Code:
function Trig_scanmh_Func001Func001Func006A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(gg_rct_Test_Hack),0)
endfunction
function Trig_scanmh_Func001Func001Func009Func001001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))!=null
endfunction
function Trig_scanmh_Func001Func001Func009Func001001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetEnumPlayer())
endfunction
function Trig_scanmh_Func001Func001Func009Func001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_scanmh_Func001Func001Func009Func001001002001(),Trig_scanmh_Func001Func001Func009Func001001002002())
endfunction
function Trig_scanmh_Func001Func001Func009Func001A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(GetEnumUnit()),0)
endfunction
function Trig_scanmh_Func001Func001Func009A takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_scanmh_Func001Func001Func009Func001001002)),function Trig_scanmh_Func001Func001Func009Func001A)
endfunction
function Trig_scanmh_Func001Func001C takes nothing returns boolean
return(udg_Hacker_TimeOut[(1+GetPlayerId(GetTriggerPlayer()))]>0)
endfunction
function Trig_scanmh_Func001Func002001001 takes nothing returns boolean
return(GetFilterPlayer()==GetTriggerPlayer())
endfunction
function Trig_scanmh_Func001C takes nothing returns boolean
return(udg_SCANMH_DONTDISTURB==false)
endfunction

function Trig_scanmh_Actions takes nothing returns nothing
if(Trig_scanmh_Func001C())then
call DisplayTimedTextToForce(GetPlayersMatching(Condition(function Trig_scanmh_Func001Func002001001)),5.,"|cffff0000You have to wait two game-minutes to use this command.|r")
else
if(Trig_scanmh_Func001Func001C())then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.,(GetPlayerName(GetTriggerPlayer())+" |cffff0000request a map hacker scan. Scanning possible hackers...|r"))
call CreateNUnitsAtLoc(1,'e006',Player($F),GetRectCenter(gg_rct_Test_Hack),bj_UNIT_FACING)
set udg_Hack_Dummy=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(3.,'BTLF',udg_Hack_Dummy)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_scanmh_Func001Func001Func006A)
call SetUnitAnimationByIndex(udg_Hack_Dummy,0)
call TriggerSleepAction(.01)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_scanmh_Func001Func001Func009A)
set udg_Hacker_TimeOut[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_Hacker_TimeOut[(1+GetPlayerId(GetTriggerPlayer()))]-1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.,("|cffff0000"+(I2S(udg_Hacker_TimeOut[(1+GetPlayerId(GetTriggerPlayer()))])+" timeout(s) remaining.|r")))
endif
endif
endfunction
function InitTrig_scanmh takes nothing returns nothing
set gg_trg_scanmh=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(0),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(1),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(2),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(4),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(5),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(6),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(8),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(9),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player($A),"-scanmh",true)
call TriggerAddAction(gg_trg_scanmh,function Trig_scanmh_Actions)
endfunction
function Trig_active_scan_Actions takes nothing returns nothing
set udg_SCANMH_DONTDISTURB=true
endfunction
function InitTrig_active_scan takes nothing returns nothing
set gg_trg_active_scan=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_active_scan,120.)
call TriggerAddAction(gg_trg_active_scan,function Trig_active_scan_Actions)
endfunction



under function main from this map
Quote:
Code:
set gg_trg_scanmh=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(0),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(1),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(2),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(4),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(5),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(6),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(8),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player(9),"-scanmh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_scanmh,Player($A),"-scanmh",true)
call TriggerAddAction(gg_trg_scanmh,function Trig_scanmh_Actions)
set gg_trg_active_scan=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_active_scan,120.)
call TriggerAddAction(gg_trg_active_scan,function Trig_active_scan_Actions)



sorry i dont know certainly under where the code should i put to another map,, but the code still not work yet,,
someone help ?


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  [ 1 post ] 

All times are UTC


Who is online

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