Jump to content

Photo

Script Creation Help - Add Item Spell

add item script help spell creation

  • Please log in to reply
2 replies to this topic

#1
TheSKPwningest1992

TheSKPwningest1992

    Newbie

  • Members
  • Pip
  • 19 posts

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!



#2
Lanceor

Lanceor

    Revelationsmith

  • Premium Member
  • 2,495 posts
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:

#3
TheSKPwningest1992

TheSKPwningest1992

    Newbie

  • Members
  • Pip
  • 19 posts

Thank you. I semi figured it out, but this has definately clarified it for me.







Also tagged with one or more of these keywords: add, item, script, help, spell, creation

Page loaded in: 1.137 seconds