Jump to content

Can I make the lucky coin fortify my luck?


Recommended Posts

Hello everybody!

 

I'd like the lucky coin to do what its name implies by adding the player a fortify-luck spell throught a script.

 

What's wrong with this script?

BeginScript ScriptName

 

if ( GetItemCount, "lucky_coin"==1 )

player->addSpell "SpellID"

elseIf ( GetItemCount "lucky_coin" ==0 )

player->removeSpell "SpellID"

EndIf

 

EndScript ScriptName

Link to comment
Share on other sites

  • Recently Browsing   0 members

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