• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Talkaction !quest

in talkactions/talkactions.xml add
XML:
<talkaction words="!quest" event="script" value="queststatus.lua"/>

in talkactions/scripts add queststatus.lua
Lua:
local quests = {50001, 50002, 50003, 50004} --quest storages, add yours here
local done = {}

function onSay(cid, words, param, channel)

	for i, quest in ipairs(quests) do
		if getPlayerStorageValue(cid, quest) > 0 then
			table.insert(done, 1)
		end
	end
	doPlayerSendTextMessage(cid, 19, "You completed "..#done.." out of "..#quests.." Quests.")
    return true
end

To add your quests simply edit the "local quests =" values.

Tested, working ;)
 
Last edited:
in talkactions/talkactions.xml add
XML:
<talkaction words="!quest" event="script" value="queststatus.lua"/>

in talkactions/scripts add queststatus.lua
Lua:
local quests = {50001, 50002, 50003, 50004} --quest storages, add yours here
local done = {}

function onSay(cid, words, param, channel)

    if(param == "") then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
	end
	for i, quest in ipairs(quests) do
		if getPlayerStorageValue(cid, quest) > 0 then
			table.insert(done, 1)
		end
	end
	doPlayerSendTextMessage(cid, 19, "You completed "..#done.." out of "..#quests.." Quests.")
    return true
end

To add your quests simply edit the "local quests =" values.

Tested, working ;)

Which are the params?
 
Back
Top