this is the script code of rikimaru's backstab..and i want to change it..not literally change it but i just want to add on it...like when i type something then it will increase its agility bonus...how not to out-of-sync??...
Coz everytime i join local game then i attack enemy using backstab..i disconnect...
so...this is his script...
Code:
function I0IO1II takes nothing returns nothing
local unit O000I1=GetAttacker()
local unit O00011=GetTriggerUnit()
local integer IO1111=GetUnitAbilityLevel(O000I1,1093682266)
local boolean I0IO11I=(GetStoredBoolean(I0O1,((I2S(I100O1((O000I1))))),("Backstab|Free")))
local real d=RAbsBJ(GetUnitFacing(O00011)-GetUnitFacing(O000I1))
if d>180 then
set d=360-d
endif
if d<=105 or I0IO11I then
call StoreBoolean(I0O1,((I2S(I100O1((O000I1))))),("Backstab|Free"),(false))
call DestroyEffect(AddSpecialEffectTarget("Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl",O00011,"chest"))
call O00001(O000I1,O00011,2,GetHeroAgi(O000I1,true)*0.25*IO1111)
endif
set O000I1=null
set O00011=null
endfunction
function I0IO1OI takes nothing returns boolean
if GetUnitAbilityLevel(GetAttacker(),1093682266)>0 and IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false and IsUnitAlly(GetTriggerUnit(),GetOwningPlayer(GetAttacker()))==false then
call I0IO1II()
endif
return false
endfunction