I made a simple skillchest quest but nothing happens when I try to open the chest.
I also added the quest to the quest_list.
Code:
quest fbtruhe begin
state start begin
when 50134.use begin
chat("Du hast " ..item_name(item.vnum).. " geöffnet.")
local b = {
50401, 50402, 50403, 50403, 50404, -- Körper Lehre
50416, 50417, 50418, 50419, 50420, -- Mental Lehre
50431, 50432, 50433, 50434, 50435, -- Nah Lehre
50446, 50447, 50448, 50449, 50550, -- Fern Lehre
50461, 50462, 50463, 50464, 50465, 50466, -- Waffen Lehre
50476, 50477, 50478, 50479, 50480, 50481, -- Magie Lehre
50491, 50492, 50493, 50494, 50495, 50496, -- Drachen Lehre
50506, 50507, 50508, 50509, 50510, 50511} -- Heil Lehre
local rb = number(1, table.getn(b))
pc.give_item2(b[rb], 1)
pc.remove_item(item.vnum)
end
end
end
Would be really nice if someone could help me!
Thank you