ach tut mir leid..machs so:
PHP Code:
quest Questitem_erstellung begin
state start begin
function list_item()
return {
[1] = 9299,
[2] = 9119,
[3] = 9499,
[4] = 9399,
[5] = 9599,
}
end
when 50025.use begin
say_title('Item Auswahl für GM´s')
local a = {}
table.foreach(Questitem_erstellung.list_item(),function(i,l) table.insert(a,i,item_name(l)) end )
table.insert(a, 'Nichts')
local ite = select_table(a)
if ite == table.getn(a) then return end
pc.give_item2(Questitem_erstellung.list_item()[ite], 1)
end
end
end