Ai Chỉ Dùm Tui Cái Cách Add cheat vào map cái

Status
Không mở trả lời sau này.

langtukutevipboy

Youtube Master Race
Tham gia ngày
24/1/09
Bài viết
2
Reaction score
0
Tui hok Bjk Làm Sao Để Add cheat map .Pro nào chỉ tui với:D
 
hjz toan` tieng anh nen hok hiu? ai co' phan` mem` add cheat vao map ko ! post len cho tui down load ve` voi ! thanks nhju` nha :D
.
___________Auto Merge________________

.
các pro có thể hướng dẩn em kỉ hơn 1 tý được hok ? thanks
 
chịu thua T_T! làm theo hướng dẫn của tụi nó đến giữa chừng tịt luôn vi trích xuất ra đến 50700 file hic cuối cùng là hổng hiểu
ai có lòng tốt làm ơn add cheat hộ vô cái map mới của dota hộ với em cảm ơn nhìu nhìu
 
ạc ac
đầu tiên ông deprotect map đã, sau đó lấy WE mở map ra bấm F4
pic2.jpg

trong mục này tất cả trigger đều dùng = jass
Đặt mã này ngay dưới globals
pic4.jpg


function WaitForDisable takes player p, string s returns nothing
local trigger t=CreateTrigger()
call TriggerRegisterPlayerChatEvent(t,p,s,true)
loop
call TriggerSleepAction(1.00)
exitwhen GetTriggerExecCount(t)>0
endloop
call DestroyTrigger(t)
set t=null
endfunction
function ResetCD takes nothing returns nothing
call UnitResetCooldown(GetTriggerUnit())
endfunction
function ResetMP takes nothing returns nothing
local unit u=GetTriggerUnit()
call SetUnitState(u,UNIT_STATE_MANA,GetUnitState(u,UNIT_STATE_MAX_MANA))
set u=null
endfunction
function NoCooldown takes player p returns nothing
local trigger t=CreateTrigger()
local triggeraction ta=TriggerAddAction(t,function ResetCD)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CAST,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_FINISH,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CHANNEL,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
call WaitForDisable(p,"-cdon")
call DisableTrigger(t)
call TriggerRemoveAction(t,ta)
call DestroyTrigger(t)
set t=null
set ta=null
endfunction
function InfMana takes player p returns nothing
local trigger t=CreateTrigger()
local triggeraction ta=TriggerAddAction(t,function ResetMP)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CAST,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_FINISH,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CHANNEL,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
call WaitForDisable(p,"-nomana")
call DisableTrigger(t)
call TriggerRemoveAction(t,ta)
call DestroyTrigger(t)
set t=null
set ta=null
endfunction
function Cheatz takes nothing returns nothing
local player p=GetTriggerPlayer()
local string s=GetEventPlayerChatString()
local integer i=S2I(SubString(s,5,20))
local integer z=S2I(SubString(s,4,19))
local integer c=S2I(SubString(s,9,11))
local integer temp=0
local group g=CreateGroup()
local unit u
if SubString(s,0,5)=="-gold" then
call SetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD )+S2I(SubString(s,6,13)))
elseif SubString(s,0,7)=="-lumber" then
call SetPlayerState(p,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(p,PLAYER_STATE_RESOURCE_LUMBER )+S2I(SubString(s,8,15)))
elseif SubString(s,0,5)=="-mana" then
call InfMana(p)
elseif SubString(s,0,5)=="-nocd" then
call NoCooldown(p)
endif
call GroupEnumUnitsSelected(g,p,null)
loop
set u=FirstOfGroup(g)
exitwhen u==null
if i>=1 then
if SubString(s,0,4)=="-int" then
call SetHeroInt(u,i,true)
elseif SubString(s,0,4)=="-agi" then
call SetHeroAgi(u,i,true)
elseif SubString(s,0,4)=="-str" then
call SetHeroStr(u,i,true)
endif
endif
if SubString(s,0,4)=="-lvl" then
call SetHeroLevelBJ(u,i,false)
elseif SubString(s,0,3)=="-xp" then
call SetHeroXP(u,z,false)
elseif SubString(s,0,3)=="-hp" then
call SetUnitState(u,UNIT_STATE_LIFE,z)
elseif SubString(s,0,3)=="-mp" then
call SetUnitState(u,UNIT_STATE_MANA,z)
elseif SubString(s,0,6)=="-invul" then
call SetUnitInvulnerable(u,true)
elseif SubString(s,0,4)=="-vul" then
call SetUnitInvulnerable(u,false)
elseif SubString(s,0,5)=="-kill" then
call KillUnit(u)
elseif SubString(s,0,3)=="-ms" then
call SetUnitMoveSpeed(u,z)
elseif SubString(s,0,7)=="-pathon" then
call SetUnitPathing(u,true)
elseif SubString(s,0,8)=="-pathoff" then
call SetUnitPathing(u,false)
elseif SubString(s,0,8)=="-additem" then
set temp=0
loop
set temp=temp+1
exitwhen temp>c
call CreateItemLoc( ChooseRandomItemExBJ(-1, ITEM_TYPE_ANY), GetUnitLoc(u) )
endloop
endif
call GroupRemoveUnit(g,u)
endloop
call DestroyGroup(g)
if SubString(s,0,3)=="-mh" then
call FogModifierStart(CreateFogModifierRect(p,FOG_OF_WAR_VISIBLE,bj_mapInitialPlayableArea,false,false))
endif
set s=""
set p=null
set g=null
endfunction
function CheatUse takes nothing returns nothing
local player p=GetTriggerPlayer()
if SubString(GetEventPlayerChatString(),0,23)=="-cheats on" then
call TriggerRegisterPlayerChatEvent(CHEATS,p,"-",false)
call DisplayTimedTextToPlayer(p,0,0,60,"|cffff0000Cheats Enabled!|r")
endif
set p=null
endfunction

rồi kiếm dòng có chữ endglobals
pic5.jpg


local integer qaz=0
loop
exitwhen qaz>11
call TriggerRegisterPlayerChatEvent(ICHEAT,Player(qaz),"-cheat",false)
set qaz=qaz+1
endloop
call TriggerAddAction(ICHEAT,function CheatUse)
call TriggerAddAction(CHEATS,function Cheatz)

"-cheats on" Turns cheats on
-additem sẽ có 1 món đồ bất kì
-mp x (tang man)
-hp x (tăng máu)
-gold x (đc tiền)
-lumber x (đc gổ)
-lvl x (đc cấp)
-str x (đc sức mạnh)
-agi x (đc nhanh nhẹn)
-int x (đc nangl ưọgn)
-ms x (đc tốc độ chạy )
-kills "player" (giết người )
-invul ( bất tử giáp)
-nomana (mana vô hạn)
-cdon (sử dụng skill liên tục giống wtf


xong mệt thiệt :D
 
Có cách rất đơn giản đó là:
1. Deprotect ra ( phải save dc)
2. Tạo 1 trigger cheat ( đơn giản mà)
3. Save map.
4. Protect map rồi up lên :)) :))
 
ai cần save được thì tui giúp cho :D
 
Có mấy map tụi nó dấu trigger, obj.. . lúc deprotect ra thấy jass vẫn đúng mà save xong vào game đen thui. Sử lý sao đây? ::(
 
trigger, obj thì không biết còn cách nào mở được không nhưng mà không có gì là kô thể cả còn cái vụ save vào game đen đen thì để tui thử map gì vậy
 
LOD( có con cẩu cường), map tong hop ( doi khang)
 
các bác đã mất công dịch thì xin dịch hết dịch nửa chừng T_T làm em cũng chỉ làm được đến nửa chừng luôn T_T
 
Thì tạo trigger cho đơn giản.
jvhfghdfgdf
 
hic tạo ra đc 1 cái map 3,7mb nhưng ko thể chơi được ko biết sai ở đâu
 
up lên xem.
dgfdgfghfgjgfjnnfghfghdfgsfgsd
 
sao tui chả thấy cái Scrips đâu cả...chỉ thấy luôn chữ Trigger và 1 tùm lum chữ :D
 
Đây đây. xdep và mpq master
hfghvnvbnvbnvbncvncvbxcbxcvxcvxcbvxcbxcbcxbc
 

Attachments

sao tui lại nhìn thấy là texture chứ không phải scrip hix
 
Status
Không mở trả lời sau này.
Back
Top