1
// ZZ> This function makes an item fall to the floor when spawned
3
//Show its poisoned if its identified
5
tmpargument = 0 //Is it not changed already?
7
tmpargument = 1 //Then show poison icon
11
tmpargument = ACTIONJB //
27
IfDropped // Make it lie on floor
29
IfGrabbed // Tell them what they've won...
30
SetTargetToWhoeverIsHolding //
34
IfHitGround // Make a sound
43
SetTargetToWhoeverIsHolding
51
//Check if user poisoned himself
53
SetTargetToWhoeverIsHolding
55
IfTargetHasSkillID //Does it have poison use skill?
56
MakeNameKnown //Tell the players its poisoned
58
tmpx = rand & 2816 + 1024 //Wisdom determines the chance, 15 is never and 4 is almost always
59
tmpy = rand & 500 + targetwis //Randomness to decrease chance
62
EnchantTarget //Give the character some poison damage
64
SendMessageNear //Tell them what happened
65
DetachFromHolder //Drop the weapon
66
MakeNameKnown //Tell the players its poisoned
68
//Paladins dont use poisoned weapons
70
SetTargetToWhoeverIsHolding
74
tmpargument = 6 //I refuse to hold this!
76
MakeNameKnown //Its poisoned, yes