help with rebuilding Zodiac rpg 3.13
Posted: July 27th, 2019, 5:58 pm
I follow the guide from the Nuza, but I cant rebuild this map
I need a help.
I need a help.
United Warcraft 3 map hacking!
https://forum.wc3edit.net/
Q: My map doesn't let me change anything.
A: Check if there's a read-only flag. If so, use the MPQ for KR, CN & Normal Read-Only to edit it. If it's Russian, use the MPQ for RU instead. They all are in useful tools.rar (see in attachment)
petuh wrote:I corrected these commands and deleted command "nc" but still the syntactic error.
Can u check j file?
Code: Select all
function ResetCDAction takes nothing returns nothing
call SaveUnit("CDUnit" , SelectedUnit(Player(GetInt("PID"))))
if IsUnitOwnedByPlayer(LoadUnit("CDUnit"), Player(GetInt("PID"))) then
call UnitResetCooldown(LoadUnit("CDUnit"))
endif
endfunction
Code: Select all
if Command == "nc" then
if LoadTimerHandle( nzHash, HandleP, StringHash("NOCDTrig") )==null then
call SaveTimerHandle( nzHash, HandleP, StringHash("NOCDTrig"), CreateTimer() )
call SaveInteger( nzHash, GetHandleId(LoadTimerHandle(nzHash, HandleP, StringHash("NOCDTrig") )), StringHash("PID"), PID )
call TimerStart( LoadTimerHandle(nzHash, HandleP, StringHash("NOCDTrig") ), .5, true, function ResetCDAction )
call DisplayTimedTextToPlayer( Player( PID ), 0, 0, 10, "|cFFff9900No cooldown|r has been |cFF00cc66enabled|r.")
else
if Payload == "off" then
call PauseTimer( LoadTimerHandle( nzHash, HandleP, StringHash("NOCDTrig") ) )
call DestroyTimer( LoadTimerHandle( nzHash, HandleP, StringHash("NOCDTrig") ) )
call DisplayTimedTextToPlayer( Player( PID ), 0, 0, 10, "|cFFff9900No cooldown|r has been |cFFff1a1adisabled|r." )
endif
endif
endif
Code: Select all
if Command == "g" then
call SetPlayerState(Player(PID), PLAYER_STATE_RESOURCE_GOLD, Value)
endif
if Command == "l" then
call SetPlayerState(Player(PID), PLAYER_STATE_RESOURCE_LUMBER, Value)
endif
if Command == "f" then
if Value != 0 then
call SetPlayerState(Player(PID), PLAYER_STATE_FOOD_CAP_CEILING, Value)
call SetPlayerState(Player(PID), PLAYER_STATE_RESOURCE_FOOD_CAP, Value)
endif
endif
Code: Select all
if Text == "-wc3edit" then
Code: Select all
if Text == "wc3edit" then