IvanD Posted September 7, 2020 Share Posted September 7, 2020 anyone got this script? NPC chatbox says "B>red potions" when you click npc you will automatically sell one by one the ID number 999...... and the npc limit is 1-1000 after that the player needs to wait 24hours Quote Link to comment Share on other sites More sharing options...
0 Songbird Posted September 9, 2020 Share Posted September 9, 2020 (edited) Try this script I made (Is not tested so it could not work): prontera,150,150,7 script Quick Sell NPC#QSN1 815,{ goto OnClick; end; OnInit: // = CONFIGURE YOUR NPC HERE ========== // Enter the Item ID the NPC will buy .buyItemID = 999; // If 1, the npc will buy all the item stack at once .buyAllItems = 0; // If .buyAllItems is 0, NPC will buy the quantity set here .buyQuantity = 1; // Show deal message: 1 or not: 0 .showDealMessage = 1; // ==================================== waitingroom "B>" + getitemname(.buyItemID),0; end; OnClick: if (countitem(.buyItemID)) { [email protected] = getiteminfo(.buyItemID,1); if (.buyAllItems) { Zeny += [email protected] * countitem(.buyItemID); [email protected] = [email protected] * countitem(.buyItemID); if (.showDealMessage) dispbottom "You sold " + countitem(.buyItemID) + " " + getitemname(.buyItemID) + " for " + callfunc("F_InsertComma",[email protected]) + " Zeny."; delitem .buyItemID,countitem(.buyItemID); } else { if (.buyQuantity > 1 && countitem(.buyItemID) < .buyQuantity) { Zeny += [email protected] * countitem(.buyItemID); [email protected] = [email protected] * countitem(.buyItemID); if (.showDealMessage) dispbottom "You sold " + countitem(.buyItemID) + " " + getitemname(.buyItemID) + " for " + callfunc("F_InsertComma",[email protected]) + " Zeny."; delitem .buyItemID,countitem(.buyItemID); } Zeny += [email protected] * .buyQuantity; [email protected] = [email protected] * .buyQuantity; if (.showDealMessage) dispbottom "You sold " + .buyQuantity + " " + getitemname(.buyItemID) + " for " + callfunc("F_InsertComma",[email protected]) + " Zeny."; delitem .buyItemID,.buyQuantity; } } else { dispbottom "Not enough items to sell."; } end; } Edited September 9, 2020 by Songbird 2 Quote Link to comment Share on other sites More sharing options...
0 MarkSuck Posted July 15, 2021 Share Posted July 15, 2021 On 9/10/2020 at 1:46 AM, Songbird said: Try this script I made (Is not tested so it could not work): prontera,150,150,7 script Quick Sell NPC#QSN1 815,{ goto OnClick; end; OnInit: // = CONFIGURE YOUR NPC HERE ========== // Enter the Item ID the NPC will buy .buyItemID = 999; // If 1, the npc will buy all the item stack at once .buyAllItems = 0; // If .buyAllItems is 0, NPC will buy the quantity set here .buyQuantity = 1; // Show deal message: 1 or not: 0 .showDealMessage = 1; // ==================================== waitingroom "B>" + getitemname(.buyItemID),0; end; OnClick: if (countitem(.buyItemID)) { [email protected] = getiteminfo(.buyItemID,1); if (.buyAllItems) { Zeny += [email protected] * countitem(.buyItemID); [email protected] = [email protected] * countitem(.buyItemID); if (.showDealMessage) dispbottom "You sold " + countitem(.buyItemID) + " " + getitemname(.buyItemID) + " for " + callfunc("F_InsertComma",[email protected]) + " Zeny."; delitem .buyItemID,countitem(.buyItemID); } else { if (.buyQuantity > 1 && countitem(.buyItemID) < .buyQuantity) { Zeny += [email protected] * countitem(.buyItemID); [email protected] = [email protected] * countitem(.buyItemID); if (.showDealMessage) dispbottom "You sold " + countitem(.buyItemID) + " " + getitemname(.buyItemID) + " for " + callfunc("F_InsertComma",[email protected]) + " Zeny."; delitem .buyItemID,countitem(.buyItemID); } Zeny += [email protected] * .buyQuantity; [email protected] = [email protected] * .buyQuantity; if (.showDealMessage) dispbottom "You sold " + .buyQuantity + " " + getitemname(.buyItemID) + " for " + callfunc("F_InsertComma",[email protected]) + " Zeny."; delitem .buyItemID,.buyQuantity; } } else { dispbottom "Not enough items to sell."; } end; } Thank you for this script How to config muti item id and price. Quote Link to comment Share on other sites More sharing options...
anyone got this script?
NPC chatbox says "B>red potions"
when you click npc you will automatically sell one by one the ID number 999...... and the npc limit is 1-1000 after that the player needs to wait 24hours
Link to comment
Share on other sites