Quote:
Originally Posted by ╠Parkwaydrive╣
PHP Code:
quest info begin
set state start
when VNUM.use begin
local a = select ("Information Allgemein","Drops","Devils Catacomb","Bruthöhle","Teamerliste","Abrechen")
if a == 1 then
say("Information Allgemein")
say("")
say("")
end
if a == 2 then
say("Drops")
say("")
say("")
end
if a == 3 then
say("Devils Catacomb")
say("")
say("")
end
if a == 4 then
say("Bruthöhle")
say("")
say("")
end
if a == 5 then
say("Teamerliste")
say("")
say("")
end
if a == 6 then
return
end
end
end
end
|
Das geht aber schöner :P
UNTESTED sollte aber funktionieren
PHP Code:
quest info_panel begin
state start begin
function panel()
say_title(string.format("Wie kann ich dir helfen %s", pc.get_name()))
local a = {"Allgemein", "Drops", "Devils Catacomb", "Bruthöhle", "Team-Liste", "Raus hier"}
local info = {
["Allgemein"] = {"Ehm ja Spendet sonst kein Server"},
["Drops"] = {"kp du dropst das bei dem und dem"},
["Devils Catacomb"] = {"Nice"},
["Bruthöhle"] = {"lol geh farmen"},
["Team-Liste"] = {"Bla unser Team besteht aus 22 Leute. [GM]Wasweißich"},
}
local c = select_table(a)
if c == table.getn(a) then return end
say_title(tostring(a[c]))
say2(tostring(info[a[c]][1]))
if select("zurück") == 1 then info_panel.panel() end
end
when 1337.use begin
info_panel.panel()
end
end
end