Jump to content

Mysql query separation after show 10 records in quest


Recommended Posts

Hi. I want to make list with item which character has. I have

quest test begin
	state start begin
		when 20016.chat."Test" begin
			smn()
			say("wanna check ID?")
			local s = select("Yes", "No")
			if s == 1 then
				smn()
				say("ID:")
				local id = tonumber(input())
				if id != 0 and id != nil and id != null and string.len(id) < 7 then
					local res1, res2 = game.query("SELECT name, level, exp FROM player.player WHERE id='"..id.."'");
					smn()
					for num1, str1 in ipairs(res2) do
						say_reward(num1.."\t"..str1.name.."\t"..str1.level.."\t"..str1.exp)
					end
				end
			end
		end
	end
end

How to make that after show 10 records i will see in quest "Continue" button(wait() function in quest)?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.