antiblock
https://arwen2.global/
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
rafaelxte2

Alterar funções da quest

Question

Olá boas galera.
Fiz uma missão, ela funcionou correto porem gostaria de adicionar mas Drop, ao invés de poder cair somente o item 70253, cair também  70254 e 70255 por exemplo.

 

quest drop_erva_vermelha begin
state start begin
 
when kill with not npc.is_pc() begin
local item_list = {
 
--mob_vnum, item_vnum, item_count, rate, min_level, max_level
{ 2031, 70253, 1, 2, 65, 80 },	-- Aranha Mortal
{ 2032, 70253, 1, 2, 65, 80 },	-- Aranha Venenosa Mortal
{ 2033, 70253, 1, 2, 65, 80 },	-- Aranha Vermelha Mortal
{ 2034, 70253, 1, 2, 65, 80 },	-- Aranha de Garra Mortal
{ 2035, 70253, 1, 2, 65, 80 },	-- Aranha Soldado Mortal
{ 2036, 70253, 1, 2, 65, 80 },	-- Aranha Soldado Agressiva
{ 2061, 70253, 1, 2, 65, 80 },	-- Aranha Alfa
{ 2062, 70253, 1, 2, 65, 80 },	-- Aranha Venenosa Alfa
{ 2063, 70253, 1, 2, 65, 80 },	-- Aranha Vermelha Alfa
{ 2064, 70253, 1, 2, 65, 80 },	-- Aranha de Garra Alfa
{ 2065, 70253, 1, 2, 65, 80 },	-- Aranha Soldado Alfa
{ 2131, 70253, 1, 2, 65, 80 },	-- Escorpião Guerreiro
{ 2132, 70253, 1, 2, 65, 80 },	-- Escorpião Atirador
{ 2133, 70253, 1, 2, 65, 80 },	-- Cobra Guerreira
{ 2134, 70253, 1, 2, 65, 80 },	-- Cobra Atiradora
{ 2401, 70253, 1, 3, 65, 99 },	-- Soldado Celeste
{ 2402, 70253, 1, 3, 65, 99 },	-- Arqueiro Celeste
{ 2403, 70253, 1, 3, 65, 99 },	-- Maga Celeste
{ 2404, 70253, 1, 3, 65, 99 },	-- Guardião Celeste
{ 2411, 70253, 1, 3, 65, 99 },	-- Soldado Celeste Elite
{ 2412, 70253, 1, 3, 65, 99 },	-- Arqueiro Celeste Elite
{ 2413, 70253, 1, 3, 65, 99 },	-- Maga Celeste Elite
{ 2414, 70253, 1, 3, 65, 99 },	-- Guardião Celeste Elite
{ 2431, 70253, 1, 3, 65, 99 },	-- Soldado Celeste
{ 2432, 70253, 1, 3, 65, 99 },	-- Arqueiro Celeste
{ 2433, 70253, 1, 3, 65, 99 },	-- Maga Celeste
{ 2434, 70253, 1, 3, 65, 99 },	-- Guardião Celeste
{ 2451, 70253, 1, 3, 65, 99 },	-- Soldado Celeste Elite
{ 2452, 70253, 1, 3, 65, 99 },	-- Arqueiro Celeste Elite
{ 2453, 70253, 1, 3, 65, 99 },	-- Maga Celeste Elite
{ 2454, 70253, 1, 3, 65, 99 },	-- Guardião Celeste Elite
{ 2491, 70253, 1, 3, 65, 99 },	-- General Celeste
{ 2492, 70253, 1, 3, 65, 99 },	-- General Celeste Elite
{ 2493, 70253, 1, 3, 65, 99 },	-- Dragão da Água
{ 2494, 70253, 1, 3, 65, 99 },	-- General Celeste
{ 7086, 70253, 1, 3, 65, 99 },	-- Tronco Fantasma
{ 7087, 70253, 1, 3, 65, 99 },	-- Dríade
{ 7088, 70253, 1, 3, 65, 99 },	-- Salgueiro Fantasma
{ 7089, 70253, 1, 3, 65, 99 },	-- Árvore Maligna
{ 7090, 70253, 1, 3, 65, 99 },	-- Tronco Fantasma
{ 7091, 70253, 1, 3, 65, 99 },	-- Dríade
{ 7092, 70253, 1, 3, 65, 99 },	-- Salgueiro Fantasma
{ 7093, 70253, 1, 3, 65, 99 },	-- Árvore Maligna
{ 7094, 70253, 1, 3, 65, 99 },	-- Tronco Fantasma
{ 7095, 70253, 1, 3, 65, 99 },	-- Dríade
{ 7096, 70253, 1, 3, 65, 99 },	-- Salgueiro Fantasma
{ 2301, 70253, 1, 3, 65, 99 },	-- Árvore Fantasma
{ 2302, 70253, 1, 3, 65, 99 },	-- Tronco Fantasma
{ 2303, 70253, 1, 3, 65, 99 },	-- Driade
{ 2304, 70253, 1, 3, 65, 99 },	-- Salgueiro Fantasma
{ 2305, 70253, 1, 3, 65, 99 },	-- Árvore Maligna
{ 2306, 70253, 1, 3, 65, 99 },	-- Árvore Maldita
{ 2307, 70253, 1, 3, 65, 99 },	-- Árvore Demoníaca
{ 2311, 70253, 1, 3, 65, 99 },	-- Árvore Fantasma Roxa
{ 2312, 70253, 1, 3, 65, 99 },	-- Tronco Fantasma Roxo
{ 2313, 70253, 1, 3, 65, 99 },	-- Driade Roxa
{ 2314, 70253, 1, 3, 65, 99 },	-- Salgueiro Fantasma Roxo
{ 2315, 70253, 1, 3, 65, 99 },	-- Árvore Maligna Roxa

}
 
for i = 1, table.getn(item_list), 1 do
local mobVnum, itemVnum, itemCount, getRate, minLevel, maxLevel = tonumber(item_list[i][1]), (item_list[i][2]), (item_list[i][3]), (item_list[i][4]), (item_list[i][5]), (item_list[i][6])
if npc.get_race() == mobVnum and pc.get_level() >= minLevel and pc.get_level() <= maxLevel and getRate >= number(0, 10000) / 100 then
pc.give_item2(itemVnum, itemCount)
end
end
end
end
end

 

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

Muito fácil adicionas uma linha assim, deve funcionar

 

--mob_vnum, item_vnum, item_count, rate, min_level, max_level
{ 2031, 70253, 1, 2, 65, 80 },	-- Aranha Mortal
{ 2031, 12345, 1, 2, 65, 80 },	-- Aranha Mortal

 

 

 


 

Share this post


Link to post
Share on other sites
antiblock
Rodnia | Alpha & Omega
  • 0
4 horas atrás, .รtгเкє disse:

Muito fácil adicionas uma linha assim, deve funcionar

 


--mob_vnum, item_vnum, item_count, rate, min_level, max_level
{ 2031, 70253, 1, 2, 65, 80 },	-- Aranha Mortal
{ 2031, 12345, 1, 2, 65, 80 },	-- Aranha Mortal

 

 

 



 

T_T vamos ver

Share this post


Link to post
Share on other sites

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