Deiicker Posted December 27, 2014 Report Share Posted December 27, 2014 Estoy tratando de formar un npc multiusos por mi mismo, y ahora mismo voy por la parte en la que si le da a la opción de "Caballo militar", éste le da el caballo militar, le sube el caballo a nivel 21, y luego le otorga el item del caballo militar, pero como soy nuevo, y el virtual me sigue dando error, lo publico acá porque ya no sé que hacer. Imagen del error: Quest: quest militar begin state start begin when 20031.chat."Caballo militar" begin say ( "¿Deseas Tener El Libro Militar Para Montar A Caballo?" ) say ( "CR-MT2 Te Lo Proporciona" ) say ( "" ) local militar = select("Si", "No") if select == 2 then return end if select == 1 then say ( "Has obtenido caballo militar." ) pc.give_item2("50060") horse.set_level(20) horse.summon horse.ride() end end end end Link to comment Share on other sites More sharing options...
pepineitor Posted December 27, 2014 Report Share Posted December 27, 2014 local militar = select("Si", "No") if select == 2 then return end if select == 1 then es así local militar = select("Si", "No") if militar == 2 then return end if militar == 1 then Link to comment Share on other sites More sharing options...
Edward™ Posted December 27, 2014 Report Share Posted December 27, 2014 Para que vas a poner 2 if? local militar = select("Si", "No") if militar == 2 then return end aqui pones lo que sigue --------------------------- local militar = select("Si", "No") if militar == 1 then xxx else return end Link to comment Share on other sites More sharing options...
Recommended Posts