View Single Post
  #4  
Old 02-25-2002, 03:40 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Faheria_GP2
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
I think you should have done a better example =D
Reply With Quote