summaryrefslogtreecommitdiff
path: root/example/scripts/special_actions.lua
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-04-15 22:15:31 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-04-15 22:15:31 +0200
commitc53bc90dbaa876a86f762a3d864b1f920e2b8071 (patch)
tree1a8174f4d1745a4799210db970aa2230df622d34 /example/scripts/special_actions.lua
parentb89e404f85358f2e3ff87d7731376dbeacdf9778 (diff)
parent81be8dc99ba7558c8915310eed095df43e3bdbf7 (diff)
downloadmanaserv-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/special_actions.lua')
-rw-r--r--example/scripts/special_actions.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/example/scripts/special_actions.lua b/example/scripts/special_actions.lua
index 6070ecd3..e18299a2 100644
--- a/example/scripts/special_actions.lua
+++ b/example/scripts/special_actions.lua
@@ -11,12 +11,12 @@
local spell1 = get_special_info("Magic_Test Spell 1")
spell1:on_use(function(user, target, specialid)
target = target or user
- being_say(target, "Kaaame...Haaame... HAAAAAA!")
- chr_set_special_mana(user, specialid, 0)
+ target:say("Kaaame...Haaame... HAAAAAA!")
+ user:set_special_mana(specialid, 0)
end)
-spell1:on_recharged(function(ch) being_say(ch, "Hoooooooo...") end)
+spell1:on_recharged(function(ch) ch:say("Hoooooooo...") end)
local spell2 = get_special_info(2)
-spell2:on_use(function(user) being_say(user, "HAA-DOKEN!") end)
+spell2:on_use(function(user) user:say("HAA-DOKEN!") end)
-get_special_info(3):on_use(function(user) being_say(user, "Sonic BOOM") end)
+get_special_info(3):on_use(function(user) user:say("Sonic BOOM") end)