antiblock
Rodnia | Alpha & Omega
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
SINVAL o.O

Nova Função Para Desenvolver Quest.

1 post in this topic

Adiciona isso no questlib.lua :

function say_text_npc(npc,text_tab)
local text_wait = 12
local count
= 0
while table.getn(text_tab) &--#62; count do
say_title(npc..":")
say("")
while
text_wait &--#62; count do
count = count+1
say
(text_tab[count])
end
text_wait
= text_wait+12
say
("")
wait()
end
end

Exemplo de quest com essa função :

quest text_npc begin
state start begin
when 20001.chat
."text_npc" begin
local text_tab
=
{
"Olá "..pc.get_name(),
"Bom dia Cyber Gamers",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23",
"24..etc",
"25",
"26"
}
say_text_npc("Alchemist",text_tab)
end
end
end

Como podem ver cada dia que passa funções de quest estão se aprimorando mais eu pessoalmente achei essa nova função muito boa economiza ficar escrevendo"SAY"

Fonte EPVP

Postado por ProfessorEnte

Cumprimentos Sinval.

Share this post


Link to post
Share on other sites
antiblock
https://i.imgur.com/aJ17bf7.gif

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this