Author Topic: Killing vampires  (Read 722 times)

Legacy_Psyammy

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Killing vampires
« on: July 23, 2010, 04:03:08 am »


               i hope someone can help me out with this, i need a script that will create an item in the inventorry of a placeable, i would like the item to be there everytime it is opened. what i am am doing is putting a corpes on the floor and i would like a stake in it's inventory that you will use to kill a vampire. (yeah, you guessed it i pinched the vampire from hords) but i would like the stake to be here everytime it is opened.
thank you all for the help.
Psyammy
               
               

               
            

Legacy_One Thousand Talons Mao Ra

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
Killing vampires
« Reply #1 on: July 23, 2010, 05:38:12 am »


               I don't know how the new boards work so this won't be in a fancy script box but...

void main()
{
CreateItemOnObject("resrefofwoodenstakegoeshere", OBJECT_SELF);
}

Put that on the OnOpen event of the corpse. Make sure the Has Inventory box is checked. Make the corpse plot, too.
               
               

               
            

Legacy_Psyammy

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Killing vampires
« Reply #2 on: July 23, 2010, 06:32:13 am »


               thank you very much, it works great!

Psyammy