Forum
CS2D Scripts Money from kill NPC?Money from kill NPC?
4 replies 1
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("objectkill","moneynpc") function moneynpc(oid) 	if object(oid,"type") == 30 then 		local a = math.random(1,10) 		for i = 1, a do 			parse("spawnitem 67 "..object(oid,"tilex").." "..object(oid,"tiley")) 		end 	end end
edited 2×, last 30.12.12 02:50:23 pm
1
2
edited 1×, last 30.12.12 02:35:56 pm
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("objectkill","k") function k(id) if object(id,"type") == 30 then local z = math.random(-1,3) for i = 1, z do parse("spawnitem 66 "..object(id,"tilex").." "..object(id,"tiley")) end end end
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("objectkill","k") function k(id) if object(id,"type") == 30 then local z = math.random(-1,3) for i = 1, z do parse("spawnitem 66 "..object(id,"tilex").." "..object(id,"tiley")) end end end
1