local question_data = {
[{"WER", "HAT", "WELT", "ERSCHAFFEN"}] = "LUA"
}
function get_answer(question, minequal)
local minequal = minequal or 100
local question = string.upper(question)
for keywords,answer in pairs(question_data) do
local equalcount = 0
for _,keyword in ipairs(keywords) do
if string.find(question, keyword) then
equalcount = equalcount+1
end
end
if equalcount >= (table.getn(keywords)/100*minequal) then
return answer
end
end
return "Ich konnte keine Antwort finden. (PS: LUA hat die Welt erschaffen)"
end
print(get_answer("LUA, bitte sage mir, wer hat die Welt erschaffen?"))
--> LUA
print(get_answer("LUA, bitte sage mir, wer hat die Welt?", 50))
--> LUA
print(get_answer("LUA, bitte sage mir, wer hat die Welt?", 76))
--> Ich konnte keine Antwort finden. (PS: LUA hat die Welt erschaffen)
[Mini-Release] Mini Grinder-Helper + Source 09/03/2014 - Aion Hacks, Bots, Cheats & Exploits - 8 Replies Hi everyone, just made a small Mini-Tool in C# that displays XP,HP,MP and a small information (if XP changed between 2 update-rates) how much repeats are needed for lvl up. XP,TP,MP are also given in Progressbars.
E.G.: You are doing repeatables for leveling, this shows at finishing quests, the amount, of how often u would need to finish it again until level up.
I also give you the current sourcecode of this mini-tool.
.Net-Version: 4.5
Visual-Studio-Version: Visual Studio 2013
Also...
[mini mini Release] Warning for IE for heni script 09/19/2011 - Metin2 PServer Guides & Strategies - 14 Replies this is nothing special
I just i see a lots of people have troubles with the Internet Explorer browser on the almost all HP have be release on epvp
so i will explain a bether way to warning the user he is using the internet explorer and you recomend use firefox or chrone without using enterpage
1 put this code inside the <head> </head> tag
<!-->
<script type="text/javascript">