View Single Post
  #5  
Old 05-25-2004, 08:16 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Yes, if you want it for a non-NPCW (non-weapon) then have it something like:

NPC Code:
if (created) setshape 1,1,1;
if (actionblah) {
putnpc2 x,y,{script;};
}
//#CLIENTSIDE
if (playertouchsme) triggeraction x,y,blah,param0,param1,param2,ect...;


That is just an example though ;
You can tweak it how you want (for the script part I suggest just having the script a one line command called "join classname;" and then put your script of the npc you drop into a class called "classname")

[EDIT]
Quote:
Originally Posted by Salaisuus
Also should the npc txt. file be saved to levels/scripts or am I a complete idiot?
The scripts folder is just the folder where classes are stored and should only be used for BACKUP perposes (sp?).
IF putnpc where to be used (which it shouldn't be) you would save it in a folder with the levels folder (or levels it self) and then put into the folder options: "file *.txt"
Or if it was in a sub folder in levels: "file subfoldername/*.txt"
Notice you DON'T include the levels/ part as everything in folder ops automaticly includes that for you
[/EDIT]
__________________
Do it with a DON!
Reply With Quote