|
|
![](/forums/images/Darkness/misc/spacer.gif) |
![](/forums/images/Darkness/misc/spacer.gif) |
![](/forums/images/Darkness/misc/spacer.gif) |
![](/forums/images/Darkness/misc/q1.jpg) |
|
![](/forums/images/Darkness/misc/q1-1.jpg) |
![](/forums/images/Darkness/misc/q4.jpg) |
|
![](/forums/images/Darkness/misc/q4-1.jpg) |
![](/forums/images/Darkness/misc/a1.jpg) |
|
![](/forums/images/Darkness/misc/a1-1.jpg) |
|
Quests::Q&A This is the quest support section |
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-24-2013, 04:23 PM
|
![provocating's Avatar](image.php?s=a9b003e98e90c954ae6d7f40d010ac41&u=81582&dateline=1410009195) |
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
Clearing Merchant Inventory
I could had sworn I used to be able to clear merchant inventory like this.
Code:
quest::merchantclear($npc->GetNPCTypeID());
But it does not appear to be working anymore. What am I doing wrong here?
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-24-2013, 06:38 PM
|
![joligario's Avatar](image.php?s=a9b003e98e90c954ae6d7f40d010ac41&u=15712&dateline=1407721451) |
Developer
|
|
Join Date: Mar 2003
Posts: 1,490
|
|
I don't see that command. Are you thinking the ClearMerchantTemp()?
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-24-2013, 07:00 PM
|
![provocating's Avatar](image.php?s=a9b003e98e90c954ae6d7f40d010ac41&u=81582&dateline=1410009195) |
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
I am thinking a few years ago I may had created a custom command. Is that ClearMerchantTemp valid and working?
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-24-2013, 07:28 PM
|
![joligario's Avatar](image.php?s=a9b003e98e90c954ae6d7f40d010ac41&u=15712&dateline=1407721451) |
Developer
|
|
Join Date: Mar 2003
Posts: 1,490
|
|
It is in the code, but I don't think there is a perl export for it.
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-24-2013, 08:20 PM
|
Administrator
|
|
Join Date: May 2013
Location: United States
Posts: 1,589
|
|
Would $npc->ClearItemList() not work?
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-24-2013, 08:26 PM
|
![provocating's Avatar](image.php?s=a9b003e98e90c954ae6d7f40d010ac41&u=81582&dateline=1410009195) |
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
Quote:
Originally Posted by joligario
It is in the code, but I don't think there is a perl export for it.
|
That is probably what I did last time was modify the source.
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-24-2013, 08:32 PM
|
Administrator
|
|
Join Date: May 2013
Location: United States
Posts: 1,589
|
|
Quote:
Originally Posted by provocating
That is probably what I did last time was modify the source.
|
Did you attempt what I said?
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-24-2013, 09:00 PM
|
![provocating's Avatar](image.php?s=a9b003e98e90c954ae6d7f40d010ac41&u=81582&dateline=1410009195) |
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
Not yet, have not had a chance yet.
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-24-2013, 09:01 PM
|
Administrator
|
|
Join Date: May 2013
Location: United States
Posts: 1,589
|
|
Quote:
Originally Posted by provocating
Not yet, have not had a chance yet.
|
Okay, just keep me posted.
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-24-2013, 09:46 PM
|
![joligario's Avatar](image.php?s=a9b003e98e90c954ae6d7f40d010ac41&u=15712&dateline=1407721451) |
Developer
|
|
Join Date: Mar 2003
Posts: 1,490
|
|
That looks like it is for loot only.
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-24-2013, 09:49 PM
|
Administrator
|
|
Join Date: May 2013
Location: United States
Posts: 1,589
|
|
Quote:
Originally Posted by joligario
That looks like it is for loot only.
|
Okay, I was unsure, and my server was down, thanks for the information.
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-24-2013, 11:18 PM
|
![provocating's Avatar](image.php?s=a9b003e98e90c954ae6d7f40d010ac41&u=81582&dateline=1410009195) |
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
It did not seem to work, I put a
Code:
$npc->ClearItemList();
in the script right before a shout, I heard the shout but the merchant still had the same items. I am doing a script that dumps random items on the merchant and indeed the random items get loaded during the initial run, but never get cleared out before the next item load.
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-24-2013, 11:22 PM
|
![provocating's Avatar](image.php?s=a9b003e98e90c954ae6d7f40d010ac41&u=81582&dateline=1410009195) |
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
Quote:
Originally Posted by Kingly_Krab
Did you attempt what I said?
|
Yeah definitely not working, the temp merchant list keeps getting larger.
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-25-2013, 09:24 AM
|
Hill Giant
|
|
Join Date: Sep 2008
Location: So. California
Posts: 219
|
|
Is this what you are looking for? If not perhaps it can do what you need..
Code:
quest::MerchantSetItem(merchant's npc id, item id, quanity of item) - changes the number of the item that the merchant has available to sell
quest::MerchantCountItem(merchant npc id, item id) returns the number of that item in stock.
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
10-25-2013, 12:31 PM
|
![provocating's Avatar](image.php?s=a9b003e98e90c954ae6d7f40d010ac41&u=81582&dateline=1410009195) |
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
I knew about those two, I need a simple clear inventory.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 09:38 PM.
|
|
![](/forums/images/Darkness/misc/s1.jpg) |
|
![](/forums/images/Darkness/misc/s1-1.jpg) |
|
|
|
![](/forums/images/Darkness/misc/z1.jpg) |
|
![](/forums/images/Darkness/misc/z1-1.jpg) |
|
![](/forums/images/Darkness/misc/side3.jpg) |