1
//-----------------------------------------------------------------------------
2
// Alchemy special abillity
5
SetTargetToTargetLeftHand //Check left hand first
8
IdentifyTarget //Identify potions
12
IdentifyTarget //And flasks
13
SetTargetToTargetRightHand //Repeat with other hand
16
IdentifyTarget //Identify potions
19
IdentifyTarget //And flasks
21
//-----------------------------------------------------------------------------
29
//------------------------------------------------------------------------------
30
// ZZ> Scream and shout
32
tmpdistance = rand & 2047 + 15000
37
//------------------------------------------------------------------------------
38
// ZZ> Handle being bored by cheering or sneezing
43
tmpdistance = rand & 2047 + 15000
45
tmpargument = ACTIONMC
50
//------------------------------------------------------------------------------
51
// ZZ> Handle death by sending a message and other stuff
58
tmpdistance = rand & 2047 + 15000
65
tmpargument = MESSAGECOSTUME
67
tmpargument = MESSAGEDEATH
69
tmpargument = MESSAGEFRAG
71
tmpargument = MESSAGEACCIDENT
76
tmpargument = selflevel*selflevel*100 //The money loss formula
81
// Make the character body
85
//------------------------------------------------------------------------------
91
//------------------------------------------------------------------------------
92
// ZZ> Handle being attacked by blocking or countering or running away
94
SetTargetToWhoeverAttacked
97
tmpdistance = rand & 2047 + 15000
99
tmpargument = MESSAGEOUCH
102
tmpargument = rand & 1 + 5
103
tmpdistance = rand & 2047 + 15000
107
//------------------------------------------------------------------------------
108
// ZZ> Handle being healed by spitting out a message and stopping retreat
113
tmpdistance = rand & 2047 + 15000
117
//------------------------------------------------------------------------------
118
// ZZ> Handle not being able to carry something
123
tmpdistance = rand & 2047 + 15000
126
//------------------------------------------------------------------------------
127
//Invoke special power if enough xp gained
132
UndoEnchant //Hinder looping of same enchant
134
EnchantTarget //Give the special bonus
135
tmpargument = 2 //Spawn some fancy sparklies
141
UndoEnchant //Remove if needed xp is lost
143
//------------------------------------------------------------------------------
145
//------------------------------------------------------------------------------