Hello, I have a problem, among others, I would like to execute a command that after entering !quests the following text will appear for the player:
You complet quest: dhq, poi, desert
From the technical side, it looks like this: I have such a table and I would like it to check whether the storage is equal to 1 (what is in the table) when, for example, the player has storage with Annhi and DHQ equal to 1, it will return.
Complet quests: Annhi, DHQ.
You complet quest: dhq, poi, desert
Lua:
questId = {
[1] = {name = "Annhi", text = "Ksss Ksss", storage = 97770},
[2] = {name = "DHQ", text = "Ksss Ksss", storage = 97771},
[3] = {name = "poi", text = "Ksss Ksss", storage = 97772},
[4] = {name = "desert", text = "Ksss Ksss", storage = 97773}
}
function onSay(player, words, param)
if param == "" then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Wykonales: .")
end
return false
end
From the technical side, it looks like this: I have such a table and I would like it to check whether the storage is equal to 1 (what is in the table) when, for example, the player has storage with Annhi and DHQ equal to 1, it will return.
Complet quests: Annhi, DHQ.