Can i know if its possible to write a profile when start it it will go to the NPC and buy the items and amount which i need?if so,can anyone help me please?
Like i want to buy 10 Woolen Smock from the NPC named Independent Merchant in Mor Dhona. how can i do it?
This: Code: <BuyItem ItemId="3187" ItemCount="10" DialogOption="3" NpcId="1006952" XYZ="16.55597, 28.99997, -727.5654" />
Yeah that code is working,but i want to change it to : <?xml version="1.0" encoding="utf-8"?> <Profile> <Name>Archer - Buy items</Name> <!-- buying cloths --> <Order> <While Condition="not HasAtLeast(3187,3)"> <LogMessage Message="buying cloth" /> <BuyItem ItemId="3187" ItemCount="2" DialogOption="3" NpcId="1006952" XYZ="16.55597, 28.99997, -727.5654" /> </While> <If Condition="HasAtLeast(3187,3)"> <LogMessage Message="ebd!. 3 cloths found in your inventory." /> </If> </Order> </Profile> i tired to delete ItemCount="2" ,but seems its not work,can you help me please?
i changed it to 1 but seems still not work,logs: [04:21:05.495 N] Loaded profile Archer - Buy items [04:21:05.496 N] Bot Thread Started. [04:21:05.557 N] [Ultima] Loading: Goldsmith [04:21:07.120 N] Connection to 192.99.148.87:31214 established. [04:21:07.257 N] Clearing all hooks. [04:21:07.258 D] Replaced hook [PreCombatBuff] 8c651c1e-c18f-44be-8616-fd8fdf694a97 [04:21:07.258 D] Replaced hook [Heal] 22148284-b50e-4b02-bb88-0cc98d774742 [04:21:07.258 D] Replaced hook [Pull] 520a5396-6724-45fb-a0ef-e6e04f145cb4 [04:21:07.258 D] Replaced hook [CombatBuff] 70e65ee8-42c3-42ba-b953-67c627fa6773 [04:21:07.258 D] Replaced hook [Combat] 4c749ae2-1255-4032-8480-3e047ccd87d7 [04:21:07.258 D] Replaced hook [Rest] acdd26bd-87fa-4bfa-8c68-53ec8cb3e5f0 [04:21:07.278 D] Added new hook [RoutineCombat] f0687a07-9ca5-4c3b-ad5b-a191c37dc5ce [04:21:07.280 D] Added new hook [HotspotPoi] e42eaeca-fad3-4d21-900e-a7822f56558a [04:21:07.281 D] Added new hook [SetDeathPoi] 6f3eefc2-f7e2-4434-b7fa-2bb2e4e1465c [04:21:07.281 D] Added new hook [SetCombatPoi] 04e8238a-5fd2-44fd-b07b-bf9c4b303460 [04:21:07.281 D] Added new hook [SetHotspotPoi] 46d77cce-6687-46ec-8f45-d00baa699b59 [04:21:07.281 D] Added new hook [SelectPoiType] 7d93c443-bd13-45fa-a195-60785317eb87 [04:21:07.282 D] Replaced hook [SelectPoiType] 5628e494-5e19-4091-bb45-5afdfe373816 [04:21:07.283 D] Inserted new hook [TreeStart @0] b91be9ec-871c-4f00-b399-6cf3dce43758 [04:21:07.644 V] [Poi.Clear] Reason: Current behavior changed to LogMessageTag: LineNumber: 11, IsDone: False, Message: ebd!. 3 cloths found in your inventory., HighPriority: False, InCombat: False, QuestId: 0, StepId: 0, PostCombatDelay: 0, QuestName: null, IsDoneCache: False, Behavior: TreeSharp.PrioritySelector, . [04:21:07.644 D] Removed all hooks from [HighPriorityProfileOrderBehavior_Hook] [04:21:07.644 D] Replaced hook [ProfileOrderBehavior_Hook] 6a1396fd-f170-485b-9df8-bfc5596cf084 [04:21:07.688 N] ebd!. 3 cloths found in your inventory. [04:21:07.784 N] Profile completed [04:21:07.785 N] Stopping the bot. Reasonrofile Completed [04:21:07.785 N] ebd!. 3 cloths found in your inventory. [04:21:07.785 D] CurrentBot.Stop() [04:21:07.791 N] Connection closed! 192.99.148.87:31214 [04:21:07.793 D] TreeHooks.Instance.ClearAll() [04:21:07.793 N] Clearing all hooks. [04:21:07.793 D] Replaced hook [PreCombatBuff] 6e29a92e-e2d3-4876-8a17-c7ba8c7067eb [04:21:07.793 D] Replaced hook [Heal] faec961e-ce14-4f9f-a997-a34e3c09cba4 [04:21:07.793 D] Replaced hook [Pull] 53c74e45-a6c9-4b92-82e8-4b018d2cf45e [04:21:07.793 D] Replaced hook [CombatBuff] f1542f1f-5257-4d78-83b4-e4bdca30dfef [04:21:07.793 D] Replaced hook [Combat] 61f85014-64e5-4ca5-99ba-faee2aa30c33 [04:21:07.793 D] Replaced hook [Rest] 8d4d38a4-9c3c-47b6-8d55-7ebaed83e7bf [04:21:07.793 D] Navigator.Clear() [04:21:07.793 V] [Poi.Clear] Reason: Bot stopped [04:21:07.793 D] OnStop event [04:21:07.793 D] OnStop Event Invoking [04:21:07.794 D] ProfileOrderManager.OnBotStop. Resetting caches. [04:21:07.794 N] Bot Thread Ended.
It's saying you already have 3, based on that log. Code: [04:21:07.688 N] [B][COLOR="#FF0000"]ebd!. 3 cloths found in your inventory.[/COLOR][/B] [04:21:07.784 N] Profile completed
wow,my apologize.it works,but i noticed that he just bought one and closed the chat then re-open it to buy next one?
Yes. BuyItem appears to open the NPC dialog, choose the right option, buy the item quantity specified, then close the NPC window(s). It then immediately buys another until your While tag condition changes.