diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-09 21:24:56 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-09 21:24:56 +0000 |
commit | 031709fc8f63bd6fa2399361bbce96667b767e36 (patch) | |
tree | a861adad005952920c6ab2f4123ed168aba9bf3b /data | |
parent | 8b6b751ab16c212078dbebc15c7250cad16c4d8d (diff) | |
download | manaserv-031709fc8f63bd6fa2399361bbce96667b767e36.tar.gz manaserv-031709fc8f63bd6fa2399361bbce96667b767e36.tar.bz2 manaserv-031709fc8f63bd6fa2399361bbce96667b767e36.tar.xz manaserv-031709fc8f63bd6fa2399361bbce96667b767e36.zip |
Moved creation of testing NPC from C++ to Lua.
Diffstat (limited to 'data')
-rw-r--r-- | data/test.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/data/test.lua b/data/test.lua index 2c756165..109e3dc3 100644 --- a/data/test.lua +++ b/data/test.lua @@ -1,24 +1,23 @@ +function initialize() + tmw.obj_create_npc(110, 50 * 32 + 16, 19 * 32 + 16) +end + function npc_start(npc, ch) tmw.msg_npc_message(npc, ch, "What do you want?") - return 0 end function npc_next(npc, ch) tmw.msg_npc_choice(npc, ch, "Guns! Lots of guns!:Nothing") - return 0 end function npc_choose(npc, ch, v) if v == 1 then tmw.msg_npc_message(npc, ch, "Sorry, this is a heroic-fantasy game, I do not have any gun.") end - return 0 end function npc_update(npc) - return 0 end function update() - return 0 end |