blob: c940ac268c4862bb6b805726a5c76da524b5b4d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Evol scripts.
// Authors:
// Alastrim
// Alige
// Reid
// Vasily_Makarov
// Description:
// Poison effect of some items with arguments:
// getarg(0) randomness of bad luck to be poisoned,
// getarg(1) heal value,
// getarg(2) poison value (not implemented yet).
function script usePoison {
set @temp, rand(getarg(0));
if (@temp == 0) sc_start sc_poison, 1, 50;
set @temp, 0;
set @r, 0;
itemheal getarg(1), 0;
set @h, 0;
return;
}
|