Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

Metin2 Quest Question :D


Meezyy'

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

Link to comment

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

when you return 0 and server doesn't boot:

unknown.png

Link to comment

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

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 7

      PHOENIX2 !OLDSCHOOL SERVER, PAYTOWIN REMOVED!

    2. 0

      special_item_group and chest apprentice

    3. 2

      Alternative Alternative Zodiac Suit - Ninja M

    4. 0

      character details negative bonus

    5. 0

      Questlib mysql_query function problem

  • Recently Browsing

    • No registered users viewing this page.

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.