antiblock
diamwall
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
Sign in to follow this  
Apolo

Time Para Ser Expulso De 1 Mapa.

14 posts in this topic

Boas pessoal , estava à procura de alguém que me ajudasse a fazer isto :

 

 Ao entrar num Mapa por exemplo , Sala de Cristal ... aparece-se uma mensagem a dizer "tens 'x' tem para derrotares 'y' boss" e ao fim de 'x' limite de tempo todos os players que tivessem dentro desse mapa eram teleportados automaticamente para fora.

Share this post


Link to post
Share on other sites
antiblock
Rodnia | Alpha & Omega

 

 

quest dragao begin

state start begin

when login with pc.get_map_index() = X begin

timer("cidade", 1800)

notice_in_map("Tens 30 Minutos Para Matar o Dragão")

notice_in_map("Quando acabarem esses 30 Minutos, serás teleportado à cidade.")

end

when cidade.timer begin

warp_to_village()

end

end

end

??? :)

Share this post


Link to post
Share on other sites

Vou testar e já te digo alguma coisa , mas desde já obrigado :)

Share this post


Link to post
Share on other sites

Dá erro quando dou ./qc nela .

quest teste2 beginstate start beginwhen login with pc.get_map_index() = 79 begintimer("cidade", 1800)notice_in_map("Tens 30 Minutos Para Matar o Dragão")notice_in_map("Quando acabarem esses 30 Minutos, serás teleportado à cidade.")endwhen cidade.timer beginwarp_to_village()endend

Share this post


Link to post
Share on other sites

 

Dá erro quando dou ./qc nela .

quest teste2 beginstate start beginwhen login with pc.get_map_index() = 79 begintimer("cidade", 1800)notice_in_map("Tens 30 Minutos Para Matar o Dragão")notice_in_map("Quando acabarem esses 30 Minutos, serás teleportado à cidade.")endwhen cidade.timer beginwarp_to_village()endend

Falta-te ai um end

Share this post


Link to post
Share on other sites

Mesmo com o End , não deu ...

quest teste2 beginstate start beginwhen login with pc.get_map_index() = 79 begintimer("cidade", 1800)notice_in_map("Tens 30 Minutos Para Matar o Dragão")notice_in_map("Quando acabarem esses 30 Minutos, serás teleportado à cidade.")endwhen cidade.timer beginwarp_to_village()endendend

Share this post


Link to post
Share on other sites

depois do texto ke diz ke vai ser teleportador pra cidade, Axo ke tens de meterset_state("cidade"penso ke seja isso

Share this post


Link to post
Share on other sites
quest teste2 beginstate start beginwhen login with pc.get_map_index() = 79 begintimer("cidade", 1800)notice_in_map("Tens 30 Minutos Para Matar o Dragão")notice_in_map("Quando acabarem esses 30 Minutos, serás teleportado à cidade.")endwhen cidade.timer beginwarp_to_village()set_state("cidade")endendend

também não deu xd

Share this post


Link to post
Share on other sites

alguem pode ajudar a corrigir ?

Share this post


Link to post
Share on other sites

Nao sei muito de quests, mas creio eu que na parte:

 

timer("cidade", 1800)

No item "Cidade" deve ser as coordenadas do mapa.

Share this post


Link to post
Share on other sites

Vou tentar ja te digo algo 

Share this post


Link to post
Share on other sites
quest teste2 beginstate start beginwhen login with pc.get_map_index() == 73 begintimer("cidade", 1800)notice_in_map("Tens 30 Minutos Para Matar o Dragão")notice_in_map("Quando acabarem esses 30 Minutos, serás teleportado à cidade.")endwhen cidade.timer beginwarp_to_village()set_state("cidade")endendend

Resolução !

Share this post


Link to post
Share on other sites

mas esse set_state("cidade") n ta ai a fazer Nd, e além disso nem foi ai ke disse para colocaresbasicamente: podes apagar o set_state("cidade") ke n faz ai falta ;)

Share this post


Link to post
Share on other sites
Sign in to follow this