
Oh well. These things happen.
function _collect(id, iid, type) 	msg("iid: "..(item(iid, "name") or "nope")) 	msg("type: "..(item(type, "name") or "nope")) end addhook("collect", "_collect")
iidand
type, the docs should be more clear on what is what.
ainand
a, these should be used to get the ammo count. Using
iidcan no longer be used (don't take my word for that).
msg("iid: "..(item(iid, "ammo") or "nope"))doesn't work then there must be a bug.
iidon
addhook("collect","c") function c(id,iid) 	msg(tostring(item(iid,"exsists"))) end addhook("drop","d") function d(id,iid) 	msg(tostring(item(iid,"exsists"))) end