Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- To use do .qc
- function UpdateQuest(player)
- local query = WorldDBQuery("SELECT ID FROM quest_template")
- if query then
- repeat
- local row = query:GetRow()
- local Quest = tonumber(row["ID"])
- if player:HasQuest(Quest) then
- player:CompleteQuest(Quest)
- end
- until not query:NextRow()
- end
- end
- local function QuestAutoComplete(event, player, command)
- if (command == "qc") then
- UpdateQuest(player)
- player:SendBroadcastMessage("Quest Been Completed")
- return false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement