well, to have an item, and give it, you would include something like this (we are assuming that this is non-P2P, and the weapon's name is "*****")
the files we are using is
*****.txt (shown below)
*****icon.gif (make one yourself)
NPC Code:
//*****.txt
if (!isweapon) {
if (playertouchsme) {
toweapons *****;
destroy;
}
}else{
if (playerchats && strequals(#c,Drop *****)) {
putnpc *****icon.gif,*****.txt,playerx+1.5-2/2+vecx(playerdir),playery+2-2/2+vecy(playerdir);
//Make a non-weapon duplicate of self on level
destroy; //Remove weapon
}
if (weaponfired) blahblahblah();
}
next time I will show you for P2P