introduce Dankwart npc and tea fluid

This commit is contained in:
ErikasKontenis 2022-06-26 12:23:24 +03:00
parent 05d5f2ae61
commit a085446eeb
6 changed files with 87 additions and 1 deletions

View File

@ -21,6 +21,7 @@ local messages = {
[FLUID_COCONUTMILK] = "Mmmh.",
[FLUID_FRUITJUICE] = "Mmmh.",
[FLUID_MEAD] = "Aah...",
[FLUID_TEA] = "Gulp.",
}
function onUse(player, item, fromPosition, target, toPosition)

View File

@ -49,6 +49,9 @@ Name = "fruit juice"
TypeID = 16
Name = "mead"
TypeID = 17
Name = "tea"
# --- end of server specific object types ---
TypeID = 100

78
data/npc/dankwart.npc Normal file
View File

@ -0,0 +1,78 @@
# GIMUD - Graphical Interface Multi User Dungeon
# boozer.npc: Datenbank für den Wirt Boozer
Name = "Dankwart"
Outfit = (128,39-58-58-115-0)
Home = [32202,31161,7]
Radius = 1
Behaviour = {
ADDRESS,"hello$",! -> "Hi there and welcome to my tavern. Have a drink."
ADDRESS,"hi$",! -> *
ADDRESS,! -> Idle
BUSY,"hello$",! -> "Please give me a minute, %N.", Queue
BUSY,"hi$",! -> *
BUSY,! -> NOP
VANISH,! -> "You'll be back."
"bye" -> "Good bye.", Idle
"job" -> "I am a tavern keeper. Well at least you would call it like that. Actually I am just responsible for the common hall."
"tavern" -> *
"drink" -> "Are you looking for a drink? I have tea and hot mead. Our mead is a little less stronger than the original barbarian mead though, else we'd have a bunch of tourists pass out here each day."
"news" -> "I assume our town gossip would only bore a traveller like you."
"king" -> "The king probably laughs about Carlin's failure here."
"Queen" -> "The queen should really spend more resources on the Svargrond operations."
"name" -> "I am Dankwart. A rather unusual name at this place but my ancestors came here from Carlin."
"gods" -> "I learned only little about the gods."
"Ferumbras" -> "Some regulars shared stories about this evil sorcerer. It is said that he resurfaced somewhere in the South."
"Excalibug" -> "That is some mighty weapon that got lost in a war or so."
"how", "are", "you" -> "I am fine, thank you."
"barbarians" -> "The barbarians are not as bad as foreigners might think. It is mainly the bad behaviour of the raiders that cause their bad reputation."
"raiders" -> "They are nothing more than mislead people. It's a sad thing that they became that hostile to Svargrond."
"cults" -> "Several people passed our city. They were quite reclusive. It seemed as if others followed them even without passing our city at all ...","I am not sure if they belonged to some sort of cult but they behaved more than suspiciously."
"druids" -> "The druids are still working on intensifying the bonds with the shamans."
"shamans" -> "They are spiritual guides and seers."
"jarl" -> "The jarl is a wise man."
"mines" -> "The mines were lost many years ago. I doubt that we get them back any time soon."
"Chyll" -> "My family converted to the faith of the barbarians to some extent. If you live here long enough, you know from the north wind that there is some force at work here."
"Nibelor" -> "Most of the shamans live on the isle Nibelor."
"Everspring" -> "That is the place of afterlife. Shamans can tell you more about it."
"years", "of", "serpents" -> "They were the reason that my people stranded here. However, my ancestors were not too sorry about it and adapted quite well."
"Svargrond" -> "The town is somewhat rough but it has its charms."
"Edron" -> "Edron must be wonderful and idyllic."
"Carlin" -> "Carlin will probably put more efforts into improving relations with Svargrond soon."
"Venore" -> "Venore will surely try to hinder Carlin in any way."
"Thais" -> "Thais has little interest in this area."
"dragons" -> "There are travellers who will assure you that some dragons exist here in this cold climate. Some even claim that an own breed of ice dragons lives on these isles."
"dwarfs" -> "The dwarfs that came here were able to drink like a true barbarian."
"elf" -> "We rarely see an elf here."
"chakoyas" -> "The chakoyas are a true threat. Luckily, they are not too many and they rarely dare to come close to Svargrond."
"yeti" -> "I don't know if they are real or just some figure of tavern tales."
"bread" -> Type=3600, Amount=1, Price=4, "Do you want to buy a bread for %P gold?", Topic=1
"cheese" -> Type=3607, Amount=1, Price=6, "Do you want to buy cheese for %P gold?", Topic=1
"meat" -> Type=3577, Amount=1, Price=5, "Do you want to buy meat for %P gold?", Topic=1
"ham" -> Type=3582, Amount=1, Price=8, "Do you want to buy a ham for %P gold?", Topic=1
%1,1<%1,"bread" -> Type=3600, Amount=%1, Price=4*%1, "Do you wanna buy %A breads for %P gold?", Topic=1
%1,1<%1,"cheese" -> Type=3607, Amount=%1, Price=6*%1, "Do you wanna buy %A cheese for %P gold?", Topic=1
%1,1<%1,"meat" -> Type=3577, Amount=%1, Price=5*%1, "Do you wanna buy %A meat for %P gold?", Topic=1
%1,1<%1,"ham" -> Type=3582, Amount=%1, Price=8*%1, "Do you wanna buy %A ham for %P gold?", Topic=1
"mead" -> Type=2880, Data=16, Amount=1, Price=5, "Do you want to buy a mug of mead for %P gold?", Topic=1
"tea" -> Type=2880, Data=17, Amount=1, Price=5, "Do you want to buy a mug of tea for %P gold?", Topic=1
%1,1<%1,"mead" -> Type=2880, Data=16, Amount=%1, Price=5*%1, "Do you want to buy %A mugs of mead for %P gold?", Topic=1
%1,1<%1,"tea" -> Type=2880, Data=17, Amount=%1, Price=5*%1, "Do you want to buy %A mugs of tea for %P gold?", Topic=1
Topic=1,"yes",CountMoney>=Price -> "And here is what you ordered.", DeleteMoney, Create(Type)
Topic=1,"yes" -> "You don't have the gold. If we were gambling I'd call you a cheater ... and you know what happens to cheaters, don't you?"
Topic=1 -> "Then not, fine with me."
"buy" -> "I can offer you food and drinks. Get anything else somewhere else and don't bother me."
"do","you","sell" -> *
"do","you","have" -> *
"food" -> "So you are looking for food? We have bread, cheese, ham, and meat."
}

View File

@ -154,6 +154,7 @@ enum FluidTypes_t : uint8_t
FLUID_COCONUTMILK,
FLUID_FRUITJUICE,
FLUID_MEAD,
FLUID_TEA,
};
const uint8_t reverseFluidMap[] = {

View File

@ -1469,6 +1469,7 @@ void LuaScriptInterface::registerFunctions()
registerEnum(FLUID_COCONUTMILK)
registerEnum(FLUID_FRUITJUICE)
registerEnum(FLUID_MEAD)
registerEnum(FLUID_TEA)
registerEnum(TALKTYPE_SAY)
registerEnum(TALKTYPE_WHISPER)

View File

@ -205,6 +205,7 @@ uint8_t getLiquidColor(uint8_t type)
case FLUID_OIL:
case FLUID_RUM:
case FLUID_MEAD:
case FLUID_TEA:
result = FLUID_COLOR_BROWN;
break;
case FLUID_MILK:
@ -770,7 +771,8 @@ FluidNames fluidNames[] = {
{"rum", FLUID_RUM},
{"coconutmilk", FLUID_COCONUTMILK},
{"fruitjuice", FLUID_FRUITJUICE},
{"mead", FLUID_MEAD}
{"mead", FLUID_MEAD},
{"tea", FLUID_TEA}
};
MagicEffectClasses getMagicEffect(const std::string& strValue)