Full Version : Quest Top Players
xmlspawner >>Q&A >>Quest Top Players


<< Prev | Next >>

Elassar- 03-16-2006
Hi, sorry for my bad english but i have a little question for you smile.gif
There's a way to reset the "Top Players" rankings?
Thats a very short question tongue.gif tongue.gif tongue.gif!

ArteGordon- 03-17-2006
the rankings are calculated based on the quest points value that is kept on the XmlQuestPoints attachment on each player. To refer to attachment properties you can use the ATTACHMENT keyword with the xmlset command.

QUOTE

- the SET series of keywords (this includes SET, SETONMOB, SETONTRIGMOB, SETONCARRIED, SETONSPAWN) now supports assigning properties on attachments.  Whereever a property would normally be specified for those keywords, the new property keyword ATTACHMENT,type,name,property can be used.  For example, to set the value property to 34 on an xmlvalue attachment with the name XS on a triggering mob you would specify "SETONTRIGMOB/ATTACHMENT,xmlvalue,XS,value/34" (See attachtest3.xml for examples).
The attachment properties can basically be treated as extensions of the target object's properties.



So you can set the points back to zero on all players with a command like


[global xmlset ATTACHMENT,xmlquestpoints,,points 0 where playermobile

Elassar- 03-17-2006
Thank you xmlspawner/ok.bmp
biggrin.gif

Elassar- 03-25-2006
...and to erase all the "Top Players" and "Quest Log" attachments?
(im talking about the quests completed counter,credits ecc. ecc.)

Especially how to remove from the list a "not repeatable quest" to do it again?

ArteGordon- 03-26-2006
the information about quest repeatability is maintained on xmlquestattachments. To remove them and allow quests to be repeated again use

[global delatt xmlquestattachment where playermobile

to remove all of the xmlquestpoints attachments that maintain information about quest points and credits

[global delatt xmlquestpoints where playermobile

from xmlspawner2.txt

QUOTE

- added support for the use of modifiers like global, multi, area, etc. with the addatt and delatt commands that add and delete attachments from objects (thanks to Vento Divino for the suggestion).  So to add a particular attachment to all players you could do something like

[global addatt xmldata datavalue where playermobile

and to remove those attachments you could use

[global delatt xmldata where playermobile


You could also use [xmlfind to do this. Just enter in the attachment type in the 'attachment type' field and do a search. Then select the attachments you want to remove and hit the 'Delete' button.