diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2013-04-15 22:15:31 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2013-04-15 22:15:31 +0200 |
commit | c53bc90dbaa876a86f762a3d864b1f920e2b8071 (patch) | |
tree | 1a8174f4d1745a4799210db970aa2230df622d34 /example/scripts/status/plague.lua | |
parent | b89e404f85358f2e3ff87d7731376dbeacdf9778 (diff) | |
parent | 81be8dc99ba7558c8915310eed095df43e3bdbf7 (diff) | |
download | manaserv-c53bc90dbaa876a86f762a3d864b1f920e2b8071.tar.gz manaserv-c53bc90dbaa876a86f762a3d864b1f920e2b8071.tar.bz2 manaserv-c53bc90dbaa876a86f762a3d864b1f920e2b8071.tar.xz manaserv-c53bc90dbaa876a86f762a3d864b1f920e2b8071.zip |
Merge branch 'master' into lpc2012
Conflicts:
src/account-server/accounthandler.cpp
src/game-server/character.cpp
Diffstat (limited to 'example/scripts/status/plague.lua')
-rw-r--r-- | example/scripts/status/plague.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/example/scripts/status/plague.lua b/example/scripts/status/plague.lua index 2f6a5f6c..e22a77ab 100644 --- a/example/scripts/status/plague.lua +++ b/example/scripts/status/plague.lua @@ -14,14 +14,14 @@ local function tick(target, ticknumber) if (ticknumber % 10 == 0) then - being_say(target, "I have the plague! :( = " .. ticknumber) + target:say("I have the plague! :( = " .. ticknumber) end - local victims = get_beings_in_circle(posX(target), posY(target), 64) + local victims = get_beings_in_circle(target, 64) local i = 1 while (victims[i]) do - if (being_has_status(victims[i], 1) == false) then - being_apply_status(victims[i], 1, 6000) - being_say(victims[i], "I don't feel so good") + if (victims[i]:has_status(1) == false) then + victims[i]:apply_status(1, 6000) + victims[i]:say("I don't feel so good") end i = i + 1 end |