diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-06-02 16:53:57 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-06-02 16:53:57 +0000 |
commit | 33d5ea3261e70cba7e0f4af5c1e6eb070f168112 (patch) | |
tree | 8cb2bf9a5b52edb5fe38a4e3e03c39413ac5c19e /data | |
parent | d828101f448520c191124f92d710ac5c3099529f (diff) | |
download | manaserv-33d5ea3261e70cba7e0f4af5c1e6eb070f168112.tar.gz manaserv-33d5ea3261e70cba7e0f4af5c1e6eb070f168112.tar.bz2 manaserv-33d5ea3261e70cba7e0f4af5c1e6eb070f168112.tar.xz manaserv-33d5ea3261e70cba7e0f4af5c1e6eb070f168112.zip |
Removed the unused "npc" argument from the get_quest_var function.
Diffstat (limited to 'data')
-rw-r--r-- | data/scripts/libtmw.lua | 2 | ||||
-rw-r--r-- | data/test.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/data/scripts/libtmw.lua b/data/scripts/libtmw.lua index 2471b7cf..e788a59b 100644 --- a/data/scripts/libtmw.lua +++ b/data/scripts/libtmw.lua @@ -91,7 +91,7 @@ end -- Gets the value of a quest variable. -- Calling this function while an acknowledment is pending is desirable, so -- that lag cannot be perceived by the player. -function get_quest_var(npc, ch, name) +function get_quest_var(ch, name) -- Query the server and return immediatly if a value is available. local value = tmw.chr_get_quest(ch, name) if value then return value end diff --git a/data/test.lua b/data/test.lua index a1114514..cebabddb 100644 --- a/data/test.lua +++ b/data/test.lua @@ -75,7 +75,7 @@ function npc1_talk(npc, ch) elseif v == 5 then if tmw.chr_money_change(ch, -100) then do_message(npc, ch, string.format("Thank you for you patronage! You are left with %d gil.", tmw.chr_money(ch))) - local g = tonumber(get_quest_var(npc, ch, "001_donation")) + local g = tonumber(get_quest_var(ch, "001_donation")) if not g then g = 0 end g = g + 100 tmw.chr_set_quest(ch, "001_donation", g) |