Hi there,
i have 4 cores in ch1.
ch1_1, ch1_2, ch1_3 and ch1_4
I have one (and many more) npc in map 41 ch1_1 core.
I go to this NPC and i activate my drop_item quest. The quest works very fine in all the maps that are in ch1_1 core. (The same as NPC)
But if i log in other maps from diferente cores, for ex: ch1_3, i can't drops itens from the event.... Why??
When i do the command reload q, they dont "upload" in all cores? I realy dont andurstand why this quest only work in same core as i activated. Can any one help?
quest drop_item begin
state start begin
when 11004.chat."item Drop" with pc.is_gm() and pc.get_name() == "[XXXXX]XXXXX" begin
if game.get_event_flag("item_drop_event") == 0 then
say_title("Guarda da Cidade")
say("")
say("Olá "..pc.get_name().." ")
say("Deseja Iniciar o evento Item drop?")
say("")
local a = select ("Sim", "Não")
if a == 2 then
return
end
if a == 1 then
say("Por favor, indique o ID que será dropado.")
say("")
say_reward("30096 - Bolsa da Fortuna")
say_reward("71051 - Adicionar 6 e 7")
say_reward("50162 - Ovo Páscoa")
say_reward("50010 - Meia de Natál")
say_reward("50095 - Abóbora")
say_reward("53504 - Cofre Disfarçe")
say_reward("38055 - Caixa da Cria")
say_reward("30154 - Livro do Templo Secreto")
say_reward("38059 - Caixa do Chaegirab")
say_reward("27987 - Ostra")
say("")
drop_event_id = tonumber(input()) or 0
if drop_event_id == 0 then
say_title("Guarda da Cidade")
say("")
say("Evento Cancelado")
say_reward("erro: Falta ID do Drop")
say("")
return
end
say_title("Guarda da Cidade")
say("")
say("Escolher percentagem de drop")
say("")
say_reward("Mínimo: 0%")
say_reward("Máximo: 200 = 100%Drops")
say("")
say_reward("normal: 30 ou inferior")
say_reward("Quanto mais baixo, mais dificil!")
drop_event_pr = tonumber(input()) or 0
if drop_event_pr == 0 then
say_title("Guarda da Cidade")
say("")
say("Evento Cancelado")
say_reward("erro: Falta percentagem do Evento")
say("")
return
end
game.set_event_flag("item_drop_event", 1)
notice_all("XXXXX")
notice_all("XXXXXXXXXXXXXXX "..item_name(drop_event_id).." ")
end
else
say_title("Guarda da Cidade")
say("")
say("O Evento Drop Item esta a decorrer")
say("Parar evento?")
local a = select ("Sim", "Não")
if a == 2 then
return
end
if a == 1 then
game.set_event_flag("item_drop_event", 0)
notice_all("XXXXXXXXXX")
end
end
end
when kill with not npc.is_pc() and game.get_event_flag("item_drop_event") == 1 begin
local r = number(1, 201-drop_event_pr)
if r == 1 then
game.drop_item_with_ownership(drop_event_id, 1)
syschat("XXXXX "..item_name(drop_event_id).." XXXXXXXXXXXXXXX!")
end
end
when login with game.get_event_flag("item_drop_event") == 1 begin
syschat("Evento a decorrer. Para participares mata moobs e dropa: "..item_name(drop_event_id).." ")
end
end
end