Intrebare teleporter,buton pe inventar

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
[Valentin A.A Vasile]
Utilizator interzis !

Utilizator interzis !
Mesaje: 70
Membru din: 01 Iun 2019, 12:32
Server: În curând...
Regat: Jinno
Aprecieri: 10  
Mulţumiri: 0
Medalii

Salut baietii,
Am si eu o intrebare, am pe inventar functia pentru inelul de teleportare...
cum modific mapele , adica sa le schimb numele, unde trebuie sa intru???
Avatar utilizator
BeauDeCiuda
Utilizator interzis !

Utilizator interzis !
Mesaje: 1915
Membru din: 24 Mar 2014, 16:25
Server: http://infomanii.ro
Regat: Chunjo
Aprecieri: 169  
Mulţumiri: 225  
 Contact:
Medalii

in quest
Imagine
Afișează semnătura
Avatar utilizator
[Valentin A.A Vasile]
Utilizator interzis !

Utilizator interzis !
Mesaje: 70
Membru din: 01 Iun 2019, 12:32
Server: În curând...
Regat: Jinno
Aprecieri: 10  
Mulţumiri: 0
Medalii

BeauDeCiuda scrie: ↑14 Iul 2019, 17:56in quest
Inelul pe care il cumpar de la magazin s-a modificat, dar cel care este pe invetar are mapele nemodificate,doar cel din quest s-a modificat..eu vreau sa-l modific pe ala de la inventar, unde trebuie sa intru ??
Avatar utilizator
BeauDeCiuda
Utilizator interzis !

Utilizator interzis !
Mesaje: 1915
Membru din: 24 Mar 2014, 16:25
Server: http://infomanii.ro
Regat: Chunjo
Aprecieri: 169  
Mulţumiri: 225  
 Contact:
Medalii

[Valentin A.A Vasile] scrie: ↑14 Iul 2019, 18:29
BeauDeCiuda scrie: ↑14 Iul 2019, 17:56in quest
Inelul pe care il cumpar de la magazin s-a modificat, dar cel care este pe invetar are mapele nemodificate,doar cel din quest s-a modificat..eu vreau sa-l modific pe ala de la inventar, unde trebuie sa intru ??
este un quest separat .. mai cauta
Imagine
Afișează semnătura
Avatar utilizator
[Valentin A.A Vasile]
Utilizator interzis !

Utilizator interzis !
Mesaje: 70
Membru din: 01 Iun 2019, 12:32
Server: În curând...
Regat: Jinno
Aprecieri: 10  
Mulţumiri: 0
Medalii

BeauDeCiuda scrie: ↑14 Iul 2019, 18:38
[Valentin A.A Vasile] scrie: ↑14 Iul 2019, 18:29
BeauDeCiuda scrie: ↑14 Iul 2019, 17:56in quest
Inelul pe care il cumpar de la magazin s-a modificat, dar cel care este pe invetar are mapele nemodificate,doar cel din quest s-a modificat..eu vreau sa-l modific pe ala de la inventar, unde trebuie sa intru ??
este un quest separat .. mai cauta

Cod: Selectaţi tot

quest NEWTP begin
   state start begin
      when login begin
         cmdchat("Telep "..q.getcurrentquestindex())
      end
      when button or info begin
         local x
         local y
         local t
         local e = pc.get_empire()
         say_title("Teleporter:")
         say("Incotro vrei sa mergi straine?")
         local s = select("Mapele 1", "Mapele 2", "Valea Orcilor", "Desert", "Sohan", "Urmatoarele", "Inchide")
         if s==6 then
            say_title("Teleporter:")
            say("Incotro vrei sa mergi straine?")
            local p = select("Turnul Demonilor", "V1", "V3", "Mapa cu Fungus", "Mapa cu Scoici", "Inchide")
            if p==1 then
               x="590400"
               y="110500"
			  
            elseif p==2 then
               x="91900"
               y="525400"
			  
            elseif p==3 then
               x="10000"
               y="1214200"
			  
            elseif p==4 then
               x="2302800"
               y="2084900"
			  
            elseif p==5 then
               x="1077000"
               y="1045000"
			  
			elseif p==6 then
			return
			  
            end
         elseif s==1 then
            say_title("Teleporter")
            say("Incotro vrei sa mergi straine?")
            t = select("Regatul Rosu", "Regatul Galben","Inchide")
            if t==1 then
               x="473900"
               y="954600"
			  
            elseif t==2 then
               x="63200"
               y="166700"
			  
            end
         elseif s==2 then
            say_title("Teleporter:")
            say("Incotro vrei sa mergi straine?")
            t = select("Regatul Rosu", "Regatul Galben", "Inchide")
            if t==1 then
               x="352300"
               y="882700"
			  
            elseif t==2 then
               x="145700"
               y="239800"
			  
            end
         elseif s==3 then
            say_title("Teleporter:")
            say("Incotro vrei sa mergi straine?")
            t = select("Inceput", "Centru", "Arahani", "Inchide")
            if t==1 then
               if e==1 then
                  x="402100"
                  y="673900"
				 
               elseif e==2 then
                  x="270400"
                  y="739900"
				 
               elseif e==3 then
                  x="321300"
                  y="808000"
				 
               end
            elseif t==2 then
               x="332700"
               y="745600"
			  
            elseif t==3 then
               x="282800"
               y="792800"
			  
            end
         elseif s==4 then
            say_title("Teleporter:")
            say("Incotro vrei sa mergi straine?")
            t = select("Inceput", "Sfarsit", "Inchide")
            if t==1 then
               if e==1 then
                  x="217800"
                  y="627200"
				 
               elseif e==2 then
                  x="221900"
                  y="502700"
				 
               elseif e==3 then
                  x="344000"
                  y="502500"
				 
               end
            elseif t==2 then
               x="296300"
               y="547500"
			  
            end
         elseif s==5 then
            say_title("Teleporter")
            say("Incotro vrei sa mergi straine?")
            t = select("Inceput", "Mijloc", "Inchide")
            if t==1 then
               if e==1 then
                  x="434200"
                  y="290600"
				 
               elseif e==2 then
                  x="375200"
                  y="174900"
				 
               elseif e==3 then
                  x="491800"
                  y="173600"
				 
               end
            elseif t==2 then
               x="436200"
               y="215300"
            elseif t==3 then
               return
            end
         end         
         if s!=7 or p!= 5 then
            pc.warp(x, y)
         end
      end
   end
end
Quest-ul se numeste teleportare_invetar,deci asta este,il ai mai sus, doar ca atunci cand in execut, imi da : Segmentation fault (core dumped)
Avatar utilizator
[Valentin A.A Vasile]
Utilizator interzis !

Utilizator interzis !
Mesaje: 70
Membru din: 01 Iun 2019, 12:32
Server: În curând...
Regat: Jinno
Aprecieri: 10  
Mulţumiri: 0
Medalii

[Valentin A.A Vasile] scrie: ↑14 Iul 2019, 18:48
BeauDeCiuda scrie: ↑14 Iul 2019, 18:38
[Valentin A.A Vasile] scrie: ↑14 Iul 2019, 18:29

Inelul pe care il cumpar de la magazin s-a modificat, dar cel care este pe invetar are mapele nemodificate,doar cel din quest s-a modificat..eu vreau sa-l modific pe ala de la inventar, unde trebuie sa intru ??
este un quest separat .. mai cauta

Cod: Selectaţi tot

quest NEWTP begin
   state start begin
      when login begin
         cmdchat("Telep "..q.getcurrentquestindex())
      end
      when button or info begin
         local x
         local y
         local t
         local e = pc.get_empire()
         say_title("Teleporter:")
         say("Incotro vrei sa mergi straine?")
         local s = select("Mapele 1", "Mapele 2", "Valea Orcilor", "Desert", "Sohan", "Urmatoarele", "Inchide")
         if s==6 then
            say_title("Teleporter:")
            say("Incotro vrei sa mergi straine?")
            local p = select("Turnul Demonilor", "V1", "V3", "Mapa cu Fungus", "Mapa cu Scoici", "Inchide")
            if p==1 then
               x="590400"
               y="110500"
			  
            elseif p==2 then
               x="91900"
               y="525400"
			  
            elseif p==3 then
               x="10000"
               y="1214200"
			  
            elseif p==4 then
               x="2302800"
               y="2084900"
			  
            elseif p==5 then
               x="1077000"
               y="1045000"
			  
			elseif p==6 then
			return
			  
            end
         elseif s==1 then
            say_title("Teleporter")
            say("Incotro vrei sa mergi straine?")
            t = select("Regatul Rosu", "Regatul Galben","Inchide")
            if t==1 then
               x="473900"
               y="954600"
			  
            elseif t==2 then
               x="63200"
               y="166700"
			  
            end
         elseif s==2 then
            say_title("Teleporter:")
            say("Incotro vrei sa mergi straine?")
            t = select("Regatul Rosu", "Regatul Galben", "Inchide")
            if t==1 then
               x="352300"
               y="882700"
			  
            elseif t==2 then
               x="145700"
               y="239800"
			  
            end
         elseif s==3 then
            say_title("Teleporter:")
            say("Incotro vrei sa mergi straine?")
            t = select("Inceput", "Centru", "Arahani", "Inchide")
            if t==1 then
               if e==1 then
                  x="402100"
                  y="673900"
				 
               elseif e==2 then
                  x="270400"
                  y="739900"
				 
               elseif e==3 then
                  x="321300"
                  y="808000"
				 
               end
            elseif t==2 then
               x="332700"
               y="745600"
			  
            elseif t==3 then
               x="282800"
               y="792800"
			  
            end
         elseif s==4 then
            say_title("Teleporter:")
            say("Incotro vrei sa mergi straine?")
            t = select("Inceput", "Sfarsit", "Inchide")
            if t==1 then
               if e==1 then
                  x="217800"
                  y="627200"
				 
               elseif e==2 then
                  x="221900"
                  y="502700"
				 
               elseif e==3 then
                  x="344000"
                  y="502500"
				 
               end
            elseif t==2 then
               x="296300"
               y="547500"
			  
            end
         elseif s==5 then
            say_title("Teleporter")
            say("Incotro vrei sa mergi straine?")
            t = select("Inceput", "Mijloc", "Inchide")
            if t==1 then
               if e==1 then
                  x="434200"
                  y="290600"
				 
               elseif e==2 then
                  x="375200"
                  y="174900"
				 
               elseif e==3 then
                  x="491800"
                  y="173600"
				 
               end
            elseif t==2 then
               x="436200"
               y="215300"
            elseif t==3 then
               return
            end
         end         
         if s!=7 or p!= 5 then
            pc.warp(x, y)
         end
      end
   end
end
Quest-ul se numeste teleportare_invetar,deci asta este,il ai mai sus, doar ca atunci cand in execut, imi da : Segmentation fault (core dumped)
Hai ma, nimeni??

[ Postat de pe Android ] Imagine
Avatar utilizator
Reme
Deţinător Server

Deţinător Server
Mesaje: 1308
Membru din: 09 Mar 2014, 20:00
Server: www.dm2.ro
Regat: Jinno
Aprecieri: 213  
Mulţumiri: 1932  
Discord: Copiază ID
 Contact:
Medalii

Cod: Selectaţi tot

quest NEWTP begin
   state start begin
      when login begin
         cmdchat("Telep "..q.getcurrentquestindex())
      end
      when button or info begin
         local x
         local y
         local t
         local e = pc.get_empire()
         say_title("Teleporter:")
         say("Incotro vrei sa mergi straine?")
         local s = select("Mapele 1", "Mapele 2", "Valea Orcilor", "Desert", "Sohan", "Urmatoarele", "Inchide")
         if s==6 then
            say_title("Teleporter:")
            say("Incotro vrei sa mergi straine?")
            local p = select("Turnul Demonilor", "V1", "V3", "Mapa cu Fungus", "Mapa cu Scoici", "Inchide")
            if p==1 then
               x="590400"
               y="110500"
			  
            elseif p==2 then
               x="91900"
               y="525400"
			  
            elseif p==3 then
               x="10000"
               y="1214200"
			  
            elseif p==4 then
               x="2302800"
               y="2084900"
			  
            elseif p==5 then
               x="1077000"
               y="1045000"
			  
			elseif p==6 then
			return
			  
            end
         elseif s==1 then
            say_title("Teleporter")
            say("Incotro vrei sa mergi straine?")
            t = select("Regatul Rosu", "Regatul Galben","Inchide")
            if t==1 then
               x="473900"
               y="954600"
			  
            elseif t==2 then
               x="63200"
               y="166700"
			  
            end
         elseif s==2 then
            say_title("Teleporter:")
            say("Incotro vrei sa mergi straine?")
            t = select("Regatul Rosu", "Regatul Galben", "Inchide")
            if t==1 then
               x="352300"
               y="882700"
			  
            elseif t==2 then
               x="145700"
               y="239800"
			  
            end
         elseif s==3 then
            say_title("Teleporter:")
            say("Incotro vrei sa mergi straine?")
            t = select("Inceput", "Centru", "Arahani", "Inchide")
            if t==1 then
               if e==1 then
                  x="402100"
                  y="673900"
				 
               elseif e==2 then
                  x="270400"
                  y="739900"
				 
               elseif e==3 then
                  x="321300"
                  y="808000"
				 
               end
            elseif t==2 then
               x="332700"
               y="745600"
			  
            elseif t==3 then
               x="282800"
               y="792800"
			  
            end
         elseif s==4 then
            say_title("Teleporter:")
            say("Incotro vrei sa mergi straine?")
            t = select("Inceput", "Sfarsit", "Inchide")
            if t==1 then
               if e==1 then
                  x="217800"
                  y="627200"
				 
               elseif e==2 then
                  x="221900"
                  y="502700"
				 
               elseif e==3 then
                  x="344000"
                  y="502500"
				 
               end
            elseif t==2 then
               x="296300"
               y="547500"
			  
            end
         elseif s==5 then
            say_title("Teleporter")
            say("Incotro vrei sa mergi straine?")
            t = select("Inceput", "Mijloc", "Inchide")
            if t==1 then
               if e==1 then
                  x="434200"
                  y="290600"
				 
               elseif e==2 then
                  x="375200"
                  y="174900"
				 
               elseif e==3 then
                  x="491800"
                  y="173600"
				 
               end
            elseif t==2 then
               x="436200"
               y="215300"
            elseif t==3 then
               return
            end
         end         
         if s!=7 or p!= 5 then
            pc.warp(x, y)
         end
      end
   end
end
asta merge perfect, modifici aici numele si etc pe encoding->central european->windows 1250, setarea asta o faci inainte sa dai paste in notepad++
Imagine
Imagine
Afișează semnătura
Închis
Răspunsuri
6
Vizualizări
499
Răspunsuri
12
Vizualizări
1323
Răspunsuri
3
Vizualizări
460
Răspunsuri
0
Vizualizări
136

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie