Magazin general cu 2 limbi

Avatar utilizator
eubogdanel2018
Nivel 1

Nivel 1
Mesaje: 122
Membru din: 27 Dec 2017, 02:57
Server: Metin2Destros
Regat: Shinsoo
Aprecieri: 17  
Mulţumiri: 11  
Medalii

Nume:Magazinul general
Descriere:Ai 2 optiuni la selectare(limba romana si limba engleza), dupa ce iti selectezi limba dorita el va deschide o fereastra in care se afla un text scris de mine ... apoi iti da continuare si dupa ce dai pe continuare apar alte 5 optiuni (potiuni, obiecte speciale, finisaje, nunta si inchide)
Atentie: trebuie sa va creati singuri shop urile din navicate de la player apoi shop si trebui pus la functia " npc.open_shop() " intre paranteze codul vnum al shop ului nu al npc ului 9003, al shop ului pe care l ati creat!
Este creat 100% de mine si de la 0, unde sunt greseli gramaticale va puteti corecta singuri, fara comentarii aiurea ca am vrut sa ajut
Imagini: ------
Quest:
Cu 2 limbi:

Cod: Selectaţi tot

quest l3oogie_Magazin_General begin
   state start begin


--------------------Incepe in Limba Romana-----------------


     when 9003.chat"Limba Română" begin
              say_size(250, 300)
              addimage ( - 85 , - 90 , "002.tga" )
              say_title("Salutare calatorule.")
              say_alb("Pentru efortul tau depus de-a lungul[ENTER]timpului, pentru a mentine pacea intre[ENTER]regate, apararea satenilor de monstrii[ENTER]fiorosi si intunericul pietrelor metin,[ENTER]eu ti-am pus la dispozitie o sumedenie[ENTER]de magazine drept multumire.")
              say_verde("Vei vedea magazinele pe urmatoare pagina.[ENTER][ENTER]")


              wait()


          local AlegeMagazin = select("Potiuni", "Obiecte Speciale", "Finisaje", "Nunta", "Inchideti")

            if AlegeMagazin == 1 then
               say_title("Potiuni:[ENTER]")
               say_alb("Doriti ca sa deschideti magazinul pentru Potiuni?[ENTER][ENTER][ENTER][ENTER]")
              local hotarare1 = select("Da", "Nu")
             if hotarare1 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare1 == 2 then
              return
             end


            elseif AlegeMagazin == 2 then
               say_title("Obiecte Speciale:[ENTER]")
               say_alb("Doriti ca sa deschideti magazinul pentru Obiecte speciale?[ENTER][ENTER][ENTER][ENTER]")
              local hotarare2 = select("Da", "Nu")
             if hotarare2 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare2 == 2 then
              return
             end


            elseif AlegeMagazin == 3 then
               say_title("Finisaje:[ENTER]")
               say_alb("Doriti ca sa deschideti magazinul pentru Finisaje[ENTER][ENTER][ENTER][ENTER]")
              local hotarare3 = select("Da", "Nu")
             if hotarare3 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare3 == 2 then
              return
             end


            elseif AlegeMagazin == 4 then
               say_title("Nunta:[ENTER]")
               say_alb("Doriti ca sa deschideti magazinul pentru Nunta?[ENTER][ENTER][ENTER][ENTER]")
              local hotarare4 = select("Da", "Nu")
             if hotarare4 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare4 == 2 then
              return
             end



            elseif AlegeMagazin == 5 then
              return
            end


setskin(NOWINDOW)



        end 

------------------ - Sfarsit la Limba Romana---------------




---------------------Incepe in Limba Engleza---------------




       when 9003.chat"English Language" begin
              say_size(250, 300)
              addimage ( - 85 , - 90 , "002.tga" )
              say_title("Hello Travel.")
              say_alb("For your effort over time, to maintain peace[ENTER]among the kingdoms, protect the villagers[ENTER]from the fierce monsters and the darkness[ENTER]of the metin stones, I have provided you[ENTER]with a multitude of stores for thanksgiving.") 
             say_verde("You will see the stores on the next page.[ENTER][ENTER]")


              wait()


          local AlegeMagazin = select("Potions", "Special Items", "Finishes", "Wedding", "Hang ups")

            if AlegeMagazin == 1 then
               say_title("Potions:[ENTER]")
               say_alb("Do you want to open the Potions store?[ENTER][ENTER][ENTER][ENTER]")
              local hotarare1 = select("Yes", "No")
             if hotarare1 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare1 == 2 then
              return
             end


            elseif AlegeMagazin == 2 then
               say_title("Special Items:[ENTER]")
               say_alb("Do you want to open the Special Items store?[ENTER][ENTER][ENTER][ENTER]")
              local hotarare2 = select("Yes", "No")
             if hotarare2 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare2 == 2 then
              return
             end


            elseif AlegeMagazin == 3 then
               say_title("Finishes:[ENTER]")
               say_alb("Do you want to open the Finishes store?[ENTER][ENTER][ENTER][ENTER]")
              local hotarare3 = select("Yes", "No")
             if hotarare3 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare3 == 2 then
              return
             end


            elseif AlegeMagazin == 4 then
               say_title("Wedding:[ENTER]")
               say_alb("Do you want to open the Wedding store?[ENTER][ENTER][ENTER][ENTER]")
              local hotarare4 = select("Yes", "No")
             if hotarare4 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare4 == 2 then
              return
             end



            elseif AlegeMagazin == 5 then
              return
            end


setskin(NOWINDOW)



        end

------------------Sfarsit la Limba Engleza-----------------



    end
end
Doar In limba romana:

Cod: Selectaţi tot

quest l3oogie_Magazin_General begin
   state start begin
     when 9003.chat"Diverse" begin
              say_size(250, 300)
              addimage ( - 85 , - 90 , "002.tga" )
              say_title("Salutare calatorule.")
              say_alb("Pentru efortul tau depus de-a lungul[ENTER]timpului, pentru a mentine pacea intre[ENTER]regate, apararea satenilor de monstrii[ENTER]fiorosi si intunericul pietrelor metin,[ENTER]eu ti-am pus la dispozitie o sumedenie[ENTER]de magazine drept multumire.")
              say_verde("Vei vedea magazinele pe urmatoare pagina.[ENTER][ENTER]")
 
 
              wait()
 
 
          local AlegeMagazin = select("Potiuni", "Obiecte Speciale", "Finisaje", "Nunta", "Inchideti")
 
            if AlegeMagazin == 1 then
               say_title("Potiuni:[ENTER]")
               say_alb("Doriti ca sa deschideti magazinul pentru Potiuni?[ENTER][ENTER][ENTER][ENTER]")
              local hotarare1 = select("Da", "Nu")
             if hotarare1 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare1 == 2 then
              return
             end
 
 
            elseif AlegeMagazin == 2 then
               say_title("Obiecte Speciale:[ENTER]")
               say_alb("Doriti ca sa deschideti magazinul pentru Obiecte speciale?[ENTER][ENTER][ENTER][ENTER]")
              local hotarare2 = select("Da", "Nu")
             if hotarare2 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare2 == 2 then
              return
             end
 
 
            elseif AlegeMagazin == 3 then
               say_title("Finisaje:[ENTER]")
               say_alb("Doriti ca sa deschideti magazinul pentru Finisaje[ENTER][ENTER][ENTER][ENTER]")
              local hotarare3 = select("Da", "Nu")
             if hotarare3 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare3 == 2 then
              return
             end
 
 
            elseif AlegeMagazin == 4 then
               say_title("Nunta:[ENTER]")
               say_alb("Doriti ca sa deschideti magazinul pentru Nunta?[ENTER][ENTER][ENTER][ENTER]")
              local hotarare4 = select("Da", "Nu")
             if hotarare4 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare4 == 2 then
              return
             end
 
 
 
            elseif AlegeMagazin == 5 then
              return
            end
 
 
setskin(NOWINDOW)
 
 
               end
        end
 end
Doar in limba Engleza:

Cod: Selectaţi tot

quest l3oogie_Magazin_General begin
   state start begin
       when 9003.chat"Miscellaneous" begin
              say_size(250, 300)
              addimage ( - 85 , - 90 , "002.tga" )
              say_title("Hello Travel.")
              say_alb("For your effort over time, to maintain peace[ENTER]among the kingdoms, protect the villagers[ENTER]from the fierce monsters and the darkness[ENTER]of the metin stones, I have provided you[ENTER]with a multitude of stores for thanksgiving.")
             say_verde("You will see the stores on the next page.[ENTER][ENTER]")
 
 
              wait()
 
 
          local AlegeMagazin = select("Potions", "Special Items", "Finishes", "Wedding", "Hang ups")
 
            if AlegeMagazin == 1 then
               say_title("Potions:[ENTER]")
               say_alb("Do you want to open the Potions store?[ENTER][ENTER][ENTER][ENTER]")
              local hotarare1 = select("Yes", "No")
             if hotarare1 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare1 == 2 then
              return
             end
 
 
            elseif AlegeMagazin == 2 then
               say_title("Special Items:[ENTER]")
               say_alb("Do you want to open the Special Items store?[ENTER][ENTER][ENTER][ENTER]")
              local hotarare2 = select("Yes", "No")
             if hotarare2 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare2 == 2 then
              return
             end
 
 
            elseif AlegeMagazin == 3 then
               say_title("Finishes:[ENTER]")
               say_alb("Do you want to open the Finishes store?[ENTER][ENTER][ENTER][ENTER]")
              local hotarare3 = select("Yes", "No")
             if hotarare3 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare3 == 2 then
              return
             end
 
 
            elseif AlegeMagazin == 4 then
               say_title("Wedding:[ENTER]")
               say_alb("Do you want to open the Wedding store?[ENTER][ENTER][ENTER][ENTER]")
              local hotarare4 = select("Yes", "No")
             if hotarare4 == 1 then
           npc.open_shop(StergeAstaSiBagaCodulVnumDeLaShop)
             elseif hotarare4 == 2 then
              return
             end
 
 
 
            elseif AlegeMagazin == 5 then
              return
            end
 
 
setskin(NOWINDOW)
 
 
 
        end
    end
end
Download(Opţional): ------


Tutorial instalare quest:
  • Salvaţi conţinutul quest-ului într-un fişier text numit de exemplu nume_quest.quest/.lua
  • Vă conectaţi la filezilla / winscp şi întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveţi).
  • Îl puneţi acolo (să fie .quest sau .lua).
  • Te loghezi în FreeBSD / putty şi scrii în felul următor: cd /usr/home/game/share/locale/germany/quest (depinde ce server aveţi) apoi ./qc nume_quest.quest/.lua
  • Intraţi pe server şi scrieţi /reload q
  • Testaţi quest-ul.
[ Postat de pe Android ] Imagine
Răspunde
Răspunsuri
1
Vizualizări
77
Răspunsuri
4
Vizualizări
235
Răspunsuri
6
Vizualizări
373
Răspunsuri
5
Vizualizări
2039

Înapoi la “Quest-uri”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 6 vizitatori