En fait je n'ai as bien saisis, comment est-ce que je peux faire pour placer ça avec le kill vu qu'il y a le count ?
when login with pc.get_map_index()>=2600000 and pc.get_map_index()<2700000 begin
if game.get_event_flag("metin") == 0 and game.get_event_flag("nombre") == 0 then
game.set_event_flag("metin", 1)
game.set_event_flag("nombre", 1)
d.spawn_mob(8038, 235, 507, 1)
d.spawn_mob(8039, 165, 349, 1)
d.spawn_mob(8040, 276, 187, 1)
end
end
when kill with pc.get_map_index()>=2600000 and pc.get_map_index()<2700000 and pc.in_dungeon() begin
if npc.get_race() == 8038 or
npc.get_race() == 8039 or
npc.get_race() == 8040 then
d.setf("metin_count", d.getf("metin_count") + 1)
if d.getf("metin_count") == 1 then
d.notice("Il vous reste 2 metins à détruire.")
end
if d.getf("metin_count") == 2 then
d.notice("Il vous reste 1 metin à détruire.")
end
if d.getf("metin_count") == 3 then
timer("naga_jump_2", 15)
d.notice("Toutes les pierres Metins ont étés réduites en cendres,")
d.notice("vous allez être téléporté.")
end
end
end