Cerere quest mount.

Avatar utilizator
nytro123
Nivel 2

Nivel 2
Mesaje: 299
Membru din: 21 Aug 2014, 11:07
Regat: Jinno
Aprecieri: 253  
Mulţumiri: 25  
Medalii

Salut as dori si eu un quest pentru mount dar fara bonusuri deoarece le-am facut din sursa. Am incercat eu sa modific un quest de pe acest forum dar nu stiu de ce imi spune "quest: must start with quest". Posibil sa fie o prostie ce am facut eu .:))
Multumesc!
quest ride begin
 state start begin
   function ride( vnum )
     ride_info = {
     [71125] = { 20115, 30},
     }
     if pc.level < ride_info[vnum][3] then
       say_title("Informaþie:")
       say("Nu ai nivelul necesar pentru a îmblânzi acest")
       say("mount, înearcã mai târziu.")
       return
     elseif pc.is_polymorphed() then
       say_title("Informaþie:")
       say("Nu poþi face aºa ceva cât timp eºti transformat.")
       return
     elseif pc.is_riding() then
       say_title("Informaþie:")
       say("Nu poþi face aºa ceva, deoarece eºti")
       say("deja pe un mount..")
       return
     else
   pc.mount( ride_info[vnum][1], ride_info[vnum][2] )
   end
   end
   end
   when 71124.use begin
   ride.Ride(item.get_vnum())
   end
     local vnum, remain_time = pc.get_special_ride_vnum()
     if 0 != vnum then
       if pc.is_polymorphed() then
         return
       elseif pc.is_riding() then
         return
       else
         ride.Ride(vnum, remain_time)
       end
     end
   end

 end
end
Avatar utilizator
Athero
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 3936
Membru din: 17 Aug 2017, 00:08
Aprecieri: 559  
Mulţumiri: 7142  
Discord: Copiază ID
Medalii

"quest: must start with quest".

Adauga sau sterge un end la final.
//retras
Afișează semnătura
Avatar utilizator
nytro123
Nivel 2

Nivel 2
Mesaje: 299
Membru din: 21 Aug 2014, 11:07
Regat: Jinno
Aprecieri: 253  
Mulţumiri: 25  
Medalii

Nu ii dau de cap....
quest ride begin
	state start begin
		function ride( vnum )
		ride_info = { [71125] = { 20115, 30},}
		
		if pc.level < ride_info[vnum][3] then
			say_title("Informaþie:")
			say("Nu ai nivelul necesar pentru a îmblânzi acest")
			say("mount, înearcã mai târziu.")
			return
			
		elseif pc.is_polymorphed() then
			say_title("Informaþie:")
			say("Nu poþi face aºa ceva cât timp eºti transformat.")
			return
	
		elseif pc.is_riding() then

			say_title("Informaþie:")
			say("Nu poþi face aºa ceva, deoarece eºti")
			say("deja pe un mount..")
			return

		else
			pc.mount( ride_info[vnum][1], ride_info[vnum][2] )
		end

		when 71124.use begin 
			ride.Ride(item.get_vnum())
		end
		
		--local vnum, remain_time = pc.get_special_ride_vnum()
		
		if 0 != vnum then
			if pc.is_polymorphed() then
				return
			
			elseif pc.is_riding() then
				return
	
			--else
				--ride.Ride(vnum, remain_time)
			end
		end
	end
end
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

nytro123 scrie:Nu ii dau de cap....
quest ride begin
	state start begin
		function ride( vnum )
		ride_info = { [71125] = { 20115, 30},}
		
		if pc.level < ride_info[vnum][3] then
			say_title("Informaþie:")
			say("Nu ai nivelul necesar pentru a îmblânzi acest")
			say("mount, înearcã mai târziu.")
			return
			
		elseif pc.is_polymorphed() then
			say_title("Informaþie:")
			say("Nu poþi face aºa ceva cât timp eºti transformat.")
			return
	
		elseif pc.is_riding() then

			say_title("Informaþie:")
			say("Nu poþi face aºa ceva, deoarece eºti")
			say("deja pe un mount..")
			return

		else
			pc.mount( ride_info[vnum][1], ride_info[vnum][2] )
		end

		when 71124.use begin 
			ride.Ride(item.get_vnum())
		end
		
		--local vnum, remain_time = pc.get_special_ride_vnum()
		
		if 0 != vnum then
			if pc.is_polymorphed() then
				return
			
			elseif pc.is_riding() then
				return
	
			--else
				--ride.Ride(vnum, remain_time)
			end
		end
	end
end

Un quest simplu:

Cod: Selectaţi tot

quest mount begin
	state start begin
		when 71114.use begin
			if pc.is_polymorphed() then
				syschat("Nu poti calarii in timp ce esti transformat.")
			elseif false == pc.is_riding() then
			 	if true == horse.is_summon() then
					horse.unsummon()
				end
				pc.mount(20110)
			else
				pc.unmount()
			end
		end
	end
end
Pentru acest mesaj, [RaffaeL] for the post:
nytro123
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
nytro123
Nivel 2

Nivel 2
Mesaje: 299
Membru din: 21 Aug 2014, 11:07
Regat: Jinno
Aprecieri: 253  
Mulţumiri: 25  
Medalii

[RaffaeL] scrie:

Un quest simplu:

Cod: Selectaţi tot

quest mount begin
	state start begin
		when 71114.use begin
			if pc.is_polymorphed() then
				syschat("Nu poti calarii in timp ce esti transformat.")
			elseif false == pc.is_riding() then
			 	if true == horse.is_summon() then
					horse.unsummon()
				end
				pc.mount(20110)
			else
				pc.unmount()
			end
		end
	end
end
Multumesc! dar cum as putea face sa bag mai multe sigilii in acelasi quest ca sa nu fac un quest pentru fiecare sigiliu in parte?
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

nytro123 scrie:
[RaffaeL] scrie:

Un quest simplu:

Cod: Selectaţi tot

quest mount begin
	state start begin
		when 71114.use begin
[....]
Multumesc! dar cum as putea face sa bag mai multe sigilii in acelasi quest ca sa nu fac un quest pentru fiecare sigiliu in parte?
Poftim, si pentru mai multe sigilii:

Cod: Selectaţi tot

quest mount begin
	state start begin
		function mount(vnum)
			mounturi = {
					[71114] = {20110},
					[71115] = {20110},
					[71116] = {20111},
					[71117] = {20111},
					[71119] = {20112},
			}
			pc.mount(mounturi[vnum][1], mounturi[vnum][2])
		end
		when 71114.use or 71115.use or 71116.use or 71117.use  or 71118.use  or 71119.use begin
			if pc.is_polymorphed() then
				syschat("Nu poti calarii in timp ce esti transformat.")
			elseif false == pc.is_riding() then
			 	if true == horse.is_summon() then
					horse.unsummon()
				end
				mount.mount(item.vnum, 0)
			else
				pc.unmount()
			end
		end
	end
end
Pentru acest mesaj, [RaffaeL] a primit 2 (de) mulţumiri
nytro123 • Yanni
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
nytro123
Nivel 2

Nivel 2
Mesaje: 299
Membru din: 21 Aug 2014, 11:07
Regat: Jinno
Aprecieri: 253  
Mulţumiri: 25  
Medalii

[RaffaeL] scrie: Poftim, si pentru mai multe sigilii:

Cod: Selectaţi tot

quest mount begin
	state start begin
		function mount(vnum)
			mounturi = {
					[71114] = {20110},
					[71115] = {20110},
					[71116] = {20111},
					[71117] = {20111},
					[71119] = {20112},
			}
			pc.mount(mounturi[vnum][1], mounturi[vnum][2])
		end
		when 71114.use or 71115.use or 71116.use or 71117.use  or 71118.use  or 71119.use begin
			if pc.is_polymorphed() then
				syschat("Nu poti calarii in timp ce esti transformat.")
			elseif false == pc.is_riding() then
			 	if true == horse.is_summon() then
					horse.unsummon()
				end
				mount.mount(item.vnum, 0)
			else
				pc.unmount()
			end
		end
	end
end
Multumesc mult de tot dar de ce apare "quest:1:must start with quest" chiar nu inteleg.
quest mount begin
   state start begin
      function mount(vnum)
         mounturi = {
               [71115] = {20110},
               [71116] = {20111},
               [71118] = {20112},
               [71120] = {20113},
               [71124] = {20114},
			   [71125] = {20115},
			   [71126] = {20116},
			   [71127] = {20117},
			   [71128] = {20118},
			   [71137] = {20120},
			   [71138] = {20121},
			   [71139] = {20122},
			   [71140] = {20123},
			   [71141] = {20124},
			   [71142] = {20125},
			   [71131] = {20221},
			   [71132] = {20222},
			   [71161] = {20224},
			   [71171] = {20227},
			   [71172] = {20226},
         }
         pc.mount(mounturi[vnum][1], mounturi[vnum][2])
      end
      when 71115.use or 71116.use or 71117.use or 71118.use  or 71120.use  or 71124.use or 71125.use or 71126.use or 71127.use or 71128.use or 71137.use or 71138.use or 71139.use or 71140.use or 71141.use or 71142.use or 71131.use or 71132.use or 71161.use or 71171.use or 71172.use begin
         if pc.is_polymorphed() then
            syschat("Nu poti calarii in timp ce esti transformat.")
         elseif false == pc.is_riding() then
             if true == horse.is_summon() then
               horse.unsummon()
            end
            mount.mount(item.vnum, 0)
         else
            pc.unmount()
         end
      end
   end
end
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

nytro123 scrie:
[RaffaeL] scrie: Poftim, si pentru mai multe sigilii:

Cod: Selectaţi tot

quest mount begin
	state start begin
		function mount(vnum)
			mounturi = {
					[71114] = {20110},
					[71115] = {20110},
					[71116] = {20111},
					[71117] = {20111},
					[71119] = {20112},
			}
			pc.mount(mounturi[vnum][1], mounturi[vnum][2])
		end
		when 71114.use or 71115.use or 71116.use or 71117.use  or 71118.use  or 71119.use begin
			if pc.is_polymorphed() then
				syschat("Nu poti calarii in timp ce esti transformat.")
			elseif false == pc.is_riding() then
			 	if true == horse.is_summon() then
					horse.unsummon()
				end
				mount.mount(item.vnum, 0)
			else
				pc.unmount()
			end
		end
	end
end
Multumesc mult de tot dar de ce apare "quest:1:must start with quest" chiar nu inteleg.
quest mount begin
   state start begin
      function mount(vnum)
         mounturi = {
               [71115] = {20110},
               [71116] = {20111},
               [71118] = {20112},
               [71120] = {20113},
               [71124] = {20114},
			   [71125] = {20115},
			   [71126] = {20116},
			   [71127] = {20117},
			   [71128] = {20118},
			   [71137] = {20120},
			   [71138] = {20121},
			   [71139] = {20122},
			   [71140] = {20123},
			   [71141] = {20124},
			   [71142] = {20125},
			   [71131] = {20221},
			   [71132] = {20222},
			   [71161] = {20224},
			   [71171] = {20227},
			   [71172] = {20226},
         }
         pc.mount(mounturi[vnum][1], mounturi[vnum][2])
      end
      when 71115.use or 71116.use or 71117.use or 71118.use  or 71120.use  or 71124.use or 71125.use or 71126.use or 71127.use or 71128.use or 71137.use or 71138.use or 71139.use or 71140.use or 71141.use or 71142.use or 71131.use or 71132.use or 71161.use or 71171.use or 71172.use begin
         if pc.is_polymorphed() then
            syschat("Nu poti calarii in timp ce esti transformat.")
         elseif false == pc.is_riding() then
             if true == horse.is_summon() then
               horse.unsummon()
            end
            mount.mount(item.vnum, 0)
         else
            pc.unmount()
         end
      end
   end
end
Sterge tot ce tine de questul "ride", din object/state si notarget, si eventual verifica si folderele cu codul sigiliilor(in aceeasi locatie), dupa care reinstaleaza questul.
Se instaleaza, si functioneaza ok.
ImagineImagine Edit: Ai grija la asezare. M-am uitat acum peste questul tau, si ai "end"-uri care inchid aiurea...
Poftim:

Cod: Selectaţi tot

quest mount begin
	state start begin
		function mount(vnum)
			mounturi = {
				[71115] = {20110},
				[71116] = {20111},
				[71118] = {20112},
				[71120] = {20113},
				[71124] = {20114},
				[71125] = {20115},
				[71126] = {20116},
				[71127] = {20117},
				[71128] = {20118},
				[71137] = {20120},
				[71138] = {20121},
				[71139] = {20122},
				[71140] = {20123},
				[71141] = {20124},
				[71142] = {20125},
				[71131] = {20221},
				[71132] = {20222},
				[71161] = {20224},
				[71171] = {20227},
				[71172] = {20226},
			}
			pc.mount(mounturi[vnum][1], mounturi[vnum][2])
		end
		when 71115.use or 71116.use or 71117.use or 71118.use  or 71120.use  or 71124.use or 71125.use or 71126.use or 71127.use or 71128.use or 71137.use or 71138.use or 71139.use or 71140.use or 71141.use or 71142.use or 71131.use or 71132.use or 71161.use or 71171.use or 71172.use begin
			if pc.is_polymorphed() then
				syschat("Nu poti calarii in timp ce esti transformat.")
			elseif false == pc.is_riding() then
				if true == horse.is_summon() then
				horse.unsummon()
				end
				mount.mount(item.vnum, 0)
			else
				pc.unmount()
			end
		end
	end
end
Pentru acest mesaj, [RaffaeL] for the post:
nytro123
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
nytro123
Nivel 2

Nivel 2
Mesaje: 299
Membru din: 21 Aug 2014, 11:07
Regat: Jinno
Aprecieri: 253  
Mulţumiri: 25  
Medalii

[RaffaeL] scrie: Sterge tot ce tine de questul "ride", din object/state si notarget, si eventual verifica si folderele cu codul sigiliilor(in aceeasi locatie), dupa care reinstaleaza questul.
Se instaleaza, si functioneaza ok.
ImagineImagine Edit: Ai grija la asezare. M-am uitat acum peste questul tau, si ai "end"-uri care inchid aiurea...
Poftim:

Cod: Selectaţi tot

quest mount begin
	state start begin
		function mount(vnum)
			mounturi = {
				[71115] = {20110},
				[71116] = {20111},
				[71118] = {20112},
				[71120] = {20113},
				[71124] = {20114},
				[71125] = {20115},
				[71126] = {20116},
				[71127] = {20117},
				[71128] = {20118},
				[71137] = {20120},
				[71138] = {20121},
				[71139] = {20122},
				[71140] = {20123},
				[71141] = {20124},
				[71142] = {20125},
				[71131] = {20221},
				[71132] = {20222},
				[71161] = {20224},
				[71171] = {20227},
				[71172] = {20226},
			}
			pc.mount(mounturi[vnum][1], mounturi[vnum][2])
		end
		when 71115.use or 71116.use or 71117.use or 71118.use  or 71120.use  or 71124.use or 71125.use or 71126.use or 71127.use or 71128.use or 71137.use or 71138.use or 71139.use or 71140.use or 71141.use or 71142.use or 71131.use or 71132.use or 71161.use or 71171.use or 71172.use begin
			if pc.is_polymorphed() then
				syschat("Nu poti calarii in timp ce esti transformat.")
			elseif false == pc.is_riding() then
				if true == horse.is_summon() then
				horse.unsummon()
				end
				mount.mount(item.vnum, 0)
			else
				pc.unmount()
			end
		end
	end
end
Nu mai inteleg nimic, in object nu am sigiliile, de ce face asa?

https://imgur.com/a/hWUW7Aw
Avatar utilizator
nytro123
Nivel 2

Nivel 2
Mesaje: 299
Membru din: 21 Aug 2014, 11:07
Regat: Jinno
Aprecieri: 253  
Mulţumiri: 25  
Medalii

Vina mea, trebuia sa il aranjez. Quest-ul este functional dar la unicorni am aceasta problema: cand dau CTR+G sa ma dau jos, disparea de sub mine dar sigiliie raman in casuta, mentionez ca au type 16.

Ma urc folosind ctrl+g: https://imgur.com/a/Ie4IgGF

si cand ma dau jos: https://imgur.com/a/ZWs9qCP

EDIT: cred ca am aceasta problema pentru ca nu sunt setati ca mount-uri, nu pot ataca de pe ei. O sa rezolv aceasta problema mai tarziu.

Quest perfect functional.
Închis
Răspunsuri
7
Vizualizări
1027
Răspunsuri
4
Vizualizări
478
Răspunsuri
1
Vizualizări
331
Răspunsuri
5
Vizualizări
658

Înapoi la “Cereri Rezolvate”

  • Informaţie
  • Cine este conectat

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