I want a code that can snowball at same place after throw.I can write lua script but this time is hard for me.
Plz help me.
Scripts
spawn snowball after throw
spawn snowball after throw
1

I want a code that can snowball at same place after throw.
addhook("hit","snow_attack")
function snow_attack(id,source,weapon)
	if weapon == 75 then
		parse("spawnitem 75 "..player(id,"tilex").." "..player(id,"tiley").."")
	end
end
addhook("attack","snow_attack")
function snow_attack(id)
parse("spawnitem 75 "..player(id,"tilex").." "..player(id,"tiley").."")
end
Suprise has writtenaddhook("hit","snow_attack")
function snow_attack(id,source,weapon)
	if weapon == 75 then
		parse("spawnitem 75 "..player(id,"tilex").." "..player(id,"tiley").."")
	end
end
addhook("attack","snow_attack")
function snow_attack(id)
parse("spawnitem 75 "..player(id,"tilex").." "..player(id,"tiley").."")
end

Anyways I don't think this is what he really wants.
Suprise has writtenaddhook("hit","snow_attack")
function snow_attack(id,source,weapon)
	if weapon == 75 then
		parse("spawnitem 75 "..player(id,"tilex").." "..player(id,"tiley").."")
	end
end
addhook("attack","snow_attack")
function snow_attack(id)
parse("spawnitem 75 "..player(id,"tilex").." "..player(id,"tiley").."")
end

knight- has written
Suprise has writtenaddhook("hit","snow_attack")
function snow_attack(id,source,weapon)
	if weapon == 75 then
		parse("spawnitem 75 "..player(id,"tilex").." "..player(id,"tiley").."")
	end
end
addhook("attack","snow_attack")
function snow_attack(id)
parse("spawnitem 75 "..player(id,"tilex").." "..player(id,"tiley").."")
end


addhook('projectile','projectile')
function projectile(id,weapon,x,y)
	local x = math.floor(x/32)
	local y = math.floor(y/32)
	if weapon == 75 then
		parse('spawnitem 75 '..x..' '..y)
	end
end
1
