wudi430740
New Member
- Joined
- Jul 25, 2015
- Messages
- 27
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?
This:Like i want to buy 10 Woolen Smock from the NPC named Independent Merchant in Mor Dhona. how can i do it?
<BuyItem ItemId="3187" ItemCount="10" DialogOption="3" NpcId="1006952" XYZ="16.55597, 28.99997, -727.5654" />
ItemCount is likely a required property for the BuyItem tag. Set it to 1 and try again.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?
It's saying you already have 3, based on that log.i changed it to 1 but seems still not work,logs:
[04:21:07.688 N] [B][COLOR="#FF0000"]ebd!. 3 cloths found in your inventory.[/COLOR][/B]
[04:21:07.784 N] Profile completed
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.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?