S
shadowvzs
Guest
this system is leakable??
FIXED
custom atribute ability (killing level ability)
Code:
PvP
Events
Unit - A unit Is attacked
Conditions
((Owner of (Attacked unit)) is an ally of (Owner of (Attacking unit))) Equal to True
((Owner of (Attacking unit)) controller) Equal to User
(Owner of (Attacking unit)) Not equal to (Owner of (Attacked unit))
Actions
Game - Display to (All players) the text: ((Name of (Attacking unit)) + is attacked his alliance, attacked unit automatical begin self defens system (heal half damage).)
Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) + ((Damage taken) / 2.00))
Set Temp_point[2] = (Position of (Attacked unit))
Cinematic - Ping minimap for (All players) at Temp_point[2] for 3.00 seconds
Custom script: call RemoveLocation(udg_Temp_point[2])
Code:
PvP Die
Events
Unit - A unit Dies
Conditions
((Owner of (Killing unit)) is an ally of (Owner of (Dying unit))) Equal to True
((Owner of (Killing unit)) controller) Equal to User
(Level of Killing Level for (Dying unit)) Equal to 0
(Owner of (Dying unit)) Not equal to (Owner of (Killing unit))
Actions
Unit - Change color of (Killing unit) to (Color of Neutral Extra)
Set Temp_point[2] = (Position of (Dying unit))
Cinematic - Ping minimap for (All players) at Temp_point[2] for 3.00 seconds
Custom script: call RemoveLocation(udg_Temp_point[2])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Dying unit) is A Hero) Equal to True
Then - Actions
Unit - Set mana of (Killing unit) to 0.00%
Unit - Set life of (Killing unit) to ((Life of (Killing unit)) / 10.00)
Set Tempory_nr[28] = ((Owner of (Killing unit)) Current gold)
Player - Set (Owner of (Killing unit)) Current gold to (Tempory_nr[28] / 2)
Unit - Remove All buffs from (Killing unit)
Game - Display to (Player group((Owner of (Dying unit)))) the text: ((Name of (Killing unit)) + ( killed his allance Hero + ((Name of (Dying unit)) + , now attacker unit lose 50% life and 100% mana and half gold and dispel all buff on killer unit.)))
Else - Actions
Unit - Set mana of (Killing unit) to 0.00%
Unit - Remove All buffs from (Killing unit)
Unit - Set life of (Killing unit) to ((Life of (Killing unit)) / 2.50)
Player - Set (Owner of (Killing unit)) Current gold to (((Owner of (Killing unit)) Current gold) - 500)
Game - Display to (Player group((Owner of (Dying unit)))) the text: ((Name of (Attacking unit)) + ( killed his allance unit + ((Name of (Dying unit)) + , now attacker unit lose 40% life and 100% mana and 500 gold and dispel all buff on killer unit.)))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Killing Level for (Killing unit)) Equal to 0
Then - Actions
Unit - Add Killing Level to (Killing unit)
Else - Actions
Unit - Increase level of Killing Level for (Killing unit)
Game - Display to (All players) the text: (((Name of (Killing unit)) + ( is stage + (String((Level of Killing Level for (Killing unit)))))) + ( killer, who kill him rich with gold, his price is + (String(((Level of Killing Level for (Killing unit)) x 1000)))))
Code:
Killer Stage Clearing
Events
Unit - A unit Dies
Conditions
((Owner of (Dying unit)) controller) Equal to User
(Level of Killing Level for (Dying unit)) Greater than 0
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Killing Level for (Dying unit)) Greater than 1
Then - Actions
Unit - Decrease level of Killing Level for (Dying unit)
Game - Display to (All players) the text: (((Name of (Dying unit)) + ( is stage + (String((Level of Killing Level for (Dying unit)))))) + ( killer, who kill him rich with gold, his price is + (String(((Level of Killing Level for (Dying unit)) x 1000)))))
Else - Actions
Unit - Remove Killing Level from (Dying unit)
Unit - Change color of (Killing unit) to (Color of (Owner of (Dying unit)))
Game - Display to (All players) the text: ((Name of (Dying unit)) + now his hero spirit is clear, he is not killer.)
FIXED
custom atribute ability (killing level ability)