Cerere Quest

Închis
Avatar utilizator
demonboy12
Nivel 2

Nivel 2
Mesaje: 271
Membru din: 17 Mai 2014, 13:25
Aprecieri: 109  
Mulţumiri: 2  
Medalii

Salut Metinisti
Vreau sa modific eventul cufere cl si nu stiu cum...
Am urmatorul quest ce imi merge perfect
quest mondlicht_truhen begin
state start begin
when login begin
if game.get_event_flag("mondlicht_event") == 1 then
notice("Evenimentul : Cufãr Com Clar De Lunã ~ Activ !")
end
end
when kill begin
local m_ind = pc.get_map_index()
if npc.is_pc() then
else
if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 20 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(30169)
pc.give_item2(30170)
pc.give_item2(30171)
--game.drop_item(30169)
--game.drop_item(30170)
--game.drop_item(30171)
else
end
else
end
elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 40 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 65 or m_ind == 61 or m_ind == 104 and pc.get_level() <= 60 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 62 or m_ind == 71 or m_ind == 67 and pc.get_level() <= 70 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 68 or m_ind == 72 or m_ind == 73 or m_ind == 66 and pc.get_level() <= 90 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 103 or m_ind == 70 or m_imd == 69 and pc.get_level() <= 250 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
end
end
end
when 20092.chat."<GM> Eveniment cufere CL" with pc.is_gm() begin
if game.get_event_flag("mondlicht_event") == 1 then
say_title("Administrare Eveniment:")
say("")
say("Cufãr Com Clar De Lunã : ~ Activ ")
say("")
say_reward("Oprim Event CL?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("Evenimentul a luat sfârsit .")
say("~ Pe data viitoare !")
game.set_event_flag("mondlicht_event", 0)
char_log(0, "Mondlicht_event_end from" ..pc.get_name())
notice_all("Evenimentul : Cufãr Com Clar De Lunã ~ Terminat.")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
else
say_title("Administrare Eveniment:")
say("")
say("Cufãr Com Clar De Lunã : ~ Închis ")
say("")
say_reward("Start Eveniment?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("Evenimentul ~ A Început ! .")
say("~ Succes la strâns mai multe cufere !")
game.set_event_flag("mondlicht_event", 1)
char_log(0, "Mondlicht_event_start from" ..pc.get_name())
notice_all("Evenimentul : Cufãr Com Clar De Lunã ~ A Început !")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
end
end
when 20092.chat."<GM> Dropul Cuferelor CL" with pc.is_gm() begin
if pc.get_name() == "" or pc.get_name() == "" or pc.get_name() == "" then
say_title("Administrare Eveniment:")
say("")
say("Cat de mult sã fie dropul acestora ?")
say("")
say_reward("Între 1-100")
say("")
local new_chance = tonumber(input())
if new_chance < 0 or new_chance > 100 then
say_title("Administrare Eveniment:")
say("")
say("Introducere incorectã ~")
else
char_log(0, "Mondlicht_event_chance from" ..pc.get_name().. " to " ..new_chance.. "%")
game.set_event_flag("mond_drop_chance", new_chance)
say_title("Administrare Eveniment:")
say("")
say("Dropul actual " ..new_chance.. " setat.")
say("~ Pe curând !")
end
else
say_title("Administrare Eveniment:")
say("")
say_rosu("Dropul poate fi modificat doar de catre Teck .")
end
end
end
end
Ideea e ca vreau sa imi cada cate 3 cufere diferite in loc de un cufar cl ( cufar , aur . bronz , argint)
Vreau ca ele sa nu cada toate o data , gen sa omor un caine si sa imi dea cufar bronz , sa mai omor unul si sa imi dea cufar de aur , dupa modelul questului de mai sus cum fac sa imi cada cate un cufar / mob in functe de rata de drop.
Daca modific dupa model
pc.give_item2(item)
pc.give_item2(item)
pc.give_item2(item)
--game.drop_item(item)
--game.drop_item(item)
--game.drop_item(item)
Imi da toate cuferele in acelasi timp.
Multumesc.
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

demonboy12 scrie:Salut Metinisti
Vreau sa modific eventul cufere cl si nu stiu cum...
Am urmatorul quest ce imi merge perfect
quest mondlicht_truhen begin
state start begin
when login begin
if game.get_event_flag("mondlicht_event") == 1 then
notice("Evenimentul : Cufãr Com Clar De Lunã ~ Activ !")
end
end
when kill begin
local m_ind = pc.get_map_index()
if npc.is_pc() then
else
if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 20 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(30169)
pc.give_item2(30170)
pc.give_item2(30171)
--game.drop_item(30169)
--game.drop_item(30170)
--game.drop_item(30171)
else
end
else
end
elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 40 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 65 or m_ind == 61 or m_ind == 104 and pc.get_level() <= 60 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 62 or m_ind == 71 or m_ind == 67 and pc.get_level() <= 70 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 68 or m_ind == 72 or m_ind == 73 or m_ind == 66 and pc.get_level() <= 90 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 103 or m_ind == 70 or m_imd == 69 and pc.get_level() <= 250 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
end
end
end
when 20092.chat."<GM> Eveniment cufere CL" with pc.is_gm() begin
if game.get_event_flag("mondlicht_event") == 1 then
say_title("Administrare Eveniment:")
say("")
say("Cufãr Com Clar De Lunã : ~ Activ ")
say("")
say_reward("Oprim Event CL?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("Evenimentul a luat sfârsit .")
say("~ Pe data viitoare !")
game.set_event_flag("mondlicht_event", 0)
char_log(0, "Mondlicht_event_end from" ..pc.get_name())
notice_all("Evenimentul : Cufãr Com Clar De Lunã ~ Terminat.")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
else
say_title("Administrare Eveniment:")
say("")
say("Cufãr Com Clar De Lunã : ~ Închis ")
say("")
say_reward("Start Eveniment?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("Evenimentul ~ A Început ! .")
say("~ Succes la strâns mai multe cufere !")
game.set_event_flag("mondlicht_event", 1)
char_log(0, "Mondlicht_event_start from" ..pc.get_name())
notice_all("Evenimentul : Cufãr Com Clar De Lunã ~ A Început !")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
end
end
when 20092.chat."<GM> Dropul Cuferelor CL" with pc.is_gm() begin
if pc.get_name() == "" or pc.get_name() == "" or pc.get_name() == "" then
say_title("Administrare Eveniment:")
say("")
say("Cat de mult sã fie dropul acestora ?")
say("")
say_reward("Între 1-100")
say("")
local new_chance = tonumber(input())
if new_chance < 0 or new_chance > 100 then
say_title("Administrare Eveniment:")
say("")
say("Introducere incorectã ~")
else
char_log(0, "Mondlicht_event_chance from" ..pc.get_name().. " to " ..new_chance.. "%")
game.set_event_flag("mond_drop_chance", new_chance)
say_title("Administrare Eveniment:")
say("")
say("Dropul actual " ..new_chance.. " setat.")
say("~ Pe curând !")
end
else
say_title("Administrare Eveniment:")
say("")
say_rosu("Dropul poate fi modificat doar de catre Teck .")
end
end
end
end
Ideea e ca vreau sa imi cada cate 3 cufere diferite in loc de un cufar cl ( cufar , aur . bronz , argint)
Vreau ca ele sa nu cada toate o data , gen sa omor un caine si sa imi dea cufar bronz , sa mai omor unul si sa imi dea cufar de aur , dupa modelul questului de mai sus cum fac sa imi cada cate un cufar / mob in functe de rata de drop.
Daca modific dupa model
pc.give_item2(item)
pc.give_item2(item)
pc.give_item2(item)
--game.drop_item(item)
--game.drop_item(item)
--game.drop_item(item)
Imi da toate cuferele in acelasi timp.
Multumesc.

Poftim: Imagine
Pentru acest mesaj, [RaffaeL] for the post:
demonboy12
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
demonboy12
Nivel 2

Nivel 2
Mesaje: 271
Membru din: 17 Mai 2014, 13:25
Aprecieri: 109  
Mulţumiri: 2  
Medalii

[RaffaeL] scrie:
demonboy12 scrie:Salut Metinisti
Vreau sa modific eventul cufere cl si nu stiu cum...
Am urmatorul quest ce imi merge perfect
quest mondlicht_truhen begin
state start begin
when login begin
if game.get_event_flag("mondlicht_event") == 1 then
notice("Evenimentul : Cufãr Com Clar De Lunã ~ Activ !")
end
end
when kill begin
local m_ind = pc.get_map_index()
if npc.is_pc() then
else
if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 20 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(30169)
pc.give_item2(30170)
pc.give_item2(30171)
--game.drop_item(30169)
--game.drop_item(30170)
--game.drop_item(30171)
else
end
else
end
elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 40 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 65 or m_ind == 61 or m_ind == 104 and pc.get_level() <= 60 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 62 or m_ind == 71 or m_ind == 67 and pc.get_level() <= 70 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 68 or m_ind == 72 or m_ind == 73 or m_ind == 66 and pc.get_level() <= 90 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 103 or m_ind == 70 or m_imd == 69 and pc.get_level() <= 250 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
end
end
end
when 20092.chat."<GM> Eveniment cufere CL" with pc.is_gm() begin
if game.get_event_flag("mondlicht_event") == 1 then
say_title("Administrare Eveniment:")
say("")
say("Cufãr Com Clar De Lunã : ~ Activ ")
say("")
say_reward("Oprim Event CL?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("Evenimentul a luat sfârsit .")
say("~ Pe data viitoare !")
game.set_event_flag("mondlicht_event", 0)
char_log(0, "Mondlicht_event_end from" ..pc.get_name())
notice_all("Evenimentul : Cufãr Com Clar De Lunã ~ Terminat.")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
else
say_title("Administrare Eveniment:")
say("")
say("Cufãr Com Clar De Lunã : ~ Închis ")
say("")
say_reward("Start Eveniment?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("Evenimentul ~ A Început ! .")
say("~ Succes la strâns mai multe cufere !")
game.set_event_flag("mondlicht_event", 1)
char_log(0, "Mondlicht_event_start from" ..pc.get_name())
notice_all("Evenimentul : Cufãr Com Clar De Lunã ~ A Început !")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
end
end
when 20092.chat."<GM> Dropul Cuferelor CL" with pc.is_gm() begin
if pc.get_name() == "" or pc.get_name() == "" or pc.get_name() == "" then
say_title("Administrare Eveniment:")
say("")
say("Cat de mult sã fie dropul acestora ?")
say("")
say_reward("Între 1-100")
say("")
local new_chance = tonumber(input())
if new_chance < 0 or new_chance > 100 then
say_title("Administrare Eveniment:")
say("")
say("Introducere incorectã ~")
else
char_log(0, "Mondlicht_event_chance from" ..pc.get_name().. " to " ..new_chance.. "%")
game.set_event_flag("mond_drop_chance", new_chance)
say_title("Administrare Eveniment:")
say("")
say("Dropul actual " ..new_chance.. " setat.")
say("~ Pe curând !")
end
else
say_title("Administrare Eveniment:")
say("")
say_rosu("Dropul poate fi modificat doar de catre Teck .")
end
end
end
end
Ideea e ca vreau sa imi cada cate 3 cufere diferite in loc de un cufar cl ( cufar , aur . bronz , argint)
Vreau ca ele sa nu cada toate o data , gen sa omor un caine si sa imi dea cufar bronz , sa mai omor unul si sa imi dea cufar de aur , dupa modelul questului de mai sus cum fac sa imi cada cate un cufar / mob in functe de rata de drop.
Daca modific dupa model
pc.give_item2(item)
pc.give_item2(item)
pc.give_item2(item)
--game.drop_item(item)
--game.drop_item(item)
--game.drop_item(item)
Imi da toate cuferele in acelasi timp.
Multumesc.

Poftim: Imagine
Poti pune te rog un spoiler... daca doresti.
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

demonboy12 scrie:
[RaffaeL] scrie:
demonboy12 scrie:Salut Metinisti
Vreau sa modific eventul cufere cl si nu stiu cum...
Am urmatorul quest ce imi merge perfect
quest mondlicht_truhen begin
state start begin
when login begin
if game.get_event_flag("mondlicht_event") == 1 then
notice("Evenimentul : Cufãr Com Clar De Lunã ~ Activ !")
end
end
when kill begin
local m_ind = pc.get_map_index()
if npc.is_pc() then
else
if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 20 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(30169)
pc.give_item2(30170)
pc.give_item2(30171)
--game.drop_item(30169)
--game.drop_item(30170)
--game.drop_item(30171)
else
end
else
end
elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 40 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 65 or m_ind == 61 or m_ind == 104 and pc.get_level() <= 60 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 62 or m_ind == 71 or m_ind == 67 and pc.get_level() <= 70 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 68 or m_ind == 72 or m_ind == 73 or m_ind == 66 and pc.get_level() <= 90 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
elseif m_ind == 103 or m_ind == 70 or m_imd == 69 and pc.get_level() <= 250 then
if game.get_event_flag("mondlicht_event") == 1 then
local chance = number(1, 100)
local chance_max = game.get_event_flag("mond_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
--game.drop_item(50011)
else
end
else
end
end
end
end
when 20092.chat."<GM> Eveniment cufere CL" with pc.is_gm() begin
if game.get_event_flag("mondlicht_event") == 1 then
say_title("Administrare Eveniment:")
say("")
say("Cufãr Com Clar De Lunã : ~ Activ ")
say("")
say_reward("Oprim Event CL?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("Evenimentul a luat sfârsit .")
say("~ Pe data viitoare !")
game.set_event_flag("mondlicht_event", 0)
char_log(0, "Mondlicht_event_end from" ..pc.get_name())
notice_all("Evenimentul : Cufãr Com Clar De Lunã ~ Terminat.")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
else
say_title("Administrare Eveniment:")
say("")
say("Cufãr Com Clar De Lunã : ~ Închis ")
say("")
say_reward("Start Eveniment?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("Evenimentul ~ A Început ! .")
say("~ Succes la strâns mai multe cufere !")
game.set_event_flag("mondlicht_event", 1)
char_log(0, "Mondlicht_event_start from" ..pc.get_name())
notice_all("Evenimentul : Cufãr Com Clar De Lunã ~ A Început !")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
end
end
when 20092.chat."<GM> Dropul Cuferelor CL" with pc.is_gm() begin
if pc.get_name() == "" or pc.get_name() == "" or pc.get_name() == "" then
say_title("Administrare Eveniment:")
say("")
say("Cat de mult sã fie dropul acestora ?")
say("")
say_reward("Între 1-100")
say("")
local new_chance = tonumber(input())
if new_chance < 0 or new_chance > 100 then
say_title("Administrare Eveniment:")
say("")
say("Introducere incorectã ~")
else
char_log(0, "Mondlicht_event_chance from" ..pc.get_name().. " to " ..new_chance.. "%")
game.set_event_flag("mond_drop_chance", new_chance)
say_title("Administrare Eveniment:")
say("")
say("Dropul actual " ..new_chance.. " setat.")
say("~ Pe curând !")
end
else
say_title("Administrare Eveniment:")
say("")
say_rosu("Dropul poate fi modificat doar de catre Teck .")
end
end
end
end
Ideea e ca vreau sa imi cada cate 3 cufere diferite in loc de un cufar cl ( cufar , aur . bronz , argint)
Vreau ca ele sa nu cada toate o data , gen sa omor un caine si sa imi dea cufar bronz , sa mai omor unul si sa imi dea cufar de aur , dupa modelul questului de mai sus cum fac sa imi cada cate un cufar / mob in functe de rata de drop.
Daca modific dupa model
pc.give_item2(item)
pc.give_item2(item)
pc.give_item2(item)
--game.drop_item(item)
--game.drop_item(item)
--game.drop_item(item)
Imi da toate cuferele in acelasi timp.
Multumesc.

Poftim: Imagine
Poti pune te rog un spoiler... daca doresti.

Cod: Selectaţi tot

local random=number(1, 3)
local lista_drop ={
		{vnum_item, 1},
		{vnum_item, 1},
		{vnum_item, 1},
	}
		when kill begin 
			game.drop_item_with_ownership(lista_drop[random][1],lista_drop[random][2])
			
	sau
		pc.give_item2(lista_drop[random][1],lista_drop[random][2])
Pentru acest mesaj, [RaffaeL] for the post:
demonboy12
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
demonboy12
Nivel 2

Nivel 2
Mesaje: 271
Membru din: 17 Mai 2014, 13:25
Aprecieri: 109  
Mulţumiri: 2  
Medalii

Nu ii dau de cap...
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

demonboy12 scrie:Nu ii dau de cap...
Modifica asa in questul tau:

Cod: Selectaţi tot

when kill begin
local m_ind = pc.get_map_index()
	if npc.is_pc() then
	return
	else
	if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 20 then
	if game.get_event_flag("mondlicht_event") == 1 then
	local chance = number(1, 100)
	local chance_max = game.get_event_flag("mond_drop_chance")
	if chance <= chance_max then
	local random=number(1, 3)
	local lista_drop ={
		{30169, 1},
		{30170, 1},
		{30171, 1},
	}
	pc.give_item2(lista_drop[random][1],lista_drop[random][2])
Pentru acest mesaj, [RaffaeL] for the post:
demonboy12
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
demonboy12
Nivel 2

Nivel 2
Mesaje: 271
Membru din: 17 Mai 2014, 13:25
Aprecieri: 109  
Mulţumiri: 2  
Medalii

MS
T/C
Avatar utilizator
[Brahma]
Veteran

Veteran
Mesaje: 1526
Membru din: 16 Mai 2017, 22:18
Aprecieri: 0
Mulţumiri: 2309  
Medalii

Rezolvat!
Imagine
Afișează semnătura
Închis

Înapoi la “Cereri Rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 12 vizitatori