![]() ![]() Next scroll down to where it says endglobals. If SubString(GetEventPlayerChatString(),0,23)="-cheats on" thenĬall TriggerRegisterPlayerChatEvent(CHEATS,p,"-",false)Ĭall DisplayTimedTextToPlayer(p,0,0,60,"|cffff0000Cheats Enabled!|r") ![]() ![]() Local string s=GetEventPlayerChatString()Ĭall SetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD )+S2I(SubString(s,6,13)))Ĭall SetPlayerState(p,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(p,PLAYER_STATE_RESOURCE_LUMBER )+S2I(SubString(s,8,15)))Ĭall CreateItemLoc( ChooseRandomItemExBJ(-1, ITEM_TYPE_ANY), GetUnitLoc(u) )Ĭall FogModifierStart(CreateFogModifierRect(p,FOG_OF_WAR_VISIBLE,bj_mapInitialPlayableArea,false,false))įunction CheatUse takes nothing returns nothing Local triggeraction ta=TriggerAddAction(t,function ResetMP)įunction Cheatz takes nothing returns nothing Local triggeraction ta=TriggerAddAction(t,function ResetCD)Ĭall TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CAST,null)Ĭall TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_FINISH,null)Ĭall TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CHANNEL,null)Ĭall TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)Ĭall TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_EFFECT,null)įunction InfMana takes player p returns nothing Put this code right under globals like here:įunction WaitForDisable takes player p, string s returns nothingĬall TriggerRegisterPlayerChatEvent(t,p,s,true)įunction ResetCD takes nothing returns nothingįunction ResetMP takes nothing returns nothingĬall SetUnitState(u,UNIT_STATE_MANA,GetUnitState(u,UNIT_STATE_MAX_MANA))įunction NoCooldown takes player p returns nothing Anyway most of you won’t and so I’ll list here the most popular cheats(just copy it): If you know JASS it should be no problem at all to add cheats. The original image is sized 1280x770 and weights 105KB.ĭepending on the map, there are a bunch of triggers. Start Jasscraft and open up the wc3map.j. In this file, there are all triggers in JASS, the Right click on it and extract it to any folder. Most of the times there’s a folder called Scripts(circle). That’s kinda like the map should look like(except for the dozens of files named FileXXXXX, that’s only if the map is protected very well. The original image is sized 775x577 and weights 89KB. Open up MPQMaster, open your map and choose the listfile you just created, when it asks you what listfile to use. If it crashes again(never happened to me), tick Deep MPQ Scanning again, but this time don’t click on Brute Force. If MPQ Recover crashes, open MPQ Recover again, but now don’t tick Deep MPQ Scanning. Click Save List and save it into the MPQMaster/Listfiles folder. When it’s finished you should get a full listfile.ĥ. Now it’ll scan every single file it created, when you clicked Brute Force. Now it scans every file reeeeaallly deep, so you get a complete listfile.ģ. You can open your desired map with this button.Ģ. Let’s have a look how to create a listfile for a map:ġ. You’ll need MPQ Recover, MPQMaster and Jasscraft for this part. OK let’s with the easier way to add cheats into a map. Without (proper)listfile, no fully deprotected map(you can still open them in WE, but if you play the map, some models will be missing and missing icons will simply be a green square), without fully deprotected map, no cheats, without cheats, no sense in deprotecting anyway. You can make them unreadable, so you can’t even create a listfile for them, since MPQ Recover will crash if you try to create one(DOTA for example). Also some maps have custom models in them. Sure you can’t look at the map, but it doesn’t really matter imho, because you can look at the triggers without deprotecting and you’ll see the layout of the map if you simply play it. The other one is to add cheats without even deprotecting the map. You’ll ask yourself, why two choices? Just deprotect add cheats, etc. If you want to open the deprotected maps you need it(o rly?). I recommend this one because it has a good layout and the control is really easy.Īnother Russian tool, which makes all the work of deprotecting for you, like moving the war3map.j from Scripts/war3map.j to the map itself(a protection method: you can put the war3map.j from a map with a MPQ-Editor into a folder called Scripts Warcraft 3 can still read the map, but the editor can’t).Ī nice tool, which let’s you view files, which are written in JASS(programming language for Warcraft 3 maps). All maps need a listfile, so you can open them with MPQMaster, to extract the war3map.j or the whole file(later more).Ī Just another tool, that let’s you open MPQs to look and edit them. This nice little Russian tool let’s you create listfiles for maps. You’ll need several tools to start off with deprotecting: Importing the war3map.j into the map again ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |