Question about Merchants

Discussion in 'General Modification' started by EUIX, Jul 9, 2006.

Remove all ads!
  1. EUIX

    EUIX Member

    Joined:
    May 24, 2006
    Messages:
    5
    Likes Received:
    0
    I have made a merchant by linking a container to a NPC, using the TOEE World Builder. But I have a problem the merchant won't sell anything he has. Some of the times show up as "I will not sell this" and others don't have a price when you run your mouse over them and if try dragging them into your inventory nothing happens. Similarly he won't buy anything either. Is there some specific flag I am not setting or something? Also is there a guide on how to make merchants step by step?
     
  2. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,740
    Likes Received:
    374
    Sorry, I shoulda got back to you about this.

    One thing you have to do is, in InvenSource.mes, you have to 'set' the fella as a merchant: you have to assign him a buy value, so he knows what to buy: for instance, buy value 7 will make him pay good prices for metal gear, 5 will make him pay good prices for leather etc. So in your case, the merchant himself has his inventory set as 81 (thats col 44 in ProtoEd). So in Invensource.mes, go to line 81: it says

    {81}{Lodriss: buy_list_num,1 100,4060 100,4060 100,6011 100,6147 copper,2 gold,7 platinum,8 jewelry,2500}

    buy_list_1 means 'buy nothing', so thats y he isn't buying ;) Yours should be 2, feel free to change the name as well. You can change all the other values there too, they are irrelevant because they are overridden by the mobs.

    Now... you also have to add an Invensource.mes thing for the box. Put in a new one, 310 or so I tihnk is the end. That should also have buy_list_2 in it at the start (again, call it whatever you like) and then everything u want to have in it on the off chance it actually respawns ;) (We'll do that by script when the time comes). So to have the box respawn with a host of leather gear, for the man-about-town, it might say something like:

    {310}{Box: buy_list_2 100,6044 100,6045 100,6046 }

    Again, what is coming up the first time is the mobs (you'll already know that ;) ) And you link the box to line 310 at the apprioriate bit in ToEEWB, see pic below. O and always set your coordinates BEFORE you add inventory to a mob, otherwise the inventory will turn up at 0,0 and won't appear and you will scratch your head wondering what is happening :)

    Anyways, try the buy_list thing and see if it helps :) Also, check the tutorials inside ToEEWB, there's lots of them and they are very thorough.
     

    Attached Files:

  3. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,740
    Likes Received:
    374
    One other important thing to mention: look closely how Invensource.mes is set up and read the little notes at the top. The slightest screw-up in that file, a typo or anything, will crash the game in the initial load.
     
Our Host!