How i set 100.0 swordmanship on my npc?
ronin/ATTACH/xmldata,RestrictAttack,Kill Shinobi<----- here where i put the skill?
QUOTE (BiO_ZeRg @ May 15, 2006 08:37 pm) |
How i set 100.0 swordmanship on my npc? ronin/ATTACH/xmldata,RestrictAttack,Kill Shinobi<----- here where i put the skill? |
ronin/skills.swords.base/100/ATTACH/xmldata,RestrictAttack,Kill Shinobi
how i do a team quest? and when i say yes and the npc give me the book i can get another one example: Hi good morning you want a task ? yes and then i get the book and repeat the same the npc and the same i get again the book how i make just 1 i can get the book?
And when you finish a quest the npcs says thanks or something like that
QUOTE (BiO_ZeRg @ May 15, 2006 11:34 pm) |
how i do a team quest? and when i say yes and the npc give me the book i can get another one example: Hi good morning you want a task ? yes and then i get the book and repeat the same the npc and the same i get again the book how i make just 1 i can get the book? And when you finish a quest the npcs says thanks or something like that |
set the PartyEnabled flag to true on the quest
questholder/name/onlyone/objective1/KILL,balron/autoreward/true/rewardstring/ARMOR,4,5/repeatable/false/partyenabled/true
to prevent the spawner or xmldialog from being triggered again once you hand out the quest, set the NoTriggerOnCarried property to the name of the questholder.
You can also set the Condition field on your starting dialog to check for the questbook using something like
~GETONCARRIED,yourquestname,questholder,visible=true
To have an npc say something when you are finished, set up a dialog entry with whatever you want to say that has the Condition field like
GETONCARRIED,yourquestname,questholder,completed=true
I found 2 bugs i put 2 objective kill (npc) and give sword a (npc) but when the players make the objective 1 (kill npc) the book disapear (quest holder) and they dont get the rewards and cant finish the second objective
Bug 2
When i use ronin/ATTACH/xmldata,RestrictAttack,Kill Shinobi
The player use tamed bears and the npc dont atack the bear only the player and the bear kill all my npc quest

and that make me angry becuse they can finish easy the quest
QUOTE (BiO_ZeRg @ May 16, 2006 05:26 am) |
I found 2 bugs i put 2 objective kill (npc) and give sword a (npc) but when the players make the objective 1 (kill npc) the book disapear (quest holder) and they dont get the rewards and cant finish the second objective Bug 2
When i use ronin/ATTACH/xmldata,RestrictAttack,Kill Shinobi
The player use tamed bears and the npc dont atack the bear only the player and the bear kill all my npc quest and that make me angry becuse they can finish easy the quest |
to allow creatures to return the attacks of other creatures make this change in basecreature.cs
QUOTE |
if (a != null && target is PlayerMobile) { // if the target is carrying the named item then it can be attacked, otherwise it cant return (BaseXmlSpawner.SearchMobileForItem(target, a.Data, null, false) != null); }
|
I have also modified the original instructions for modifying basecreature.cs to add restricted attack capability so that controlled, summoned, and bard provoked creatures are also blocked by the RestrictAttack attachment. This should prevent all exploits of the type you described.
http://xmlspawner.15.forumer.com/index.php?showtopic=410
If you post your .npc file I can take a look at it to see why it isnt doing what you want.
the questholder that you give out only has one objective
GIVE/<questholder/name/Kill Shinobi/notestring/Shinobi debe morir. Buscalo y eliminalo/objective1/KILLNAMED,Shinobi,1/autoreward/true/rewardstring/@bag/ADD/gold,2000
which is the KILLNAMED,Shinobi,1
If you wanted to add more objectives to that questholder, you would set additional objective properties like
objective2/GIVENAMED,yourquestmob,yourquestitem/objective3/COLLECT,ginseng,20
but i put objective 2 GIVNAMED,TAKEDA SWORD sorry i forget save to file :S

how i put when they done the quest they get karma and fama Example: Takeda:THanks for give me my sword you deserve a Honor 1000 karma and 1000 fame
And to make it more realist when Shinobi say Atack all his guards and mercenary scream AAAAAHHHHH!!!
QUOTE (BiO_ZeRg @ May 16, 2006 03:05 pm) |
but i put objective 2 GIVNAMED,TAKEDA SWORD sorry i forget save to file :S how i put when they done the quest they get karma and fama Example: Takeda:THanks for give me my sword you deserve a Honor 1000 karma and 1000 fame
And to make it more realist when Shinobi say Atack all his guards and mercenary scream AAAAAHHHHH!!! |
In the Action field of an xmldialog entry or in a spawner entry you can do something like
SETONTRIGMOB/ATTACH/xmladdkarma,1000/ATTACH/xmladdfame,1000
(edit)
for an example of having Shinobi say something when he attacks and having his guards say something, look at the masterhelper.xml example in xmlextras. It basically does exactly that.
and
the screms for the npcs? when shinobi say atacks his guards screams (with words) Ahhhh
QUOTE |
SETONTRIGMOB/ATTACH/xmladdkarma,1000/ATTACH/xmladdfame,1000 |
The quote is for the player the finish the quest? becuse that is i want
but i need modify with [xmledit or in the spawn ??
QUOTE (BiO_ZeRg @ May 16, 2006 04:10 pm) |
but i need modify with [xmledit or in the spawn ?? |
you would set that up on the spawner for Shinobi and the guards. Do it just like masterhelper.xml, except have Shinobi as your boss, and your guards instead of orcs.
Example on karma and fame
GIVE/<questholder/name/Kill Shinobi/notestring/Shinobi debe morir. Buscalo y eliminalo/objective1/KILLNAMED,Shinobi,1/autoreward/true/rewardstring/@bag/ADD/gold,2000/SETONTRIGMOB/ATTACH/xmladdkarma,1000/ATTACH/xmladdfame,1000
And Shinobi i dont now

ronin/name/shinobi
i was using on the xmlspawner 1 option but the command in the option HELP doesnt work with the spawner or i dont do it correct way