Forum
CS2D Scripts Money from kill NPC?Money from kill NPC?
4 Antworten 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
2× editiert, zuletzt 30.12.12 14:50:23
1
2
1× editiert, zuletzt 30.12.12 14:35:56
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