Full Version : Soulbound
xmlspawner >>Q&A >>Soulbound


<< Prev | Next >>

Vladimir- 08-24-2006
Heya

Is there any way I can add an attachment to an item, in order that the item can only be equiped by the player with the name in xmldata value or something?

ArteGordon- 08-24-2006
I can add an attachment that will allow you to restrict equipping an item based on an arbitrary conditional test.
So you could test for name, karma, fame, hits, combinations of them etc.

It would use the same syntax as other xmlspawner conditional tests where the equipping player would be considered the trigger mob. So, set the conditional test for

GETONTRIGMOB,name="blah"

to restrict it to players named "blah"

Vladimir- 08-24-2006
That would be awesome biggrin.gif thanks

Deathbringer- 08-24-2006
so that would make the looter have the item bound to just him?

Vladimir- 08-24-2006
Yup smile.gif

ArteGordon- 08-24-2006
yes, using the XmlRestrictEquip attachment
http://xmlspawner.15.forumer.com/index.php...st=0&#entry4398

and spawning an item on a triggered spawner like

longsword/name/{GETONTRIGMOB,name}'s sword/ATTACH/<xmlrestrictequip/test/@GETONTRIGMOB,name="{GETONTRIGMOB,name}>"

it will give the sword the players name, and assign a test that checks for that players name when equipping