View Full Version : how do i sell more than one of an item?
desche188
06-17-2012, 04:04 AM
here is what i got but it only sell one of that item and i cant get it to sell more than one
elseif (labelName == "Sell") then
delayWalker(5000)
Self.Say("hi")
sleep(math.random(700, 1400))
Self.SayToNpc("trade")
Self.ShopSellItem(5897, 0)
sleep(math.random(700, 1400))
desche188
06-17-2012, 04:25 AM
anyone?
desche188
06-17-2012, 04:57 AM
please its important
desche188
06-17-2012, 10:05 AM
is there anyway to sell all of the item or not?
Forgee
06-17-2012, 11:04 AM
Self.ShopSellAllItems(item)
I do not know if it sells items in closed containers but by the looks of it in the native library I would think it does.
Flappy Joe
06-17-2012, 11:11 AM
This will sell the amount you are carrying:
Self.ShopSellItem(5897, (Self.ItemCount(5897)))
This will sell 50:
Self.ShopSellItem(5897, 50)
desche188
06-17-2012, 11:21 AM
Self.ShopSellAllItems(item)
I do not know if it sells items in closed containers but by the looks of it in the native library I would think it does.
it worked but
Self.ShopBuyItem(7876, buy) how can i make this buy up to 20 potions i have tried everything
Flappy Joe
06-17-2012, 11:25 AM
Did you not read my post?
Self.ShopBuyItem(7876, 20)
desche188
06-17-2012, 11:27 AM
Did you not read my post?
Self.ShopBuyItem(7876, 20)
19:26 [XenoScript] Rook chain armor.lua: attempt to call field 'ShopBuyItems' (a nil value)
Forgee
06-17-2012, 02:04 PM
Self.ShopBuyItem(7876, 20)
not
Self.ShopBuyItems(7876, 20)
But doesn't that just buy 20?
Since he wanted to buy up to 20.
You can try mine or sirmate's function:
Self.BuyItemsUpTo(7876, 20)
Don't forget dofile(...).
desche188
06-17-2012, 02:56 PM
I'll try to get the buy items to work. neo scripting was easier for me
desche188
06-18-2012, 08:56 AM
Self.ShopBuyItem(7876, 20)
not
Self.ShopBuyItems(7876, 20)
But doesn't that just buy 20?
Since he wanted to buy up to 20.
You can try mine or sirmate's function:
Self.BuyItemsUpTo(7876, 20)
Don't forget dofile(...).
thank your it worked now i can make the rest of my waypoints
Flappy Joe
06-18-2012, 10:50 AM
Forgee Yes, sorry, that completely went over my head :p
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.