MFG
Klin
Scripts
Sammelthread/FAQ zu Lua & Editoraddhook ("say","sages")
function sages(id,txt)// function
if (txt=="!buy") then //Abfrage
menu (id,"buy,flare")//menu wird geöffnet
end
end
addhook ("menu","meno")//menu event
function meno(id,menoo,sel)
if (meno=="buy" and sel==1) then //Abfrage
parse ("equip "..id.." iid") //gibt das item
parse ("setmoney "..id.." "..(player(id,"money")-Preis)) //zieht das Geld ab
end
end
addhook ("say","sages")
function sages(id,txt)
if (txt=="!buy") then
menu (id,"buy,flare")
end
end
addhook ("menu","meno")
function meno(id,menoo,sel)
if (meno=="buy" and sel==1) then
parse ("equip "..id.." 54")
parse ("setmoney "..id.." "..(player(id,"money")-16000))
end
end
wie kann man mehr sachen ins menu einfügen ? menu (id,"buy,Eintrag1|Beschreibung1,Eintrag2|Beschreibung 2")
global time
addhook("minute","adv")
function adv()
	time = time +1
	if time = 10 then
		msg("Server by Nexos1000")
	end
end
global time
addhook("minute","adv")
function adv()
time = time +1
if time =[b]=[/b] 10 then //"=" vergessen
msg("Server by Nexos1000")
[b]time = 0[/b] //setz die var wieder auf null denn es soll sich ja wiederholen und nicht einmalig kommen.
end
end
-- Kommentar
global time
addhook("minute","adv")
function adv()
time = time +1
if time == 10 then --"=" vergessen
msg("Server by Nexos1000")
time = 0 --setz die var wieder auf null denn es soll sich ja wiederholen und nicht einmalig kommen.
end
end