Jump to content
  • 0

Change race in game


flygun

Question

  • Former Staff

hello guys i used to have a quest to change race in game but after using the source i deleted all the quest

 

I tried to make it with c++ and sql but i think it won't work so I'll stick with the quest ...

 

i know how to create one but i don't know what "quest function" i must use i got only 

pc.get_race

so what i need is the quest if anyone got it :)

 

thanks in advance

  Best regard

       FlyGun :D

Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

2 answers to this question

Recommended Posts

  • 0
  • Former Staff

Check the vnum and the language is PT.

don't thank me.

 

quest char begin
state start begin
when 400009.use begin
say ( "Deseja mudar a Raca do seu Char?" )
say ( "Iras perder todas as skills!" )
say_title ( "Aspectos para nao ficar bugado:" )
say_reward ( "Tem que retirar todos os equipes equipados" )
say_reward ( "Sair e voltar a entrar na conta apos a troca de Raca" )
say ( "" )
local main_set = select ( "Sim" , "Nao" )
if main_set == 2 then
return
end
if main_set == 1 then
say ( "Escolhe a tua nova Personagem?" )
local raca = select ("Guerreiro","Ninja","Sura","Shaman","Fechar")
if raca == 1 then
local sexwar = select ("Masculino","Femenino")
if sexwar == 1 then
pc.polymorph("4")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexwar == 2 then
pc.polymorph("4")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 2 then
local sexninja = select ("Masculino","Femenino")
if sexninja == 2 then
pc.polymorph("5")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexninja == 1 then
pc.polymorph("5")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 3 then
local sexsura = select ("Masculino","Femenino")
if sexsura == 1 then
pc.polymorph("6")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexsura == 2 then
pc.polymorph("6")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 4 then
local sexsham = select ("Masculino","Femenino")
if sexsham == 2 then
pc.polymorph("7")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexsham == 1 then
pc.polymorph("7")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 5 then
return
end
end
else
say ( "Do you want to change your" )
say ( "Character Race? you will loose your skills!" )
say_title ( "Aspects to not create bug:" )
say_red ( "Remove all your equips" )
say_red ( "Log-in and Log-out after character change" )
say ( "" )
local main_set = select ( "Yes" , "No" )
if main_set == 2 then
return
end
if main_set == 1 then
say ( "Choose your new Race?" )
local raca = select ("Warrior","Ninja","Sura","Shaman","Close")
if raca == 1 then
local sexwar = select ("Male","Female")
if sexwar == 1 then
pc.polymorph("4")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexwar == 2 then
pc.polymorph("4")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 2 then
local sexninja = select ("Male","Female")
if sexninja == 2 then
pc.polymorph("5")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexninja == 1 then
pc.polymorph("5")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 3 then
local sexsura = select ("Male","Female")
if sexsura == 1 then
pc.polymorph("6")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexsura == 2 then
pc.polymorph("6")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 4 then
local sexsham = select ("Male","Female")
if sexsham == 2 then
pc.polymorph("7")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexsham == 1 then
pc.polymorph("7")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 5 then
return
end
end
end
end
end
end

  • Love 1
Link to comment
Share on other sites

  • 0
  • Former Staff

Check the vnum and the language is PT.

don't thank me.

 

quest char begin
state start begin
when 400009.use begin
say ( "Deseja mudar a Raca do seu Char?" )
say ( "Iras perder todas as skills!" )
say_title ( "Aspectos para nao ficar bugado:" )
say_reward ( "Tem que retirar todos os equipes equipados" )
say_reward ( "Sair e voltar a entrar na conta apos a troca de Raca" )
say ( "" )
local main_set = select ( "Sim" , "Nao" )
if main_set == 2 then
return
end
if main_set == 1 then
say ( "Escolhe a tua nova Personagem?" )
local raca = select ("Guerreiro","Ninja","Sura","Shaman","Fechar")
if raca == 1 then
local sexwar = select ("Masculino","Femenino")
if sexwar == 1 then
pc.polymorph("4")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexwar == 2 then
pc.polymorph("4")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 2 then
local sexninja = select ("Masculino","Femenino")
if sexninja == 2 then
pc.polymorph("5")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexninja == 1 then
pc.polymorph("5")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 3 then
local sexsura = select ("Masculino","Femenino")
if sexsura == 1 then
pc.polymorph("6")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexsura == 2 then
pc.polymorph("6")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 4 then
local sexsham = select ("Masculino","Femenino")
if sexsham == 2 then
pc.polymorph("7")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexsham == 1 then
pc.polymorph("7")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 5 then
return
end
end
else
say ( "Do you want to change your" )
say ( "Character Race? you will loose your skills!" )
say_title ( "Aspects to not create bug:" )
say_red ( "Remove all your equips" )
say_red ( "Log-in and Log-out after character change" )
say ( "" )
local main_set = select ( "Yes" , "No" )
if main_set == 2 then
return
end
if main_set == 1 then
say ( "Choose your new Race?" )
local raca = select ("Warrior","Ninja","Sura","Shaman","Close")
if raca == 1 then
local sexwar = select ("Male","Female")
if sexwar == 1 then
pc.polymorph("4")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexwar == 2 then
pc.polymorph("4")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 2 then
local sexninja = select ("Male","Female")
if sexninja == 2 then
pc.polymorph("5")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexninja == 1 then
pc.polymorph("5")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 3 then
local sexsura = select ("Male","Female")
if sexsura == 1 then
pc.polymorph("6")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexsura == 2 then
pc.polymorph("6")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 4 then
local sexsham = select ("Male","Female")
if sexsham == 2 then
pc.polymorph("7")
pc.change_sex()
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
elseif sexsham == 1 then
pc.polymorph("7")
pc.change_sex()
pc.polymorph("20032")
pc.polymorph("1")
pc.change_sex()
pc.polymorph("20032")
pc.setqf("clear", 0)
pc.clear_skill()
pc.set_skill_group(0)
set_quest_state("skill_group","run")
pc.removeitem(400009, 1)
pc.set_part(PART_HAIR, 0)
end
elseif raca == 5 then
return
end
end
end
end
end
end

thx but i edited it :)

 

quest change_race begin
	state start begin
		when 40002.use begin
			say ( "Do you want to change your" )
			say ( "Character Race? you will loose your skills!" )
			say_title ( "Aspects to not create bug:" )
			say_red ( "Remove all your equips" )
			say_red ( "Log-in and Log-out after character change" )
			say ( "" )
			local main_set = select ( "Yes" , "No" )
			if main_set == 1 then
				say ( "Choose your new Race?" )
				local race = select ("Warrior","Ninja","Sura","Shaman","Close")
			if race == 1 then
					local sexwar = select ("Male","Female")
				if sexwar == 1 then
					pc.polymorph("4")
					pc.change_sex()
					pc.setqf("clear", 0)
					pc.clear_skill()
					pc.set_skill_group(0)
					set_quest_state("skill_group","run")
					--	pc.removeitem(400009, 1)
					pc.set_part(PART_HAIR, 0)
				elseif sexwar == 2 then
					pc.polymorph("4")
					pc.change_sex()
					pc.polymorph("20032")
					pc.polymorph("1")
					pc.change_sex()
					pc.polymorph("20032")
					pc.setqf("clear", 0)
					pc.clear_skill()
					pc.set_skill_group(0)
					set_quest_state("skill_group","run")
					--	pc.removeitem(400009, 1)
					pc.set_part(PART_HAIR, 0)
					end
				elseif race == 2 then
					local sexninja = select ("Male","Female")
					if sexninja == 2 then
					pc.polymorph("5")
					pc.change_sex()
					pc.setqf("clear", 0)
					pc.clear_skill()
					pc.set_skill_group(0)
					set_quest_state("skill_group","run")
					--	pc.removeitem(400009, 1)
					pc.set_part(PART_HAIR, 0)
				elseif sexninja == 1 then
					pc.polymorph("5")
					pc.change_sex()
					pc.polymorph("20032")
					pc.polymorph("1")
					pc.change_sex()
					pc.polymorph("20032")
					pc.setqf("clear", 0)
					pc.clear_skill()
					pc.set_skill_group(0)
					set_quest_state("skill_group","run")
					--	pc.removeitem(400009, 1)
					pc.set_part(PART_HAIR, 0)
					end
				elseif race == 3 then
					local sexsura = select ("Male","Female")
					if sexsura == 1 then
					pc.polymorph("6")
					pc.change_sex()
					pc.setqf("clear", 0)
					pc.clear_skill()
					pc.set_skill_group(0)
					set_quest_state("skill_group","run")
					--	pc.removeitem(400009, 1)
					pc.set_part(PART_HAIR, 0)
				elseif sexsura == 2 then
					pc.polymorph("6")
					pc.change_sex()
					pc.polymorph("20032")
					pc.polymorph("1")
					pc.change_sex()
					pc.polymorph("20032")
					pc.setqf("clear", 0)
					pc.clear_skill()
					pc.set_skill_group(0)
					set_quest_state("skill_group","run")
					--	pc.removeitem(400009, 1)
					pc.set_part(PART_HAIR, 0)
					end
				elseif race == 4 then
					local sexsham = select ("Male","Female")
					if sexsham == 2 then
					pc.polymorph("7")
					pc.change_sex()
					pc.setqf("clear", 0)
					pc.clear_skill()
					pc.set_skill_group(0)
					set_quest_state("skill_group","run")
					--	pc.removeitem(400009, 1)
					pc.set_part(PART_HAIR, 0)
				elseif sexsham == 1 then
					pc.polymorph("7")
					pc.change_sex()
					pc.polymorph("20032")
					pc.polymorph("1")
					pc.change_sex()
					pc.polymorph("20032")
					pc.setqf("clear", 0)
					pc.clear_skill()
					pc.set_skill_group(0)
					set_quest_state("skill_group","run")
					--	pc.removeitem(400009, 1)
					pc.set_part(PART_HAIR, 0)
					end
		elseif race == 5 then
					return
				end
			end
		end
	end
end

  • Love 1
Link to comment
Share on other sites

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


  • Activity

    1. 7

      Metin2 2003 Beta Client!!!!!

    2. 32

      Boss Effect Over Head

    3. 1

      Open Source API for Metin2 Server Management - Early Development

    4. 0

      Official Item Combination [18.4]

    5. 2

      Proper SIGNAL management for Windows

    6. 2

      Proper SIGNAL management for Windows

    7. 4

      syserr erorr ( not working OK button on client )

  • Recently Browsing

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