Quote
ammoin: ammo currently loaded into the weapon
But I need this specific item id while all I seen was itemtype id which is useless here.
addhook("log","_log") parse("items") function _log(text) 	if string.sub(text,1,20)=="Tpl.weapon: #0, pl: " then 		a,b,c,d,e,f=string.match(text,"Tpl.weapon: #0, pl: (.*), typ: (.*) (.*), a: (.*)|(.*), m: (.*)") 		ammoin=tonumber(d) 		--msg("Ammoin "..ammoin.."") 		return 1 	end	 end