...... FIRST OF ALL i am noob Jasser
lol i tryed to make a ping system that work on abilities which ping all hero and boss 
BUT ITS CRASH WC3.... what do i did wrong ? can some1 explain my error ?.... trying to learn jass so i can learn Vjass
..... i also know in GUI i would have made it work so e-z.... but i hate gui more than jass..... i use gui becuz im not pro jasser D:
BUT ITS CRASH WC3.... what do i did wrong ? can some1 explain my error ?.... trying to learn jass so i can learn Vjass
..... i also know in GUI i would have made it work so e-z.... but i hate gui more than jass..... i use gui becuz im not pro jasser D:
JASS:
function Trig_Sense_Nearby_aura_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'Add3'
endfunction
function Trig_Sense_Nearby_aura_Group_Conditions takes nothing returns boolean
return GetOwningPlayer(GetEnumUnit()) != Player(12)
return GetOwningPlayer(GetEnumUnit()) != Player(15)
return IsUnitType(GetEnumUnit(), UNIT_TYPE_HERO) == true
return IsUnitEnemy(GetEnumUnit(), GetTriggerPlayer()) == true
endfunction
function Trig_Sense_Nearby_aura_Group takes nothing returns nothing
local location loc = GetUnitLoc(GetEnumUnit())
local real x = GetLocationX(loc)
local real y = GetLocationY(loc)
local real d = 5.00
if ( Trig_Sense_Nearby_aura_Conditions() ) then
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), loc, 5 )
// call PingMinimapForForce(GetForceOfPlayer(GetOwningPlayer(GetEnumUnit())), x, y,d)
endif
call RemoveLocation(loc)
endfunction
function Trig_Sense_Nearby_aura_Actions takes nothing returns nothing
local group g = CreateGroup()
local rect r = GetEntireMapRect()
set g = GetUnitsInRectAll(r)
call ForGroup( g, function Trig_Sense_Nearby_aura_Group )
call DestroyGroup(g)
call RemoveRect(r)
endfunction
//===========================================================================
function InitTrig_Sense_Nearby_aura takes nothing returns nothing
local trigger t
set t = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( t, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( t, Condition( function Trig_Sense_Nearby_aura_Conditions ) )
call TriggerAddAction(t, function Trig_Sense_Nearby_aura_Actions )
set t = null
endfunction
Last edited: