Quest bookday WoM2

Avatar utilizator
NoRulesS
Utilizator interzis !

Utilizator interzis !
Mesaje: 70
Membru din: 08 Aug 2014, 02:12
Aprecieri: 0
Mulţumiri: 5  
Medalii

Scurt si la subiect, acest quest este renumitul eveniment bookday de pe worldofmetin2
duci o carte normala, primesti una colorata în schimb
colorata în ce sens? - colorata adica carte daia care sunt la gardieni, war aura, portocalie, war mental carte rosie, sura bm carte verde, sura a.m albastra s.a.m.d

Cod: Selectaţi tot

quest bookday begin
	state start begin
		when login with game.get_event_flag("worldbookday") == 1 begin
			send_letter("*World Book Day")
			local v=find_npc_by_vnum(20023)
			if v!=0 then
				target.vid("__TARGET__", v, "Soon")
		    	end
		end
		
		when button or info begin
			addimage(20, 12, "booksday.tga")
			say("")
			say("")
			say("")
			say("")
			----"123456789012345678901234567890123456789012345678901234567890"|
			say("Dear players, today is Book Day!")
			say("")
			say("And to celebrate this you can trade your Skill Books")
			say("with Soon by dragging the Skill Book on him.")
			say("")
			say("He will give you a random tome in return!")
			say("")
		end
		
		when 20023.take with item.vnum == 50300 and game.get_event_flag("worldbookday") == 1 begin
			local num = number(1,48)
			local tomes = {50401,50402,50403,50404,50405,50406,50416,50417,50418,50419,50420,50421,50431,50432,50433,50434,50435,50436,50446,50447,50448,50449,50450,50451,50461,50462,50463,50464,50465,50466,50476,50477,50478,50479,50480,50481,50496,50495,50494,50493,50492,50491,50506,50507,50508,50509,50510,50511}
			item.remove()
			pc.give_item2(tonumber(tomes[num]),1)
		end
		
		when 20023.click with game.get_event_flag("worldbookday") == 1 begin
			target.delete("__TARGET__")
			say_title("Soon")
			say("")
			say("Happy Book Day!")
			say("")
			say("Give me any Skill Book you got and I will")
			say("give you one of my favourite books in exchange.")
			say("")
			say("Who knows, you may like it more than yours!")
			say("")
		end
	end
end	
Tutorial instalare quest:
1. Salvaţi conţinutul quest-ului într-un fişier text numit de exemplu nume_quest.quest .
2. Vă conectaţi la filezilla / winscp şi întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveţi).
3. Îl puneţi acolo (să fie .quest) şi da-ţi permisiuni 777.
4. Te loghezi în FreeBSD / putty şi scrii în felul următor: cd /usr/home/game/share/locale/germany/quest apoi ./qc nume_quest.quest
5. Intraţi pe server şi scrieţi /reload q .
6. Testaţi quest-ul.
*Atenție:
when login with game.get_event_flag("worldbookday") == 1 begin
/e worldbookday 1 , in chat.

Este un flag , daca acesta este 1, evenimentul este activ , daca este 0 evenimentul este inactiv.
Ultima oară modificat 28 Dec 2020, 15:05 de către Sathyr, modificat de 2 ori în total.
Motiv: A fost adăugată o rezolvare la sfârșit!
Pentru acest mesaj, NoRulesS a primit 2 (de) mulţumiri
Vassy • Athero
yolo
Afișează semnătura
Avatar utilizator
Filipino
Metin Master

Metin Master
Mesaje: 2789
Membru din: 03 Sep 2014, 21:02
Server: ▬▬▬▬▬▬
Aprecieri: 39  
Mulţumiri: 786  
Discord: Copiază ID
Medalii

Mutat în quest-uri!

[ Mesaj scris via Android ] Imagine
Imagine
Afișează semnătura
Răspunde

Înapoi la “Quest-uri”

  • Informaţie
  • Cine este conectat

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