Jump to content
  • 0
Sign in to follow this  
Meezyy'

Metin2 Quest Question :D

Question

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

Share this post


Link to post

7 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
  • 0

Paci your quest is wrong in the table sentences

It was, when I posted I saw where I failed xD

Share this post


Link to post
  • 0

So this is everything i need? 

 

 

#edit VirualBox says Syntax Error

Share this post


Link to post
  • 0

So this is everything i need? 

 

 

#edit VirualBox says Syntax Error

I edited the quest when you was editing your post, try it now.

Share this post


Link to post
  • 0

thx it works.

 

But can you edit it like this, that the box will remove after opening?

 

Meezyy

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.