Discussione Un piccolo problema con una quest ç_ç

Stato
Discussione chiusa ad ulteriori risposte.

.Nexus.

Utente Electrum
21 Ottobre 2011
269
26
96
148
Allora avrei bisogno di un piccolo aiuto per una quest [o quasi]. . .

In prattica dopo aver killato "un certo mob", dopo 60 secondi ti teleporta al villo 1 >_< :rockomg:


Qualche aiutino? :P
 
Se non ci fai vedere la quest come facciamo a capire dov'è il problema? :)

Ah forse non mi sono spiegato ù.ù

A me serve proprio una quest con che fa eseguire questo comando. . .Per un dungeon e facilissimo<.< ma il "mob in questione" non centra con i dungeon
.

Io sono riuscito a farlo. . . Solo che non riesco a mettere il tempo del teleporter ._.

quest drago begin
state start begin
when 2493.kill begin
local count = pc.getqf("count") + 1
if count < 2 then
pc.setqf("count", count)
chat("Hai massacrato "..count..". drago su 2!")
else
pc.delqf("count")
chat("Verrai teleportato!")
pc.warp_local(x, y)
end
end
end
end
 
Io te l'avrei risolta così..

Poi vedi tu ;P

Codice:
quest drago begin
	state start begin
		when 2493.kill begin
			local count = pc.getqf("count") + 1
			if count < 2 then
				pc.setqf("count", count)
				chat("Hai massacrato "..count..". drago su 2!")
			else
				pc.delqf("count")
				chat("Verrai teleportato tra 60 secondi!")
				timer("tornavillo",60)
			end
		end
		
		when tornavillo.timer begin
			pc.warp(x , y) --se vuoi che tutti vadano in un posto in particolare, altrimenti segui il passaggio sotto
			-- se vuoi che vadano ognuno al suo villo
			local regno = pc.get_empire()
			if regno == 1 then 
				--torna dai rossi
			elseif regno == 2 then
				--torna dai gialli
			elseif regno == 3 then
				--torna dai blu <.<
			end
		end
	end
end
 
Ultima modifica:
Domanda:
Codice:
[...][LEFT][COLOR=#333333]local count = pc.getqf("count") + 1
[...]
[/COLOR]pc.setqf("count", count)
[COLOR=#333333]chat("Hai massacrato "..count..". drago su 2!")
[...][/COLOR][/LEFT]


Sbaglio o restituisce un drago in più di quelli che realmente sono stati uccisi?! :)

P.S. Solo 2 minuti e ti correggo quella di Chz89. :D

P.S.2
Codice:
[COLOR=#000000]quest drago begin
    state start begin
        when 2493.kill begin
            local count = pc.getqf("count") + 1
            if count < 2 then
                chat("Hai massacrato "..count..". drago su 2!")
                pc.setqf("count", count)
            else
                pc.delqf("count")
                chat("Verrai teleportato tra 60 secondi!")
                timer("tornavillo",60)
            end
        end
        
        when tornavillo.timer begin
            pc.warp(x , y) --se vuoi che tutti vadano in un posto in particolare, altrimenti segui il passaggio sotto
            -- se vuoi che vadano ognuno al suo villo
            local regno = pc.get_empire()
            if regno == 1 then 
                --torna dai rossi
            elseif regno == 2 then
                --torna dai gialli
            elseif regno == 3 then
                --torna dai blu <.<
            end
        end
    end
end[/COLOR]
A me quella di Chz89 la compila senza errori... Riprova. Ho corretto l'errore che ti segnava un Drago in più. :)
 
Stato
Discussione chiusa ad ulteriori risposte.
Indietro
Top Bottom