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
IfTargetHasSkillID //Need divine spell skill
33
tmpy = 512 //Don't overcharge
35
tmpy = targetmanaflow //Enough spell power?
37
tmpargument = 14 //Mana cost
39
GetContent //Increase the charge
40
tmpargument = tmpargument + 8 //Casting Time
47
IfXIsMoreThanY //Enough power to activate?
53
tmpargument = 0 //Set cooldown time
56
SendMessageNear //Tell what happened
61
IfXIsMoreThanY //Only if there was a charge
63
SendMessageNear //Tell it didn't work
65
SetContent //Reset counter
67
// Put the little mana ball on the
73
tmpturn = tmpargument < 4 + 3000
74
tmpdistance = SPAWNORIGIN
76
SpawnAttachedSizedParticle