Jump to content

Skill Select Instantly


Go to solution Solved by Guest Anonymous,

Recommended Posts

  • Solution
Guest Anonymous
quest get_skill_group begin
	state start begin
		when login or levelup with pc.get_level() >= 5 and pc.get_skill_group() == 0 begin
			send_letter("Choose your path");
		end -- when

		when button or info with pc.get_level() >= 5 and pc.get_skill_group() == 0 begin
			local ways_per_job = {
				[0] = {"Body", "Mental"},
				[1] = {"Blade-Fight", "Archery"},
				[2] = {"Weaponry", "Black Magic"},
				[3] = {"Dragon Force", "Healing Force"}
			};

			say_title("Choose your path:[ENTER]")
			say(string.format("Congratulazions %s,", pc.get_name()))
			say("you've reached level 5, this means you are now")
			say("able to obtain access to tour hidden skills.[ENTER]")
			say("Choose the path you want to take:[ENTER]")

			table.insert(ways_per_job[pc.get_job()], "No, I'll choose later.");
			local skill_select = select_table(ways_per_job[pc.get_job()]);

			if (skill_select ~= table.getn(ways_per_job)) then
				say_title("Choose your path:[ENTER]")
				say(string.format("You've selected %s.", ways_per_job[pc.get_job()][skill_select]))
				say("Are you sure of it?[ENTER]")
				
				if (select("Yes, I'm sure of it.", "No, I'll choose later.") == 1) then
					pc.clear_skill();
					pc.set_skill_group(skill_select);
				else
					send_letter("Choose your path");
				end -- if/else
			else
				send_letter("Choose your path");
			end -- if/else
		end -- when
	end -- state
end -- quest

 

  • Love 4
Link to comment
Share on other sites

  • Premium
1 minute ago, Nero said:

Wow , thank you very much !! :) You wrote this for me ? Or took from somewhere? 

I wrote it, check it again, now it's in full english language.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Premium
3 minutes ago, Nero said:

Thank you again ! :) But how works ? The quest opens instantly when you reach level 5 , or you have to click on it ? 

Click on it, you can even choose to choose later, the quest will be there permanently without disappearing until you choose.

Tell me if you want it to pop instantly at level 5 and only give letter if you want to choose later.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Premium

No problem, hit me up if you want more.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Premium
5 minutes ago, Nero said:

*Off topic*
What you think ? :D 

https://metin2.download/picture/a9y8RSk55Wyv0W43F40N827xQnT458e7/.png <---- is a photo

Cool map!

You should get the trees off of places like near bridges or stairs!

Move them a little bit away.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Good 1

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Premium

ofc, add me up on skype: aresyournightmare

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

Hello,

Why not use simple

If job is==1

If job is .... etc....?

And u modify easier simple 

When level up whit pc.getlvl >=5 begin

Say_title ......

Sry iam in my work place ^^

Just example this ;)

 

30 minutes ago, Syreldar said:

I wrote it, check it again, now it's in full english language.

i found this another forum ... :o

787292068_Nvtelen.png.6faa7b0bbb3398fd29

Link to comment
Share on other sites

  • Premium
2 minutes ago, [007]DawisHU said:

Hello,

Why not use simple

If job is==1

If job is .... etc....?

And u modify easier simple 

When level up whit pc.getlvl >=5 begin

Say_title ......

Sry iam in my work place ^^

Just example this ;)

 

i found this another forum ... :o

Do you even know what are you talking about, my friend? How did you find it elsewhere if i just wrote it? :lol:

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Premium
1 minute ago, [007]DawisHU said:

Not 100% u example (quest)

Little another ... this is true :)

I go to home i writte u ;)

You are lacking the basic concept of "coding".

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

I translated in Turkish;

 

quest get_skill_group begin
	state start begin
		when login or levelup with pc.get_level() >= 5 and pc.get_skill_group() == 0 begin
			send_letter("Yeni yeteneklere ihtiyacımız var");
		end -- when

		when button or info with pc.get_level() >= 5 and pc.get_skill_group() == 0 begin
			local ways_per_job = {
				[0] = {"Bedensel", "Zihinsel"},
				[1] = {"Bıçakçı", "Okçu"},
				[2] = {"Büyülü Silah", "Kara Büyü"},
				[3] = {"Ejderha Gücü", "İyileştirmeci"}
			};

			say_title("Eğitim seç:[ENTER]")
			say(string.format("Tebrikler %s,", pc.get_name()))
			say("Burada olduğuna sevindim, güçlü bir savaşçıya") 
			say("benziyorsun. Şanslısın ki burada yeni savaşçılara")
			say("ihtiyacımız var.")
			say("5 seviyeye ulaştın, nihayet içindeki gizli")
			say("yeteneği ortaya çıkarmak için bir fırsat yakaladın![ENTER]")
			say("Lütfen ustalaşmak istediğin eğitimi seç:")

			table.insert(ways_per_job[pc.get_job()], "Şimdi değil");
			local skill_select = select_table(ways_per_job[pc.get_job()]);

			if (skill_select ~= table.getn(ways_per_job)) then
				say_title("Eğitim seç:[ENTER]")
				say(string.format("Öğrenmek istediğin eğitim %s.", ways_per_job[pc.get_job()][skill_select]))
				say("Bundan emin misin?[ENTER]")
				
				if (select("Eminim", "Şimdi değil") == 1) then
					pc.set_skill_group(skill_select);
					pc.clear_skill();
				else
					send_letter("Yeni yeteneklere ihtiyacımız var");
				end -- if/else
			else
				send_letter("Yeni yeteneklere ihtiyacımız var");
			end -- if/else
		end -- when
	end -- state
end -- quest

 

  • Metin2 Dev 1
Link to comment
Share on other sites

  • Premium
7 minutes ago, [007]DawisHU said:

Hmm really.

Execuse me for i say not u writted.....:facepalm:

 In mobile view is = ....

Hmm u writted manual or quest writter ?

Manual, no software codes like that, my coding style is unique.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

15 minutes ago, Syreldar said:

Manual, no software codes like that, my coding style is unique.

And beautiful...

My big working 4 mont ago i started writting metin stone ; Daily point; Daily quest ; and original work and beautiful vip system last day i finished full coded in locale.lua and dawis_work.lua :D

787292068_Nvtelen.png.6faa7b0bbb3398fd29

Link to comment
Share on other sites

  • Premium
4 minutes ago, daradevil124 said:

I apologize for giving bad news but it does not work

Nothing happens when I click on the letter

I modified the quest many times to fit your needings, please make sure you c/p it as it is right now.

I'm using it on my test server and works fine.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

22 minutes ago, Syreldar said:

I modified the quest many times to fit your needings, please make sure you c/p it as it is right now.

I'm using it on my test server and works fine.

I mean, everything seems right (button, login, letter in object folder) but when I click on the letter, there is a letter again and nothing happens.

Maybe the problem is that I translated it into Turkish? (Using UTF-8 in Turkish)

 

++++++++++++++++++++++++++++++++++++++++++++++++++++

I downloaded the modified quest again, but the result is frustration. The problem is continuing maybe you should check it out?

++++++++++++++++++++++++++++++++++++++++++++++++++++

Link to comment
Share on other sites

31 minutes ago, daradevil124 said:

I mean, everything seems right (button, login, letter in object folder) but when I click on the letter, there is a letter again and nothing happens.

Maybe the problem is that I translated it into Turkish? (Using UTF-8 in Turkish)

 

++++++++++++++++++++++++++++++++++++++++++++++++++++

I downloaded the modified quest again, but the result is frustration. The problem is continuing maybe you should check it out?

++++++++++++++++++++++++++++++++++++++++++++++++++++

Notepad++ convert to ansi.

Go to u channel 1 folder 

Quote here this quest  syserr 's

Quest name is  get_skill_group.quest?

787292068_Nvtelen.png.6faa7b0bbb3398fd29

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.