Unmantained Guida [RELEASE]Trailer in game.

Una guida contrassegnata come Unmantained contiene informazioni su un argomento obsoleto, non più utile o files non aggiornati da parte del creatore.
Stato
Discussione chiusa ad ulteriori risposte.

Profeta9_5

Utente Emerald
14 Giugno 2009
1,489
78
265
644
Ultima modifica da un moderatore:
Ciao belle °L°
Navigando su epvp ho trovato questa ''simpatica'' relase, che permette di avere il trailer in game, grazie a una quest °ç° [Credit: Epvp]
La quest è in TEDESCO! (se qualcuno a voglia di tradurla... <.<)

Naturalmente bisogna apportare delle modifiche (aspetto qualcuno che ne capisce di piu :\ )



quest servervideos begin state start begin
when Item.use begin
say("Du willst also unsere neusten Videos sehen?")
local s = select("Ja","Nein")
if s == 1 then
say("OK dan wähle aus welche Art du von Videos sehen möchtest!")
local art = select("Servervideos","Events","Sonstiges","Neue Maps","Abbrechen")
if art == 1 then
say("Wähle ein Video aus!")
local video = select("Vortellung","Reittiere","Neue Items","Abbrechen")
if video == 1 then
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id=VideoID&autoplay=1")
setskin(NOWINDOW)
elseif video == 2 then
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id=VideoID&autoplay=1")
setskin(NOWINDOW)
elseif video == 3 then
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id=VideoID&autoplay=1")
setskin(NOWINDOW)
end
elseif art == 2 then
say("Wähle ein Video aus!")
local video = select("Schmied Event","Eifersucht Event","OX Event","Abbrechen")
if video == 1 then
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id=VideoID&autoplay=1")
setskin(NOWINDOW)
elseif video == 2 then
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id=VideoID&autoplay=1")
setskin(NOWINDOW)
elseif video == 3 then
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id=VideoID&autoplay=1")
setskin(NOWINDOW)
end
elseif art == 3 then
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id=VideoID&autoplay=1")
setskin(NOWINDOW)
elseif art == 4 then
say("Wähle ein Video aus!")
local video = select("Feuerland","Blumen Land","Verkauf Land","Map 4","Startermap","Abbrechen")
if video == 1 then
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id=VideoID&autoplay=1")
setskin(NOWINDOW)
elseif video == 2 then
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id=VideoID&autoplay=1")
setskin(NOWINDOW)
elseif video == 3 then
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id=VideoID&autoplay=1")
setskin(NOWINDOW)
elseif video == 4 then
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id=VideoID&autoplay=1")
setskin(NOWINDOW)
elseif video == 5 then
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id=VideoID&autoplay=1")
setskin(NOWINDOW)
end
end
else
say("Dann eben nicht")
end
end
end
end



Quest tradotta e rifatta by DevilHunteR

quest t begin state start begin
function trailer1()
a = {"<Nome Trailer 1>", "<ID Trailer 1>"}
return a
end
function trailer2()
a = {"<Nome Trailer>", "<ID Trailer>"}
return a
end
function trailer3()
a = {"<Nome Trailer>", "<ID Trailer>"}
return a
end
when <ValueItem>.use begin
say_title("Trailer:")
say("Vuoi vedere il trailer del server?")
s = select("Si","No")
if s == 2 then
return
else
say_title("Trailer:")
say("Bene. Quale trailer vuoi vedere?")
trailers = select(t.trailer1()[1], t.trailer2()[1], t.trailer3()[1])
if trailers == 1 then
say_title("Trailer:")
say("Hai scelto il " .. t.trailer1()[1])
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id="..t.trailer1()[2].."&autoplay=1")
setskin(NOWINDOW)
elseif trailers == 2 then
say_title("Trailer:")
say("Hai scelto il " .. t.trailer2()[1])
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id="..t.trailer2()[2].."&autoplay=1")
setskin(NOWINDOW)
else
say_title("Trailer:")
say("Hai scelto il " .. t.trailer3()[1])
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id="..t.trailer3()[2].."&autoplay=1")
setskin(NOWINDOW)
end
end
end
end
end
 
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id=VideoID&autoplay=1") o.O ma sto comando fungerà veramente?
 
Sinceramente anche io non so se funziona questo comando... Comunque avevo tempo e ho fatto questo.
Codice:
quest t begin    
state start begin
        function trailer1()
            a = {"<Nome Trailer 1>", "<ID Trailer 1>"}
            return a
        end
        function trailer2()
            a = {"<Nome Trailer>", "<ID Trailer>"}
            return a
        end
        function trailer3()
            a = {"<Nome Trailer>", "<ID Trailer>"}
            return a
        end
        when <ValueItem>.use begin
            say_title("Trailer:")
            say("Vuoi vedere il trailer del server?")
            s = select("Si","No")
            if s == 2 then
                return
            else
                say_title("Trailer:")
                say("Bene. Quale trailer vuoi vedere?")
                trailers = select(t.trailer1()[1], t.trailer2()[1], t.trailer3()[1])
                if trailers == 1 then    
                    say_title("Trailer:")
                    say("Hai scelto il " .. t.trailer1()[1])
                    cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id="..t.trailer1()[2].."&autoplay=1")
                    setskin(NOWINDOW)
                elseif trailers == 2 then
                    say_title("Trailer:")
                    say("Hai scelto il " .. t.trailer2()[1])
                    cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id="..t.trailer2()[2].."&autoplay=1")
                    setskin(NOWINDOW)
                else
                    say_title("Trailer:")
                    say("Hai scelto il " .. t.trailer3()[1])
                    cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id="..t.trailer3()[2].."&autoplay=1")
                    setskin(NOWINDOW)
                end
            end
        end
    end
end
Modificate nomi ed id ed avete finito...
PS: Non testato.
 
Sinceramente anche io non so se funziona questo comando... Comunque avevo tempo e ho fatto questo.
Codice:
quest t begin    
state start begin
        function trailer1()
            a = {"<Nome Trailer 1>", "<ID Trailer 1>"}
            return a
        end
        function trailer2()
            a = {"<Nome Trailer>", "<ID Trailer>"}
            return a
        end
        function trailer3()
            a = {"<Nome Trailer>", "<ID Trailer>"}
            return a
        end
        when <ValueItem>.use begin
            say_title("Trailer:")
            say("Vuoi vedere il trailer del server?")
            s = select("Si","No")
            if s == 2 then
                return
            else
                say_title("Trailer:")
                say("Bene. Quale trailer vuoi vedere?")
                trailers = select(t.trailer1()[1], t.trailer2()[1], t.trailer3()[1])
                if trailers == 1 then    
                    say_title("Trailer:")
                    say("Hai scelto il " .. t.trailer1()[1])
                    cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id="..t.trailer1()[2].."&autoplay=1")
                    setskin(NOWINDOW)
                elseif trailers == 2 then
                    say_title("Trailer:")
                    say("Hai scelto il " .. t.trailer2()[1])
                    cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id="..t.trailer2()[2].."&autoplay=1")
                    setskin(NOWINDOW)
                else
                    say_title("Trailer:")
                    say("Hai scelto il " .. t.trailer3()[1])
                    cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id="..t.trailer3()[2].."&autoplay=1")
                    setskin(NOWINDOW)
                end
            end
        end
    end
end
Modificate nomi ed id ed avete finito...
PS: Non testato.
posso mettere in discussione principale?
 
Ehm... quando copiate siete pure capaci a sbagliare... una vergogna ._.''
Il comando showtrailer va inserito nel client ed apre una pagina web con il trailer che impostate nella quest.
Quindi per cui vi manca la parte del client. Dato che chi ha copiato la quest saprà anche dove trovare il resto, aspettatelo :D
 
Ehm... quando copiate siete pure capaci a sbagliare... una vergogna ._.''
Il comando showtrailer va inserito nel client ed apre una pagina web con il trailer che impostate nella quest.
Quindi per cui vi manca la parte del client. Dato che chi ha copiato la quest saprà anche dove trovare il resto, aspettatelo :D

se non l'ho messo vuoldire che non c'era, FORSE?
non mi diverto a copiare le cose a metà :oddio:
 
Ehm... quando copiate siete pure capaci a sbagliare... una vergogna ._.''
Il comando showtrailer va inserito nel client ed apre una pagina web con il trailer che impostate nella quest.
Quindi per cui vi manca la parte del client. Dato che chi ha copiato la quest saprà anche dove trovare il resto, aspettatelo :D
Ecco, infatti mi sembrava abbastanza strano che la funzione showtrailer esistesse (dato che nessun ufficiale la sfrutta).
 
usando il cerca si trova di tutto u.u

ecco la guida che si "fonda" a questa:

1- posto in tedesco:
Codice:
Moin,

 wollt ihr euren Trailer den Spielern mal ingame zeigen? Geht ganz einfach mit diesem MOD!

Screenshot:
[img]http://img3.imageshack.us/img3/788/0606232109.jpg[/IMG]




Einbauen:
 Als erstes packt ihr trailerwindow.py in euer uiscript-Archiv und uitrailer.py in euer root-Archiv. Die Dateien sind im Anhang und ihr dürft nicht vergessen, sie in die Repack-XML mit rein zu schreiben.

 Zum Zweiten öffnet ihr die Datei game.py aus dem root-Archiv.
 Sucht nach
Code:
"mall"			: self.__InGameShop_Show,
und setzt darunter eine neue Zeile mit folgendem Inhalt:
Code:
"showtrailer"			: self.Trailer_Show,
Zum Schluss scrollt ihr ganz ans Ende der Datei und definiert eine dazugehörige Funktion:
Code:
	def Trailer_Show(self, url):
		import uitrailer
		self.wndtrailer = uitrailer.WebWindow()
		self.wndtrailer.LoadWindow()
		self.wndtrailer.Hide()
		self.wndtrailer.Open(url)
Den Trailer könnt ihr nun wie folgt per Quest anzeigen lassen:
Code:
cmdchat("showtrailer http://www.youtube.com/swf/cps.swf?video_id=BtxYEv5QoSA&autoplay=1")
setskin(NOWINDOW)
Das Rote ist die Video-ID von Youtube, die ihr natürlich mit eurer ersetzen müsst. Man kann sie aus dem Link des Videos bekommen:
Code:
http://www.youtube.com/watch?v=VIDEO-ID
Wenn es bei euch nicht klappt, postet den Inhalt eurer syserr.txt, sonst kann euch keiner helfen.

 Gruß
 musicinstructor

Ecco la guida vera: (se è spam prego ai mod di editarmi il messaggio o di dirmelo :| e non passare subito al ban) [MOD]Ingame-Trailer
 
ho solo due cose da dire:
-posto la guida tradotta
-Il pc è impazzito, avevo si e no 7 processi (niente aperto) e avevo 40mb di ram libera -.-"
lol O.o comunque anche secondo me ci vuole la parte client... visto che non apre il browser ma una finestra del client come si vede nella seconda pagina. la quest secondo me centra poco sarebbe meglio inserire un tasto in game che ti apre il trailer lol
 
lol O.o comunque anche secondo me ci vuole la parte client... visto che non apre il browser ma una finestra del client come si vede nella seconda pagina. la quest secondo me centra poco sarebbe meglio inserire un tasto in game che ti apre il trailer lol
infatti ho postato la guida con i files e la quest e come moddare game.py ;)
 
Stato
Discussione chiusa ad ulteriori risposte.

DISCUSSIONI SIMILI

Indietro
Top Bottom