1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
c=string.char(169)
function Array(a,b)
	local array = {}
	for i = 1, a do
		array[i]=b
	end
	return array
end
addhook("movetile","strip_all_weapons")
function strip_all_weapons(id,x,y)
	--[[msg(tostring(entity(x,y,"typename")))
	msg(tostring(entity(x,y,"type")))
	msg(tostring(entity(x,y,"name")))
	msg(tostring(entity(x,y,"trigger")))
	msg("--")]]
	if entity(x,y,"typename")=="Trigger_Move" and entity(x,y,"name")=="strip" then
		for _,iid in ipairs(playerweapons(id)) do
			parse("strip "..id.." "..iid)
		end
		msg2(id,c.."128255000Your weapons are all striped out automatically.")
	end
end
1
2
3
4
5
6
7
addhook("movetile","strip_all_weapons")
function strip_all_weapons(id,x,y)
	if entity(x,y,"typename")=="Trigger_Move" and entity(x,y,"name")=="strip" then
		parse('strip '.. id ..' 0')
		msg2(id,string.char(169).."128255000Your weapons are all striped out automatically.")
	end
end