Full Version : XMLQUEST 4 dummies
xmlspawner >>XMLSpawner - Tutorials >>XMLQUEST 4 dummies


<< Prev | Next >>

BiO_ZeRg- 05-14-2006
Hi am using the tutorial for dummies (quest)
And i have this problem
XMLQUESTNPC:Invalid ADD. No such
item: %lt or item: &lt
and another ting when i get the book and i kill bobo nothing happend why? some can explain me?

ArteGordon- 05-14-2006
QUOTE (BiO_ZeRg @ May 14, 2006 01:25 pm)
Hi am using the tutorial for dummies (quest)
And i have this problem
XMLQUESTNPC:Invalid ADD. No such
item: %lt or item: &lt
and another ting when i get the book and i kill bobo nothing happend why? some can explain me?

yeah, there is a typo in that tutorial. instead of '&lt;' you should substitute the '<' character.

so this
QUOTE

Action = GIVE/&lt;questholder/name/Kill Bobo/notestring/Bobo must go.  Find him and kill


should look like
QUOTE

Action = GIVE/<questholder/name/Kill Bobo/notestring/Bobo must go.  Find him and kill


Also, you need to have performed xmlspawner installation step 2 for the KILL task to be recognized.

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 3883 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);


BiO_ZeRg- 05-14-2006
user posted imageok i do like you put now i get the book but am with the same problem i kill bobo and nothings happend look

ArteGordon- 05-14-2006
QUOTE

Action = GIVE/<questholder/name/Kill Bobo/notestring/Bobo must go.  Find him and kill

this is only part of the Action string. You need to add the rest from the tutorial. I was just showing you the part that needed fixing.

To register the kill, you must go through installation step 2 as I mentioned earlier.

The Collect button is used for COLLECT quest objectives. You click the button and target the object to be collected.

BiO_ZeRg- 05-14-2006
can you explain a little more becuse am a dump sad.gif and new in this what i need to kill and killnamed works? and can you make a basic collect quest tutorial?

ArteGordon- 05-14-2006
QUOTE (BiO_ZeRg @ May 14, 2006 02:23 pm)
can you explain a little more becuse am a dump sad.gif and new in this what i need to kill and killnamed works? and can you make a basic collect quest tutorial?

You will need to make the modifications to the basecreature.cs script described in the installation instructions, and then restart your server in order to be able to make use of the KILL type quest objectives.

If you wanted to make it a collection type quest instead, just change the "KILLNAMED,Bobo,1" in the tutorial, to something like "COLLECT,ginseng,20"

where the syntax for the COLLECT type quest objectives is

COLLECT,type,[count][,proptest]

The player would then have to collect 20 ginseng to satisfy the objective.

BiO_ZeRg- 05-14-2006
thanks sounds easy

BiO_ZeRg- 05-14-2006
QUOTE
  Titles.AwardFame( ds.m_Mobile, totalFame, true );
              Titles.AwardKarma( ds.m_Mobile, totalKarma, true );
              // modification to support XmlQuest Killtasks
              XmlQuest.RegisterKill( this, ds.m_Mobile);

Like this i need modify?

ArteGordon- 05-14-2006
QUOTE (BiO_ZeRg @ May 14, 2006 02:59 pm)
QUOTE
  Titles.AwardFame( ds.m_Mobile, totalFame, true );
              Titles.AwardKarma( ds.m_Mobile, totalKarma, true );
              // modification to support XmlQuest Killtasks
              XmlQuest.RegisterKill( this, ds.m_Mobile);

Like this i need modify?

yes. That is what you need to add.

BiO_ZeRg- 05-14-2006
thanks a lot WORKS!!!! biggrin.gif xmlspawner/Checked2.gif

BiO_ZeRg- 05-15-2006
Another thing arte gordon i dont wanna get a book just the npcs give me the quest recolect a sword with [props and kill another npc and the npc (anita) looks always with the same clothes and when i get the sword i drop on (anita) and she give me the reward

ArteGordon- 05-15-2006
QUOTE (BiO_ZeRg @ May 15, 2006 12:55 pm)
Another thing arte gordon i dont wanna get a book just the npcs give me the quest recolect a sword with [props and kill another npc and the npc (anita) looks always with the same clothes and when i get the sword i drop on (anita) and she give me the reward

The books are required for quests. That is what holds the quest information.

If you want to have an objective that requires you to give a named item to anita, then use the GIVENAMED quest objective like

GIVENAMED,Anita,nameofyoursword

where the syntax for GIVENAMED is

GIVENAMED,mobname,itemname[,itemtype][,count][,proptest]

BiO_ZeRg- 05-15-2006
QUOTE (BiO_ZeRg @ May 15, 2006 05:55 pm)
How i put 1 sword with the name Anita Sword in the npc backpack and only in that npc, and when i use xml make anita always look with the same clothes i put for she i always spawn same

Can you explain me? or where i can find a guide for this plz arte gordon

ArteGordon- 05-15-2006
QUOTE (BiO_ZeRg @ May 15, 2006 01:49 pm)
QUOTE (BiO_ZeRg @ May 15, 2006 05:55 pm)
How i put 1 sword with the name Anita Sword in the npc backpack and only in that npc, and when i use xml make anita always look with the same clothes i put for she i always spawn same

Can you explain me? or where i can find a guide for this plz arte gordon

check out this thread for an example of dressing your npc

http://xmlspawner.15.forumer.com/index.php?showtopic=324

To spawn anything with a specific item in their backpack, use the ADD keyword like

xmlquestnpc/name/Anita/ADD/<longsword/name/Anita Sword>

by using the <> grouping characters, you tell it to set the name property on the longsword instead of the npc

BiO_ZeRg- 05-15-2006
1 more how i make the playes cant kill the npc(bobo) just the players are making the quest