Full Version : spawning books
xmlspawner >>Q&A >>spawning books


<< Prev | Next >>

ambak- 01-25-2006
hi there everybody i have the osi books
i want these books to spawn in all libraries in game
how can i do that?

ArteGordon- 01-25-2006
add the books to spawner, then add the spawner to the bookshelf

If you use [xmladd, you can do this very easily.

Add the book entries, configure the settings, then just press the Add button and target the bookshelf container.

godfood- 01-25-2006
*Moved to a more appropriate spot*

Please take the time to post in the right place. I have taken the time to add a section for most type's of post's. If you feel there isn't an appropriate place for your post, you can PM me asking me to add a section that is appropriate.

GodFood

ambak- 01-26-2006
how will i add them with [xmladd
every book is a script.

godfood- 01-26-2006
what would you type to add the book in game.

[add OSIBook1? Something like that?

ambak- 01-26-2006
here you can find the osi books,i am sharing them with you smile.gif
books.rar

but please help me to spawn them in libraries smile.gif

ArteGordon- 01-26-2006
your link doesnt work. Just add it as an attachment to your post.

If OSIBook1 is the class name for the item and it is constructable, and the constructor doesnt require any arguments, then

[add OSIBook1

would work.

and you could use

OSIBook1

as the spawn entry in the spawner.

ambak- 01-26-2006
its not one file sad.gif
i am going to add them to forum but i didnt see the attach option

ambak- 01-26-2006
ok i think i got it.
the scripts start always like this
namespace Server.Items
{
public class BeltranGuideBook : BrownBook
{
[Constructable]
public BeltranGuideBook() : base( "Beltran's guide to guilds", "Beltran ", 15, false ) // true writable so players can make notes

than i have to do

[xmladd BeltranGuideBook
and target the bookshelf am i right?
but i want it automaticly to spawn all the books in all the libraries and when a person take a book from the shelf that it has to be respawn

ArteGordon- 01-26-2006
1) start up xmladd with the "[xmladd" command

2) Open the spawn entries panel by pressing the arrow button in the lower right corner of the gump.

3) Enter BeltranGuideBook into one of the entries. If you have more books, you can enter those as well.

4) Check the box next to any of the entries that you want to be included in the spawner that you are going to Add.

4) Assign the min/maxdelay and any other settings to whatever default you want.

5) Press the Add button in the lower left corner of the gump and target the bookshelf.
That will add a spawner to the container with the settings and entries that you have selected.

6) Go to the next bookshelf, press the Add button, and target it. Just keep repeating this step for all bookshelves that you want to populate with books.

You are going to have to do this manually for each bookshelf. There is no automatic way to have this done for you, since no one except you knows which bookshelves you want to put the books on.
The books will respawn after people take them, just like any other spawn.

ambak- 01-26-2006
ok thanks arte smile.gif
if anyone wants this guided osi books i can share them smile.gif

ArteGordon- 01-26-2006
sure. Feel free to post them in the Files section.