Jump to content

Recommended Posts

Posted

Hi all,

 

As I'm still learning how to script I don't suppose someone would be able to help me with a script that will add a plethora of items and spells into the players inventory, and then remove the spell.

 

I've looked around the net and I can't find anything that's clear cut.

 

Any help is appreciated!

Posted

Create a magic effect script like the following:

 

Scriptname MySpellScript

BEGIN SCRIPTEFFECT START

Player.AddItem MyFirstItem 1		;Replace the "1" with however many items you want to add.
Player.AddItem MySecondItem 1
Player.AddItem MyThirdItem 1

Player.AddSpell MyFirstSpell
Player.AddSpell MySecondSpell
Player.AddSpell MyThirdSpell

Player.RemoveSpell MySpell

END
Save the script and then you can move onto part two. For the spell itslef, make sure it is casted on self and has a duration of at least 1 second. For the spell effect, choose Scripted Effect, and attach the above script. Voila! :smile:
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...