RedBeard

Member
What is the proper syntax to spawn something only if a player has a specific item equipped.

I looked at tutorials and i cant figure it out.. Just looking for the proper syntax please don't direct me to a tutorial
 
Last edited:
I'm not sure what you are asking, do you want a spawner only to activate if a player has a certain item equipped or do you want something to spawn when a player equips the item?
 
You need to add a function in OnEquip function.
and also, need to add in OnRemoved.
thia is a simple way to solve your question.
 
that did come to mind. i was hoping to do it on the fly. xml spawner tutorials elude to this method but it doesnt work for me.
 
You don't need to use xmlspawner's function.
what you need to do is checking summoncreature.cs in spells/magery/fifth/
It will help you to finish your work.
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 155 Online
    • 273 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 106 Online
    • 190 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 80 Online
    • 137 Peak
  • Insane UO
    Endless Journey
    • Players
    • 73 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 25 Online
    • 85 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 19 Online
    • 48 Peak
  • Pandora
    Custom (Modern)
    • Players
    • 18 Online
    • 32 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 17 Online
    • 172 Peak
  • Arth
    Custom (Modern)
    • Players
    • 16 Online
    • 34 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 14 Online
    • 30 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back