1
// ZZ> This function makes an item fall to the floor when spawned
3
tmpargument = ACTIONJB //
7
IfStateIs1 // Spellbook burning?
8
IfTimeOut // All burned up?
14
// Find the nearest book-burner
16
tmpdistance = 6 // Friends and Enemies...
17
SetTargetToNearestBlahID
20
tmpdistance = EXPROLEPLAY
21
GiveExperienceToTarget
35
tmpargument = 0 // FIX FOR NETWORK
36
SetState // FIX FOR NETWORK
37
Else // It's not burning...
38
IfReaffirmed // Catch on fire?
42
tmpargument = 75 // Set death time
44
tmpargument = ACTIONKD //
47
IfInWater // Make the spellbook go blank
48
tmpargument = 0 // Is it blank?
51
Else // No, so make it blank
56
IfGrabbed // Change into a spell
57
SetTargetToWhoeverIsHolding //
61
IfContentIs // Saved a blank one
63
tmpargument = selfstate < 1 + tmpx //
68
IfContentIs // Is it soggy?
69
tmpargument = 0 // NOP
70
Else // No, so memorize the spell
72
IfHitGround // Make a sound
74
tmpdistance = rand & 2047 + 10000 //
1
// ZZ> This function makes an item fall to the floor when spawned
3
tmpargument = ACTIONJB //
7
IfStateIs1 // Spellbook burning?
8
IfTimeOut // All burned up?
14
// Find the nearest book-burner
16
tmpdistance = 6 // Friends and Enemies...
17
SetTargetToNearestBlahID
20
tmpdistance = EXPROLEPLAY
21
GiveExperienceToTarget
35
tmpargument = 0 // FIX FOR NETWORK
36
SetState // FIX FOR NETWORK
37
Else // It's not burning...
38
IfReaffirmed // Catch on fire?
42
tmpargument = 75 // Set death time
44
tmpargument = ACTIONKD //
47
IfInWater // Make the spellbook go blank
48
tmpargument = 0 // Is it blank?
51
Else // No, so make it blank
56
IfGrabbed // Change into a spell
57
SetTargetToWhoeverIsHolding //
61
IfContentIs // Saved a blank one
63
tmpargument = selfstate < 1 + tmpx //
68
IfContentIs // Is it soggy?
69
tmpargument = 0 // NOP
70
Else // No, so memorize the spell
72
IfHitGround // Make a sound
74
tmpdistance = rand & 2047 + 10000 //