CmDark has written
Isn't this more "real" ?
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
function rwep() 	math.random() 	local result = math.random(1,90) 	return result end rwep() --[[-- Use parse("equip "..id.." "..rwep()) --]]--
Isn't this more "real" ?
That would be epic fail because it might return 9 as the item type, and such weapon does not exist.
1
2
3
4
5
6
7
2
3
4
5
6
7
function rwep() 	local wp = math.random(1,90) 	while itemtype(wp,"name") == "" do 		wp = math.random(1,90) 	end 	return wp end
Edit:
@Deatherr: YOU have a script? Or is it the one that I posted before?
You could try fixing this thing by yourself.