De ce îmi arată așa
http://prntscr.com/gutepr atunci când intru de la npc?
function cube_open(vnum)
cube_results = {}
cube_needs = {}
-- Generator URL:
-- PASTE GENERATED DATA BELOW THIS --
cube_results[20383] = "18009,1/18019,1/18029,1/18039,1/18049,1/18059,1/18069,1/18079,1/18089,1"
cube_needs[20383] = "30509,50&30512,50@30266,50&30518,50@30265,50&30501,50@30269,50&30268,50@30507,50&30265,50@30267,50&30265,50@30267,50&30269,50@30266,50&30268,50@30266,50&30267,50"
-- GENERATED DATA END --
cmdchat("cube_npc_id "..vnum.."")
cmdchat("cs_result "..cube_results[vnum].."")
cmdchat("cs_need "..cube_needs[vnum].."")
command("cube open")
return
end
quest cube_opener_list begin
state start begin
when
20383.take or
20018.take or
20017.take or
20015.take
begin
command("cube open")
end
end
end