Full Version : what is wrong with this?
xmlspawner >>Q&A >>what is wrong with this?


<< Prev | Next >>

Erucid- 08-03-2006
CODE
GIVE/<questholder/NAME/Kill da wabbit/notestring/it is wabbit season, the wabbit must die!/objective1/KILLNAMED,wabbit,1/autoreward/TRUE/rewardstring/@bag/ADD/Gold,5/>


this is my first xmlquest for run2.0 so maybe something has changed, but I just can't figure out why this don't work. The book appears in the pack, and the quest gump looks proper. But killing the wabbit doesn't complete the quest. It's like it constructs but dont work. I'm using v313.

Thanks

ArteGordon- 08-03-2006
it sounds like you didnt perform xmlspawner installation step #2 which is what allows creature kills to be registered by the quest system.

from installation 2.0.txt
QUOTE

STEP 2: (recommended but not required)
To take advantage of the XmlQuestToken killtask keywords KILL and KILLNAMED, one line must be added to the OnDeath method in BaseCreature.cs as described below (note, you dont have to make this mod if you dont want to, the spawner and other items will work just fine without it, the KILL and KILLNAMED features simply wont do anything)

around line 4172 of basecreature.cs change

Titles.AwardKarma( ds.m_Mobile, totalKarma, true );

to

Titles.AwardKarma( ds.m_Mobile, totalKarma, true );
// modification to support XmlQuest Killtasks
XmlQuest.RegisterKill( this, ds.m_Mobile);

Erucid- 08-03-2006
Duh, apparently I forgot to do all the installation steps when upgrading to Run2.0. I did it once for 1.0 so that should be good enough, right? =}

ArteGordon- 08-03-2006
yes, just go through the installation steps again for 2.0 and you will be fine.