
08-25-2002, 12:19 PM
|
|
Registered User
|
 |
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
|
|
well theres another way...
|
I once added this to a weapon, but for ocnsistency you'd have to add it to all your wepaons;
(im just giving the algorithm here)
if the player wants to drop the weapon Green Goo
The player says 'drop green goo'
The weapon npc in the players inventory is triggered that
and then does the following:
putnpc image name of the weapon, file name of a text file that is exactly the same as the weapon (you have to have a text file on the server/in your folder that you keep up to date for all dorpable weapons) , player vecx/vecy vars so it plops in front of the player.
setplayerprop #c,;
destroy the weapon so it is out of the players inventory
and is there on the screen for that player, or another player, to pick up.
If you plan to do this online be sure you trust your staff.
putnpc was not the most secure command when i was Sanstrata owner. ANyone with file upload to your levels folder
could change that text file to hack and cheat
unless they made it more secure in the past few months.
But there is one way to do it .... have fun and good luck |
|
|
|