kader-gm Posted March 5, 2015 Posted March 5, 2015 (edited) Hi all, I'm working on a new data pack and my server is almost finished, but I have a problem. The problem is option Sell items is disable in GMSHOP and traders. How to enable Sell option in gm shop? I use L2jfrozen rev 1004 Interlude. Edited March 5, 2015 by kader-gm
0 te0x Posted March 9, 2015 Posted March 9, 2015 UPDATE `armor` SET price=1 where price > 0; I just think that is for to goes all items on the server 1 adena.. or no? Now, this: UPDATE `armor` SET price=1000 where price = 0; All items goes 1000 when the price is 0. Have matter the price you sell, with all this on navicat? (I mean if you change for 1 or 1000 adena). All this, just changed the price of items. The same and for sell .. If i'm wrong, sorry. I understand what you mean , but frozen is a shit. it doesnt matter if the price will be 1 or 1000. in rev 1004 the price cant be 0 cauze it will unable to sell em them as i remember.
0 'Baggos' Posted March 5, 2015 Posted March 5, 2015 In original npc's the option Sell Items is there or no?
0 kader-gm Posted March 5, 2015 Author Posted March 5, 2015 Yes is there, But when I try to sell any item even if 1 unit of any consumable tells me "'ve exceeded the amount that can be introduced" .. Besides as you can see in the picture when I put any item not offer me any money, thanks for replying
0 kader-gm Posted March 6, 2015 Author Posted March 6, 2015 I put that code in database, but npc not offer me any money, and say me next message like picture. you have exceeded the quantity that can be inputed UPDATE `armor` SET price=1 where price > 0; UPDATE `etcitem` SET price=1 where price > 0; UPDATE `weapon` SET price=1 where price > 0; UPDATE `custom_weapon` SET price=1 where price > 0; UPDATE `custom_armor` SET price=1 where price > 0;
0 kader-gm Posted March 6, 2015 Author Posted March 6, 2015 Where i change the price of selling price into 1 in core?
0 SweeTs Posted March 6, 2015 Posted March 6, 2015 (edited) RequestSellItem.java clientpacket. int price = item.getReferencePrice() / 2; Check the file for the sell crap, maybe there is something and that's why you are not able to sell anything. Edited March 6, 2015 by SweeTs
0 te0x Posted March 6, 2015 Posted March 6, 2015 (edited) I put that code in database, but npc not offer me any money, and say me next message like picture. you have exceeded the quantity that can be inputed UPDATE `armor` SET price=1 where price > 0; UPDATE `etcitem` SET price=1 where price > 0; UPDATE `weapon` SET price=1 where price > 0; UPDATE `custom_weapon` SET price=1 where price > 0; UPDATE `custom_armor` SET price=1 where price > 0; why like this? the selling price is 0.. so you shoudn't use > 0 but = 0 UPDATE `custom_armor` SET price=1 where price = 0; ps. as i remember you can't sell items that cost 0 adena Edited March 6, 2015 by te0x
0 Tessa Posted March 6, 2015 Posted March 6, 2015 On l2jfrozen it looks like that if(count <= 0 || count > Integer.MAX_VALUE)
0 kader-gm Posted March 6, 2015 Author Posted March 6, 2015 i put in requestsellitems and in db... and say me again.. you have exceeded the quantity that can be inputed. and no offer me adena :S
0 Tessa Posted March 6, 2015 Posted March 6, 2015 It's nothing about the price... as you can see, it's about the item count. Btw why 1004? As I see, l2jfrozen has at least a hundred of fixes after this revision.
0 kader-gm Posted March 6, 2015 Author Posted March 6, 2015 (edited) Tessa Is datapack L2 PSD by te0x. Have so beau NPC's html's. and many bugs fixed.. if you know a kind datapack, share it please. Edited March 6, 2015 by kader-gm
0 te0x Posted March 7, 2015 Posted March 7, 2015 there is not a problem in core side. i have changed the prices in sql to 0. but in 1004 rev its not allowed to sell items that costs 0 adena. it shows you the " you have exceeded the quantity that can be inputed". You have to change the prices from the navicat from 0 to another price bigger than 0. try this UPDATE `armor` SET price=1000 where price = 0; UPDATE `etcitem` SET price=1000 where price = 0; UPDATE `weapon` SET price=1000 where price = 0; UPDATE `custom_weapon` SET price=1000 where price = 0; UPDATE `custom_armor` SET price=1000 where price = 0;
0 kader-gm Posted March 8, 2015 Author Posted March 8, 2015 I try all options xD but i cant.. no problen, thank u all for help, <3.
Question
kader-gm
Edited by kader-gm
21 answers to this question
Recommended Posts