Skip to content

Commit

Permalink
Added 'horsecandy' quest.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lead0b110010100 authored and Lead0b110010100 committed Apr 23, 2020
1 parent eb5dc35 commit 4f533e3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions main/srv1/share/locale/germany/quest/horsecandy.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
quest horsecandy begin
state start begin
when 71110.use begin
say_title("Wie soll dein Pferd heißen?")
local name = input()
local result = horse.set_name(name)

say_title("Pferdename")
say()

if result == 1 then
say("Dieser Pferdename ist nicht zulässig.")
return
end

say(string.format("Dein Pferd heißt nun %s", name))
say()
item.remove()
end
end
end
1 change: 1 addition & 0 deletions main/srv1/share/locale/germany/quest/quest_list
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ soulstone.lua
level_info.lua
change_name_item.lua
goldbars.lua
horsecandy.lua

0 comments on commit 4f533e3

Please sign in to comment.