1
// Set up general stuff
27
// Make it lie on the floor
33
// Play a clink or clang
39
// Alert others to draw
41
SetTargetToWhoeverIsHolding
48
// Tell them what they've won...
50
SetTargetToWhoeverIsHolding
57
// Give the user a bonus, but it's addictive...
64
tmpargument = 1 //Make them drink it
70
Else //They don't know what it was
78
GiveExperienceToTarget
79
tmpargument = 1 //Make them drink it
82
//This proceeds if the player drank the potion
86
tmpargument = 0 - 32 // Decrease max life a little
89
// Increase current life
90
tmpargument = rand & 2047 + 2048 //Amount of life healed
92
tmpargument = ACTIONMC //Drink animation
94
tmpdistance = SPAWNORIGIN
96
SpawnAttachedHolderParticle
97
Else //This makes them drop it if not set to use
98
tmpx = selfx //Where to spawn the object
101
tmpdistance = 0 //Velocity speed of the spawned object
102
SpawnCharacter //Spawn a copy of the flask
112
SetState //Reset for next use