Jump to content

Metin2 Quest Question :D


Recommended Posts

Hello,

 

cause i don't know where i can ask you my friends some Questions, i'm doing it here.

You can move my Topic.

 

So my Question is:

Is this correct? Will it work?

quest truhen begin
	state start begin
		when firstlogin begin
			pc.give_item2(50187)
			set_state(truhen)
		end
	end
	state truhen begin
		when 50187.use begin
		local item_vnum = 11299
			item_vnum = 149
			item_vnum = 15419
			item_vnum = 13069
			item_vnum = 14209
			item_vnum = 16209
			item_vnum = 17209
			item_vnum = 12269
		if pc.get_job() == 1 then
			item_vnum = 11499
			item_vnum = 1109
			item_vnum = 15419
			item_vnum = 13089
			item_vnum = 14209
			item_vnum = 16209
			item_vnum = 17209
			item_vnum = 12399
		elseif pc.get_job() == 2 then
			item_vnum = 11699
			item_vnum = 159
			item_vnum = 13109
			item_vnum = 14209
			item_vnum = 16209
			item_vnum = 17209
			item_vnum = 12539
		elseif pc.get_job() == 3 then
			item_vnum = 7149
			item_vnum = 11899
			item_vnum = 13129
			item_vnum = 14209
			item_vnum = 16209
			item_vnum = 17209
			item_vnum = 12679
		end
		pc.give_item2(53001, 1)
		pc.give_item2(70026, 1)
		chat("Herzlich Willkommen!")
		end
	end
end
			

			
			

Thx for your Help 

 

in Love 

 

Meezyy

Link to comment
Share on other sites

  • Developer

when firstlogin begin
firstlogin doesn't exists, so you can use a questflag to verify if the login is the first, or at the end, you can do a change of character's state. I prefer using a questflag btw.

quest truhen begin
	state start begin
		when login with pc.getqf('firstlogin') == 0 begin
			pc.setqf('firstlogin', 1)
			pc.give_item2(50187)
		end
		when 50187.use begin
			local item_vnum = {
				{11299,149,15419,13069,14209,16209,17209,12269},
				{11499,1109,15419,13089,14209,16209,17209,12399},
				{11699,159,13109,14209,16209,17209,12539},
				{7149,11899,13129,14209,16209,17209,12679}
			}
			for i = 1, table.getn(item_vnum[pc.get_job()+1]) do
				pc.give_item2(item_vnum[pc.get_job()+1][i], 1)
			end
		end
	end
end

  • Love 1

when you return 0 and server doesn't boot:

unknown.png

Link to comment
Share on other sites

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.