summaryrefslogtreecommitdiffstats
path: root/example/serverdata/scripts/items/candy.lua
blob: a740ce6a277aac33dda251604adb5cf93c9e214a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-------------------------------------------------------------
-- Example use script. Makes the player character say      --
-- "*munch*munch*munch*" when using this item.             --
-- The HP regeneration effect is handled separately based  --
-- on the heal value in items.xml                          --
----------------------------------------------------------------------------------
--  Copyright 2009 The Mana World Development Team                              --
--                                                                              --
--  This file is part of The Mana World.                                        --
--                                                                              --
--  The Mana World  is free software; you can redistribute  it and/or modify it --
--  under the terms of the GNU General  Public License as published by the Free --
--  Software Foundation; either version 2 of the License, or any later version. --
----------------------------------------------------------------------------------
function use(user)
	mana.being_say(user, "*munch*munch*munch*")
end