diff options
author | Reid Yaro <reidyaro@gmail.com> | 2013-05-26 03:06:36 +0100 |
---|---|---|
committer | Reid Yaro <reidyaro@gmail.com> | 2013-05-26 03:06:36 +0100 |
commit | d56440eeff13d44f0f2495ade0bfde4bc8b7cd72 (patch) | |
tree | ee2eae49f1e2589961d6990c9faad97a0eb9d511 /npc/items | |
parent | 444cd3c4f2ce43ec32d3eef52113c47fc5c39648 (diff) | |
download | serverdata-d56440eeff13d44f0f2495ade0bfde4bc8b7cd72.tar.gz serverdata-d56440eeff13d44f0f2495ade0bfde4bc8b7cd72.tar.bz2 serverdata-d56440eeff13d44f0f2495ade0bfde4bc8b7cd72.tar.xz serverdata-d56440eeff13d44f0f2495ade0bfde4bc8b7cd72.zip |
Add arguments on usePoison function.
Diffstat (limited to 'npc/items')
-rw-r--r-- | npc/items/poison.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/npc/items/poison.txt b/npc/items/poison.txt index a6691070..c940ac26 100644 --- a/npc/items/poison.txt +++ b/npc/items/poison.txt @@ -5,17 +5,17 @@ // Reid // Vasily_Makarov // Description: -// Poison effect of some items with parameters: -// @r randomness of bad luck to be poisoned, -// @h heal value, -// @p poison value (not implemented yet). +// 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(@r); + set @temp, rand(getarg(0)); if (@temp == 0) sc_start sc_poison, 1, 50; set @temp, 0; set @r, 0; - itemheal @h, 0; + itemheal getarg(1), 0; set @h, 0; return; -}
\ No newline at end of file +} |