So, I've been trying to add an EXTREMELY ghetto Polypore staff to my server. So far, I've made it able to attack from a distance without using any ammo.

Problems I'm having right now is;

1. The attack is ranged based. How could I change it to magic based?

2. After I attack once, the staff disappears. How can I make it not disappear?