aku mo tny ttg trigger, mncuri uang
gini scriptny:
Code:
Mencuri
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mencuri
Actions
Set Preman[2] = (Casting unit)
Set TargetUnit[2] = (Target unit of ability being cast)
Set Chance[1] = (Random integer number between 1 and 100)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Chance[1] Less than or equal to 50
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Mencuri for Preman[2]) Equal to 1
Then - Actions
Set Duit = (Integer((0.05 x (Real(((Owner of TargetUnit[2]) Current gold))))))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Mencuri for Preman[2]) Equal to 2
Then - Actions
Set Duit = (Integer((0.07 x (Real(((Owner of TargetUnit[2]) Current gold))))))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Mencuri for Preman[2]) Equal to 3
Then - Actions
Set Duit = (Integer((0.10 x (Real(((Owner of TargetUnit[2]) Current gold))))))
Else - Actions
Do nothing
Player - Add Duit to (Owner of Preman[2]) Current gold
Player - Add (-1 x Duit) to (Owner of Preman[2]) Current gold
Game - Display to (Player group((Owner of Preman[2]))) for 15.00 seconds the text: (Uang yang dicuri sebesar + (Rp. + (String(Duit))))
Floating Text - Create floating text that reads (Rp. + (String(Duit))) above TargetUnit[2] with Z offset 0.00, using font size 10.00, color (100.00%, 60.00%, 60.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 50.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
Else - Actions
Game - Display to (Player group((Owner of Preman[2]))) for 15.00 seconds the text: Gagal melakukan pen...
Floating Text - Create floating text that reads |cffffcc00Miss!|r above TargetUnit[2] with Z offset 0.00, using font size 10.00, color (100.00%, 60.00%, 60.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 50.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
pas di tes efek duitnya bener, kluar angka rp.1000 misalny, tetapi duitnya ga nambah, jdi gw bingung ko ga nambah.
pdhal ini ud bener
Player - Add Duit to (Owner of Preman[2]) Current gold
ada yg bs bantu?
Share This Thread