Results 1 to 3 of 3
http://idgs.in/284112
  1. #1

    Join Date
    Dec 2009
    Location
    Gyeonggi South Korea
    Posts
    100
    Points
    137.10
    Thanks: 0 / 3 / 3

    Wink [NEED] HELP ESSENCE SHIFT SLARK TRIGGER

    Kk gw mw tny cara bwt skill slark yang essence shift ntu gmn?
    Gw dah coba tpi ga bsa persis di dota
    Code:
    function Trig_FrostmourneSlash_Conditions takes nothing returns boolean
        if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_HERO) == true ) ) then
            return false
        endif
        return true
    endfunction
    
    function Trig_FrostmourneSlash_Actions takes nothing returns nothing
    local unit c1=GetAttacker()
    local unit t1=GetTriggerUnit()
    local effect e
    local integer point=1/2*GetHeroLevel(c1)
    local integer randomFS=GetRandomInt(1,2)
    if GetUnitAbilityLevel(c1,'A004')!=0 and randomFS==1 and GetHeroAgi(t1,false)>10  then
    set e=AddSpecialEffectTargetUnitBJ( "chest", t1, "Abilities\\Spells\\Undead\\Cripple\\CrippleTarget.mdl" )
    call SetHeroAgi(t1,GetHeroAgi(t1,false)-point,false)
    call SetHeroAgi(c1,GetHeroAgi(c1,false)+point,false)
    call TriggerSleepAction(2.5)
    call SetHeroAgi(t1,GetHeroAgi(t1,false)+point,false)
    call SetHeroAgi(c1,GetHeroAgi(c1,false)-point,false)
    call DestroyEffect(e)
    endif
    endfunction
    
    //===========================================================================
    function InitTrig_FrostmourneSlash takes nothing returns nothing
        set gg_trg_FrostmourneSlash = CreateTrigger(  )
        call TriggerRegisterAnyUnitEventBJ( gg_trg_FrostmourneSlash, EVENT_PLAYER_UNIT_ATTACKED )
        call TriggerAddCondition( gg_trg_FrostmourneSlash, Condition( function Trig_FrostmourneSlash_Conditions ) )
        call TriggerAddAction( gg_trg_FrostmourneSlash, function Trig_FrostmourneSlash_Actions )
        call Preload("Abilities\\Spells\\Undead\\Cripple\\CrippleTarget.mdl")
    endfunction
    Gmn kk ada yang bsa bantu??

  2. Hot Ad
  3. #2
    Section's Avatar
    Join Date
    Nov 2006
    Location
    about.me/SECTION
    Posts
    2,095
    Points
    11,041.04
    Thanks: 45 / 112 / 98

    Default

    Kalo menurut gw trigger lo agak ga aman deh karena make wait biasa. Yg gw tau kalo mau bisa enak make wait ala timer. Trus eventnya jgn unit attacked karena attack yg ga jadi juga kedetect ama event ini. Bagusnya make unit takes damage,cuman hashtable bermain disini. Tambahan, gw yakin bgt kalo heronya punya attack speed cepet, bakal terjadi lack of memory (bukan leak) karena efek cripple lo kerjanya MI. Saran gw si jangan. Jd make 1 var global index buat efek karena lack bikin fps anjlok dan kalo uda anjlok orang jd males maen (ilmu CS fps mode = on)

    Trus konsep skillnya gmn neh? Kalo gw baca tiap attack 50% kemungkinan untuk nyolong 1agi dari musuh selama 2.5 ******* Bener?

  4. #3
    Rain's Avatar
    Join Date
    Dec 2006
    Location
    Everywhere Everyplaces
    Posts
    2,602
    Points
    13,969.78
    Thanks: 94 / 203 / 180

    Default

    wah,jass ya. sebenarnya saya berniat membantu,,tapi saya bisannya GUI,klo JASS saya lepas tangan ^^,maaf.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •