Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 10-24-2013, 04:23 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default 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?
Reply With Quote
  #2  
Old 10-24-2013, 06:38 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

I don't see that command. Are you thinking the ClearMerchantTemp()?
Reply With Quote
  #3  
Old 10-24-2013, 07:00 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

I am thinking a few years ago I may had created a custom command. Is that ClearMerchantTemp valid and working?
Reply With Quote
  #4  
Old 10-24-2013, 07:28 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

It is in the code, but I don't think there is a perl export for it.
Reply With Quote
  #5  
Old 10-24-2013, 08:20 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Would $npc->ClearItemList() not work?
Reply With Quote
  #6  
Old 10-24-2013, 08:26 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Quote:
Originally Posted by joligario View Post
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.
Reply With Quote
  #7  
Old 10-24-2013, 08:32 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Quote:
Originally Posted by provocating View Post
That is probably what I did last time was modify the source.
Did you attempt what I said?
Reply With Quote
  #8  
Old 10-24-2013, 09:00 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Not yet, have not had a chance yet.
Reply With Quote
  #9  
Old 10-24-2013, 09:01 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Quote:
Originally Posted by provocating View Post
Not yet, have not had a chance yet.
Okay, just keep me posted.
Reply With Quote
  #10  
Old 10-24-2013, 09:46 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

That looks like it is for loot only.
Reply With Quote
  #11  
Old 10-24-2013, 09:49 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Quote:
Originally Posted by joligario View Post
That looks like it is for loot only.
Okay, I was unsure, and my server was down, thanks for the information.
Reply With Quote
  #12  
Old 10-24-2013, 11:18 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

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.
Reply With Quote
  #13  
Old 10-24-2013, 11:22 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Quote:
Originally Posted by Kingly_Krab View Post
Did you attempt what I said?
Yeah definitely not working, the temp merchant list keeps getting larger.
Reply With Quote
  #14  
Old 10-25-2013, 09:24 AM
rencro
Hill Giant
 
Join Date: Sep 2008
Location: So. California
Posts: 219
Default

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.
Reply With Quote
  #15  
Old 10-25-2013, 12:31 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

I knew about those two, I need a simple clear inventory.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:48 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3