criss22 Posted September 15, 2019 Posted September 15, 2019 Hi everyone. How i can make all shop when player sell, to NOT get adena. For exemple. Helvetia. When i sell something, Anything, not to take Adena.
0 StinkyMadness Posted September 15, 2019 Posted September 15, 2019 2 hours ago, criss22 said: Hi everyone. How i can make all shop when player sell, to NOT get adena. For exemple. Helvetia. When i sell something, Anything, not to take Adena. rework the int getPrice() of item return to 0 and then go to serverpackages and make show 0 adena.
0 criss22 Posted September 15, 2019 Author Posted September 15, 2019 From what file Stinky? TradeItem.java clientpackets\SetPrivateStoreListSell.java Or from where?
0 StinkyMadness Posted September 15, 2019 Posted September 15, 2019 15 hours ago, criss22 said: From what file Stinky? Item.java or ItemInstance.java ? 12 hours ago, wongerlt said: just change items price to 0 One by one all the items? xD
0 criss22 Posted September 15, 2019 Author Posted September 15, 2019 I have this in my pack. public int getPrice() { return _price; } i change with: public int getPrice() { return 0; } and no work :P
0 StinkyMadness Posted September 15, 2019 Posted September 15, 2019 (edited) 10 hours ago, criss22 said: ... Works just its visual... try to sell something and tell me if you will earn adena... From Serverpackage you have to edit that visual issue. Edited September 15, 2019 by StinkyMadness
0 criss22 Posted September 15, 2019 Author Posted September 15, 2019 I already sell something, and i get adena in my inventory. And i don't want that :))
0 criss22 Posted September 15, 2019 Author Posted September 15, 2019 Nvm, i can't :) I do like wongerlt say
0 criss22 Posted September 15, 2019 Author Posted September 15, 2019 With this image you can help me more. From where i can change .getPrice() ? http:// Tell me pls: this and this. Thank you !
0 wongerlt Posted September 15, 2019 Posted September 15, 2019 2 hours ago, StinkyMadness said: Item.java or ItemInstance.java ? One by one all the items? xD where all items in ur pack? If in xml u can change all items price with notepad++ "Replace in Files"
0 SweeTs Posted September 15, 2019 Posted September 15, 2019 RequestSellItem.java int price = item.getReferencePrice() / 2; Change it to 0. Yet, client, still, will display adena on dialog.
0 criss22 Posted September 15, 2019 Author Posted September 15, 2019 (edited) Errors provide from another settings. Edited September 15, 2019 by criss22
0 criss22 Posted September 15, 2019 Author Posted September 15, 2019 How i can set back my work? ctrl+z no work anymore and i have some errors in eclipse with this price
0 criss22 Posted September 15, 2019 Author Posted September 15, 2019 39 minutes ago, SweeTs said: RequestSellItem.java int price = item.getReferencePrice() / 2; Change it to 0. Yet, client, still, will display adena on dialog. Yes, but to not give to player when he confirm trade. (Sell)
Question
criss22
Hi everyone. How i can make all shop when player sell, to NOT get adena. For exemple. Helvetia. When i sell something, Anything, not to take Adena.
16 answers to this question
Recommended Posts