Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [Sharing] NPC which trades item for adena and item. (https://postpacific.loc-online.com/showthread.php?t=1150)

bobby 08.07.2005 16:56

[Sharing] NPC which trades item for adena and item.
 
To have an NPC request an Item and money in exchange for an item.

This is the easiest way I have found to do it. There are other ways of doing it.

create the NPC you want to perform this action, you can the blacksmith merchant template, as he already referes to the mutlisell template. edited it so his multisell list matches the one you want to display. you add the following example below, and input whatever you would want.

You will also need to edit the html files to match what your doing.

In this example the multi list request's an item and adena in order to receive an upgraded item.

add this to the multisell.txt

MultiSell_begin [blackmerchant_queste] 7
selllist={{{[stormbringer_crt.anger];1};{{[stormbringer];1};{[adena];10000000}}};
{{[stormbringer_focus];1};{{[stormbringer];1};{[adena];10000000}}};
{{[stormbringer_light];1};{{[stormbringer];1};{[adena];10000000}}};
MultiSell_end

siliticx 09.07.2005 03:46

little tutorials for the newbs :P

good job tho, and those who makes huge list of those, always remember that you CANt output more than 1 item and always double check if you got no [[ or ]]

zonule 11.07.2005 07:01

thank you

hr 11.07.2005 11:40

Quote:

{[adena];10000000}}};
MultiSell_end
Should be:
Quote:

{[adena];10000000}}}}
MultiSell_end
:wink:

Sakumi 11.07.2005 16:14

hr good catch.

Lycean 25.07.2005 19:36

thx man for the info. I was just wondering if someone brought in an enchanted weapon like +10 Great Sword is there a way to check the enchants and give back a weapon with the same number of enchants.

niriak 25.07.2005 19:51

This works if i want an NPC to sell some quest items?

hr 26.07.2005 09:58

Quote:

This works if i want an NPC to sell some quest items?
Yep

niriak 26.07.2005 14:17

tks!


All times are GMT. The time now is 15:40.