ID:270679
Jul 23 2006, 12:44 pm
|
|
How i make a monster drop something when it dies?
|
In response to Crzylme
|
|
Crzylme wrote:
Pharaoh Atem wrote: I know, but this code dont works. proc //Some new procs |
In response to Pharaoh Atem
|
|
I think I know what you want. You want when a monster dies, you get an item? Well Cryzlme is right, a demo search would solve your problem. But the code isn't to hard.
usr.contents+=new/obj/whateveruwantsname
Put this at the monster's death proc. |
In response to DarkD3vil666
|
|
DarkD3vil666 wrote:
I think I know what you want. You want when a monster dies, you get an item? Well Cryzlme is right, a demo search would solve your problem. But the code isn't to hard.
usr.contents+=new/obj/whateveruwantsname
Put this at the monster's death proc.Man, i want it to appear on the ground |
In response to Pharaoh Atem
|
|
The most simple way is, create a 'droplist', add the objects to it a monster would drop, set a probability to it, then rbowse through the list on death and drop it if the probability wins.
|
Just create a new object in the spot where it died.
This would require the use of new and possibly other procs.
A quick demo search would also do nicely in finding something in this area.