Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Rekomendowane odpowiedzi

Opublikowano

Witam Poprawi ktoś wszystko działa tak jak powinno tylko ze na indexie 73 nie dropi tych itemów a na 71 tak.

 

Próbowałem 2x i nic ;/

 

1x

quest drop begin
	state start begin
		when kill with not npc.is_pc() and pc.get_map_index() == 71 begin
			local itemki = {
				[1] = {12249, 5},
				[2] = {12389, 5},				
				[3] = {12529, 5},
				[4] = {12669, 5},
				[5] = {14209, 5},
				[6] = {15209, 5},
				[7] = {16209, 5},
				[8] = {17209, 5},
				[9] = {13129, 5},
				[10] = {13109, 5},
				[11] = {13089, 5},
				[12] = {13069, 5},
			}
			local a=number(1, 6)
			local b=number(1, 100)
			if itemki[a][2] >= b then
				game.drop_item_with_ownership(itemki[a][1], 1)
			end
		end
		when kill with not npc.is_pc() and pc.get_map_index() == 73 begin
			local itemki = {
				[1] = {180, 1},
				[2] = {1130, 1},				
				[3] = {3160, 1},
				[4] = {2170, 1},
				[5] = {5129, 1},
				[6] = {190, 1},
				[7] = {11290, 1},
				[8] = {11490, 1},
				[9] = {11690, 1},
				[10] = {11890, 1},
				[11] = {27992, 1},
				[12] = {27993, 1},
				[13] = {27994, 1},
			}
			local a=number(1, 6)
			local b=number(1, 100)
			if itemki[a][2] >= b then
				game.drop_item_with_ownership(itemki[a][1], 1)
			end
		end
	end
end

2x

quest v2drop begin
	state start begin
		when kill with not npc.is_pc() and pc.get_map_index() == 71 begin
			local itemki = {
				[1] = {12249, 5},
				[2] = {12389, 5},				
				[3] = {12529, 5},
				[4] = {12669, 5},
				[5] = {14209, 5},
				[6] = {15209, 5},
				[7] = {16209, 5},
				[8] = {17209, 5},
				[9] = {13129, 5},
				[10] = {13109, 5},
				[11] = {13089, 5},
				[12] = {13069, 5},
			}
			local a=number(1, 6)
			local b=number(1, 100)
			if itemki[a][2] >= b then
				game.drop_item_with_ownership(itemki[a][1], 1)
			end
		end
	end
end

quest av2drop begin
	state start begin
		when kill with not npc.is_pc() and pc.get_map_index() == 73 begin
			local itemki = {
				[1] = {180, 1},
				[2] = {1130, 1},				
				[3] = {3160, 1},
				[4] = {2170, 1},
				[5] = {5129, 1},
				[6] = {190, 1},
				[7] = {11290, 1},
				[8] = {11490, 1},
				[9] = {11690, 1},
				[10] = {11890, 1},
				[11] = {27992, 1},
				[12] = {27993, 1},
				[13] = {27994, 1},
			}
			local a=number(1, 6)
			local b=number(1, 100)
			if itemki[a][2] >= b then
				game.drop_item_with_ownership(itemki[a][1], 1)
			end
		end
	end
end

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...