summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-02-11 20:05:49 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-02-11 20:05:49 +0100
commit7603d656a3aaa81201008753f291f2e9ccd821ca (patch)
treeb8f7d3fca0daa27dfa7ce50d94c6c97e5dd6eaf2 /example
parent599642b57e65d5b515fd748a0f71bc7e03723b05 (diff)
downloadmanaserv-7603d656a3aaa81201008753f291f2e9ccd821ca.tar.gz
manaserv-7603d656a3aaa81201008753f291f2e9ccd821ca.tar.xz
manaserv-7603d656a3aaa81201008753f291f2e9ccd821ca.zip
Finally fix Harmony giving some GP to characters.
Diffstat (limited to 'example')
-rw-r--r--example/serverdata/scripts/maps/desert.lua11
1 files changed, 4 insertions, 7 deletions
diff --git a/example/serverdata/scripts/maps/desert.lua b/example/serverdata/scripts/maps/desert.lua
index 7ce46f7..710f552 100644
--- a/example/serverdata/scripts/maps/desert.lua
+++ b/example/serverdata/scripts/maps/desert.lua
@@ -35,13 +35,10 @@ function Harmony(npc, ch, list)
end
--- Give the player 100 units of money the first time.
if harmony_have_talked_to_someone == false then
- if mana.chr_money_change(ch, 100) then
- do_message(npc, ch, "Here is some money for you to find some toys to play with.\nEh Eh!")
- do_message(npc, ch, string.format("You now have %d shiny coins!", mana.chr_money(ch)))
- harmony_have_talked_to_someone = true
- else
- do_message(npc, ch, "Ah, it seems something went wrong...")
- end
+ do_message(npc, ch, "Here is some money for you to find some toys to play with.\nEh Eh!")
+ mana.chr_money_change(ch, 100)
+ do_message(npc, ch, string.format("You now have %d shiny coins!", mana.chr_money(ch)))
+ harmony_have_talked_to_someone = true
end
do_message(npc, ch, "Have fun!")
mana.effect_create(EMOTE_HAPPY, npc)