Is it possible to have a monster drop a book with text inside, only using an xml spawner? any hints on how to add it, any code examples would help.. Im self teaching pretty much, and learning by checking out what others have made.

/ADD,1.0/<????>
 
Wiginn- 05-02-2007
Well the question is simple. I wrote a book and I wish to add this book to xmlspawner, book and some props are no problem but the problem is content of this book.
Right now i have something like that:

...ADD/<tanbook/hue/2226/author/Singer/loottype/cursed/>

And I need to know how can I add content to that specific book, or maybe there is a posibility that xmlspawner can get this book from my backpack or bankbox.

ArteGordon- 05-02-2007
unfortunately there is no way of specifying content by assigning properties in the default book items.
It is possible to have a spawner take a preexisting book and ADD it to a mob or container. You would need to use the latest v3.22 that adds support for the ITEM keyword

QUOTE

- added the new 'ITEM,serial' keyword that you can use anywhere that you would normally be able to use loot keywords like TAKEN, or ARMOR to refer to arbitrary items by their serial number. (thanks to SteelCap for the suggestion)

So, for example, to take an existing item from a nearby container and drop it into a players bankbox you could do something like

SETONCARRIED,,bankbox,equippedonly/ADD/ITEM,{GETONNEARBY,1,,gold,true,serial}


then you could do things like drop a book into nearby container and have the spawner take it from that container and ADD it to something else.

SETONTRIGMOB/ADD/ITEM,{GETONNEARBY,1,,book,true,serial}
 
Back