-YC- Posted September 2, 2014 Report Share Posted September 2, 2014 Hola será que alguien me pueda hacer una quest sencilla que se le ponga a un item X y al darle click diga un texto "Welcome to Metin2 Select Your Country" y se ponga una lista de países ejemplo: México Colombia Perú Uruguay España Argentina etc. y que al seleccionarlo te de un item y desaparezca después. estaba haciendo tratando de hacerla pero me quedo así y me da core dump y como se podría hacer para que detecte el género. quest select_country begin state start begin when 50096.use say_tittle ("Selecciona tu País:") say("Hola ".. pc.get_name() .."") say("Por nuestra inauguración estamos de fiesta.....") say("Si amas a tu país esto es para tí") say("Escoge tu país;") local main_set = select ("México","España","Colombia","Ahora No") if main_set == 1 then pc.give_item2 ("41374" , 1) chat("Ve a lucir tu patria.") item.remove() elseif main_set == 2 then pc.give_item2 ("41384" , 1) chat("Ve a lucir tu patria.") item.remove() elseif main_set == 3 then pc.give_item2 ("41344" , 1) chat("Ve a lucir tu patria.") item.remove() end elseif main_set == 4 then return end end end Link to comment Share on other sites More sharing options...
SeMa™ Posted September 2, 2014 Report Share Posted September 2, 2014 quest a begin state start begin when xxx.use begin say"" say"" say"" local s = select("España","Alemania","Mexico","Salir") if s == 1 then pc.give_item2(xxx) item.remove() return elseif s == 2 then pc.give_item2(xxx) item.remove() return elseif s == 3 then pc.give_item2(xxx) item.remove() return end end endend PD: Tu error está en: Link to comment Share on other sites More sharing options...
SeMa™ Posted September 2, 2014 Report Share Posted September 2, 2014 elseif main_set == 3 then pc.give_item2 ("41344" , 1) chat("Ve a lucir tu patria.") item.remove() end ------------------aqui el error elseif main_set == 4 then return end end end Link to comment Share on other sites More sharing options...
WorldArd Posted September 2, 2014 Report Share Posted September 2, 2014 Tambien te falto el begin en en when when 50096.use por: when 50096.use begin y como dice sema colocaste un end en el lugar equivocado saludos! Link to comment Share on other sites More sharing options...
-YC- Posted September 2, 2014 Author Report Share Posted September 2, 2014 quest a begin state start begin when xxx.use begin say"" say"" say"" local s = select("España","Alemania","Mexico","Salir") if s == 1 then pc.give_item2(xxx) item.remove() return elseif s == 2 then pc.give_item2(xxx) item.remove() return elseif s == 3 then pc.give_item2(xxx) item.remove() return end end endend PD: Tu error está en: Gracias pff es mucho menos código y una pregunta para que detecte el género es job=? Link to comment Share on other sites More sharing options...
SeMa™ Posted September 2, 2014 Report Share Posted September 2, 2014 if pc.get_sex() == 1 --- hombre creo y 0 mujer no estoy seguro de cual es cual Link to comment Share on other sites More sharing options...
Shang Posted September 2, 2014 Report Share Posted September 2, 2014 1,2,3,4 hombres (guerrero, ninja, sura, chaman) y 5,6,7,8 mujeres. Link to comment Share on other sites More sharing options...
Recommended Posts