i from poland and I do not understand you very ;(;(i use translate
i must got script
Scripts
Lua Scripts/Questions/Help
i from poland and I do not understand you very ;(;(
i must got script
addhook("usebutton","use")
function use(id,x,y)
	if (x==X POSITION) and (y==Y POSITION) then
		if player(id,"usgn")==USGN PLAYER then
			parse("trigger DOOR NAME")
		end
	end
end
you must write only x and y position , usgn , and door name...
What is bad? I tried all. Please help me, that script is very important for me and my clan. addhook("usebutton","use")
function use(id,x,y)
	if (x==X POSITION) and (y==Y POSITION) then
		if player(id,"usgn")==USGN PLAYER then
			parse("trigger DOOR NAME")
		end
	end
end
you must write only x and y position , usgn , and door name...
What is bad? I tried all. Please help me, that script is very important for me and my clan.if sample==nil then sample={} end
sample.sur={}
function initArray(m)
	local array = {}
	for i = 1, m do
		array[i]=0
	end
	return array
end
agility=initArray(1000)
health=initArray(1000)
crafting=initArray(1000)
agility = 0
health = 0
crafting = 0
addhook("serveraction","actions")
addhook("menu", "menus")
function actions(id,sact)
	if(sact == 2) then
		menu(id, "Skills Menu, +1 ROFLPWN, +1 Agility, +1 Health, +1 Crafting")
	end
end
function menus(id, title, button)
	if (title=="Skills Menu") then
		if(button==1) then
		end
		if(button==2) then
			if (points[id]>=1) then
				agility[id]=agility[id]+1
				points[id]=points[id]-1
			else
			msg2(id,"You don't have enough Skill Points!")
			end
		end
		if(button==3) then
		end
		if(button==4) then
		end
	end
end
addhook("join","updatehud")
function updatehud(id)
	for id=1,32 do
		if player(id,"exists") then
			parse('hudtxt2 '..id..' 1 "©255255255Skills Points: '..points[id]..'" 17 210')
		end
	end
end
addhook("spawn","start")
function start(id)
	for id=1,32 do
		if player(id,"exists") then
			points[id]=points[id]+3
			updatehud(id)
		end
	end
end


effect ?addhook("trigger","npccreated")
addhook("objectkill","npckilled")
function npccreated(name)
	local ot
	if name=="bosscreate" then
		ot=object(0,"table")
		bossid=#ot
	end
end
function npckilled(id)
	if id==bossid then
		parse("trigger \"bosskilled\"")
	end
end
addhook("say","say_commands")
function say_commands(id,txt)
if(!kick==string.sub(txt,1,5))then
tt=tonumber(string.sub(txt,6,7))
parse("kick "tt)
end
end
end