Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Cho em hỏi muốn làm 1 skill thành channel như thể nào ạ

.
ai làm thử cái charm có thời hạn dùm tui nha, vì cái này không phải làm kiểu đánh tướng nên 3-4 thằng có thể xài charm 1 lúc mà không bị hỏng trigger
function Charm_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'AHtb'
endfunction
function Charm_Actions takes nothing returns nothing
local unit cas = GetSpellAbilityUnit()
local unit tar = GetSpellTargetUnit()
local player ptar = GetOwningPlayer(tar)
local player pcas = GetOwningPlayer(cas)
call SetUnitOwner( tar , pcas , true )
call TriggerSleepAction( 10.0 )
call SetUnitOwner( tar, ptar , true )
set cas = null
set tar = null
set pcas = null
set ptar = null
endfunction
//===========================================================================
function Init_Charm takes nothing returns nothing
set gg_trg_Charm = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Charm, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Charm, Condition( function Charm_Conditions ) )
call TriggerAddAction( gg_trg_Charm, function Charm_Actions )
endfunction

[#]function Charm_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AHtb' ) ) then
return false
endif
return true
endfunction
function Charm_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'AHtb'
endfunction
scope Name
private function con return boolean
...
endfunction
private function act nothing returns nothing
....
endfunction
public function InitTrig takes nothing returns nothing
local trigger trg = CreateTrigger
...
endfunction
endscope
Ớ, có cái spell Ancentral Spirit của tui mà không ai để ý àà nếu thế thì lấy y sì cái spell trong Dota rồi, tui hiểu lầm chữ "chế lại" của Tuma... , phải nói là copy lại chứ nhỉ ? nếu là spell lấy y sì trong Dota ra thì search trên web chắc có , làm chi mất công .
à còn cái vụ nick cũ nick mới, 1 số forum mod dữ lắm, thằng nào vi phạm mà truy đc cái clone thì chém clone luôn, đã vi phạm ai cho tham gia forum . Vì ko biết tình hình ở đây có vậy ko nên tui mới phải bịt mặt nè





. Em bái phục anh, anh rất chi là "táo bạo".