Thread: Drop items
View Single Post
  #8  
Old 08-25-2002, 12:19 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
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
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote