1
//This function makes an item fall to the floor when spawned
6
IfDropped // Make it lie on floor
8
IfGrabbed // Tell them what they've won, Johnny!
9
SetTargetToWhoeverIsHolding
15
tmpdistance = rand & 2047 + 8000
17
tmpargument = ACTIONDB
28
SetTargetToWhoeverIsHolding
30
IfTargetHasSpecialID //Need divine spell skill
33
tmpy = 768 //Don't overcharge
35
tmpy = targetmanaflow //Enough spell power?
37
tmpargument = 8 //Mana cost
39
GetContent //Increase the charge
40
tmpargument = tmpargument + 8 //Casting Time
43
// Spawn particles around target
44
SetTargetToNearestFriend
47
IfXIsMoreThanY //No target in range, select caster
48
SetTargetToWhoeverIsHolding
54
tmpargument = RED //Icon sparkles
61
IfXIsMoreThanY //Enough power to activate?
67
SetOldTarget //Remember the spell target
68
SetTargetToWhoeverIsHolding
69
SetOwnerToTarget //Make the caster sustain the spell
70
SetTargetToOldTarget //Retarget the spell target
71
EnchantTarget //Do the enchant
72
tmpargument = 100 //Set cooldown time
75
SendMessageNear //Tell what happened
77
tmpdistance = rand & 6000 + 11000
83
IfXIsMoreThanY //Only if there was a charge
85
SendMessageNear //Tell it didn't work
87
tmpdistance = rand & 6000 + 11000
90
SetContent //Reset counter
93
//Award xp and stuff for daring to do it
99
GiveExperienceToTarget
103
// Put the little mana ball on the
109
tmpturn = tmpargument < 4 + 3000
110
tmpdistance = SPAWNORIGIN
112
SpawnAttachedSizedParticle