Full Version : QuestNPC give problem
xmlspawner >>Q&A >>QuestNPC give problem
<< Prev | Next >>
Syntria- 06-03-2006
Me again!
My main Questgiver keeps dropping the quest description book at his feet rather than in the players backpack. I have the code set up like in the tutorial (but including the end &gt;) and he does everything I wanted him too except drop the book in the backpack. What would I be missing?
ArteGordon- 06-03-2006

QUOTE (Syntria @ June 03, 2006 06:03 pm)
Me again! My main Questgiver keeps dropping the quest description book at his feet rather than in the players backpack. I have the code set up like in the tutorial (but including the end &gt;) and he does everything I wanted him too except drop the book in the backpack. What would I be missing?

there are some typos in the tutorial description. If you read further down the thread you will see the fixes.
Basically it has to do with the use of the html &lt; and &gt; character escape sequence in normal strings. They should be replaced with the actual characters '<' and '>'.
Syntria- 06-03-2006
hmmm... I tried to change the &lt; to the < and when I refresh it it goes back to the &lt;........... and then drops it at the npc's feet.....
ArteGordon- 06-03-2006

QUOTE (Syntria @ June 03, 2006 06:19 pm)
hmmm... I tried to change the &lt; to the < and when I refresh it it goes back to the &lt;........... and then drops it at the npc's feet.....

where are you changing this?
Syntria- 06-03-2006
in the [xmledit menu under actions
ArteGordon- 06-03-2006

QUOTE (Syntria @ June 03, 2006 06:58 pm)
in the [xmledit menu under actions

are you opening up the book entry gump using the button at the right of the Action field and editing it in there?
Syntria- 06-03-2006
yes that's where. My entry is way longer than the single text line
ArteGordon- 06-03-2006
hmm. so you open the book, edit the text to replace &lt; with <, right click the book to close it. Then when you open the book again, the &lt; is back?
It sounds like you may have saved the original version with &lt; out to a .npc file, you make the changes in xmledit, but then respawn the npc with the old .npc file and so undo any changes you made with xmledit.
Try making the changes using xmledit, and then save them to the .npc file right away.
Syntria- 06-03-2006
Yes. as soon as I right click the book it shows back up as &lt; in the text line of the main menu......
I haven't actually saved the npc yet........ where else could I have made the changes at?
ArteGordon- 06-03-2006

QUOTE (Syntria @ June 03, 2006 07:28 pm)
Yes. as soon as I right click the book it shows back up as &lt; in the text line of the main menu...... I haven't actually saved the npc yet........ where else could I have made the changes at?

can you make any other edits to text using the book?
Syntria- 06-03-2006
It seems I can only add things at the very end of the phrase. I can't delete anything even at the end and I can't change anything in the middle. Could I have installed the book entry wrong?
ArteGordon- 06-03-2006

QUOTE (Syntria @ June 03, 2006 07:52 pm)
It seems I can only add things at the very end of the phrase. I can't delete anything even at the end and I can't change anything in the middle. Could I have installed the book entry wrong?

well, the only things that should affect the book entry are having made custom modifications to basebook.cs, or having performed installation step #3 which disables them.
Otherwise, it should work by default.
By any chance did you do this step?

QUOTE
STEP 3: (NOT recommended but allowed) In order to provide the book extended text entry interface, xmlspawner replaces the default packet handler for basebooks. While this does not affect the behavior of standard books in any way, if you DONT want this mod, comment out the following line at line 26 in PacketHandlerOverrides.cs
If you comment out this line then you will NOT be able to edit spawner entries using the book interface.
// Timer.DelayCall( TimeSpan.Zero, new TimerCallback( ContentChangeOverride ) );

Syntria- 06-03-2006
Nope. I figured the book made it easier for long entries so I kept it...
ArteGordon- 06-03-2006
what is your accesslevel when you are editing?
Syntria- 06-03-2006
Admin