Jump to content

Question

Posted

hey guys....

 

 

I have some kinda bug...

 

I mean ppl buy one item from gm shop with 1kk and they can sell them with 2-3-4 kk at the same npc...how can i resolve this?

 

Plz need help

Recommended Posts

  • 0
Posted

hey guys....

 

 

I have some kinda bug...

 

I mean ppl buy one item from gm shop with 1kk and they can sell them with 2-3-4 kk at the same npc...how can i resolve this?

 

Plz need help

 

Check your items from database, at armor/weapon/etcitem, there should a column named "price".

Or you can ignore this column from java, by setting it to 0 adena for each item.

  • 0
Posted

Can you tell me eaxctlly the java file?

 

Plz..i'm kinda noob in this?

 

plz

 

RequestSellItem.java

 

Find

 

int price = item.getReferencePrice() / 2;

 

and change it to

 

int price = 0;

  • 0
Posted

you can put a sql script on your db that sells everything for 0 adena

 

~>

 

UPDATE `armor` SET price=0 where price > 1;
UPDATE `etcitem` SET price=0 where price > 1;
UPDATE `weapon` SET price=0 where price > 1;

 

or only etcitems sell for 0 adena

UPDATE `etcitem` SET price=0 where price > 1;

 

  • 0
Posted

you can put a sql script on your db that sells everything for 0 adena or only etcitems

 

~>

 

UPDATE `armor` SET price=0 where price > 1;
UPDATE `etcitem` SET price=0 where price > 1;
UPDATE `weapon` SET price=0 where price > 1;

 

He is a beginner, if he adds custom items, he must do this again.

Using Java is more flexible.

  • 0
Posted

He is a beginner, if he adds custom items, he have to do it again.

Using Java is more flexible.

true if he knows how to modify java files its preferable.

  • 0
Posted

Ok, tell me what files from java i need to modify.... path?

 

And what to set there...tnx

 

RequestSellItem.java

 

Find

 

int price = item.getReferencePrice() / 2;

 

and change it to

 

int price = 0;

  • 0
Posted

The actual sollution though is to just change the sell Price of item from db as trance said.

 

If you change all items' sellprice to 0,be sure that it won't fack up server's economy system whatever how it is since i saw your server is up & running already.

  • 0
Posted

But insted of 0 from this

 

int price = 0;

 

can i put for exemple 1000000 ? i mean 1kk? for all items? so i dont -beep- the server economy?

 

And i dont have that file RequestSell  etc... i searched and the i used Search function from windows...and still cant fiind'it..

  • 0
Posted

But insted of 0 from this

 

int price = 0;

 

can i put for exemple 1000000 ? i mean 1kk? for all items? so i dont -beep- the server economy?

 

And i dont have that file RequestSell  etc... i searched and the i used Search function from windows...and still cant fiind'it..

 

If you change this, all items will have the same price, potions/armors and so on. So no, it's a bad idea. The best solution is to make it 0.

  • 0
Posted

I understand,

 

But i dont have this file : RequestSellItem.java

 

I run server on l2j Gracia Final (CT 2.3)

 

long price = 0;

 

ZvxgSCN.png

  • 0
Posted

can i put for exemple 1000000 ? i mean 1kk? for all items? so i dont -beep- the server economy?

 

And i dont have that file RequestSell  etc... i searched and the i used Search function from windows...and still cant fiind'it..

 

if your server is  a high drop server yes you can do it and "stable" your shop's multisell. If not there is no reason to do that.

  • 0
Posted

Tnx Guys,

 

I have resolved this...

 

One more question so i dont start another topic...

 

My currency on the server byside adena si golden apiga...but i can't trade them....i know the id is 9143 but i really can find'it in database....somebody know maybe the table?

 

tnx

 

And Tяαnce can you pm me...? because i can't

Guest
This topic is now closed to further replies.


  • Posts

    • sell adena l2rebon signature x1 - 1kk = 1 dollars l2reborn x10 - 500kk = 4 dollars E-Global x Lu4 - 1kk = 2 dollars BOHPTS - x20-x500 TOP PRICE DISCORD - GODDARDSHOP TELEGRAM - MMOPROMO Also on sale are Epic jewelry, Clothes at a very good price
    • Hello Sorry, my Discord is: ave7309
    • “Hello, I’d like to present a short description of the server. Everyone starts equally at max level 80. The server includes a custom buffer, custom class master, custom weapons and armors, custom zones, custom teleporter, custom raid bosses, and much more. I’ll leave a link in the description for those who want to see how everything looks inside. The server is only open on weekends, and you can find more news via the Facebook link.”   https://www.facebook.com/profile.php?id=61578869175323
    • 1. You where subscriber 3 years ago. 2. There is no current L2jMobius 2.8 Seven Signs version. Subcriber or not. 3. You have your answer from multiple forums that more items is more delay.  
    • 1. Optimize Packet Serialization Look in ItemList.java or wherever the inventory packet is constructed. Instead of building the packet with inefficient string concatenation or repeated allocations, use a preallocated buffer and avoid creating new objects for each item. Mobius sources are Java-based, so profiling with something like VisualVM or YourKit can help see where most time is spent. 2. Avoid Sending the Full List Each Time Modify the server to send only changed items (diff packets) when the inventory window opens. Some newer forks implement this as “lazy loading” or paged inventory so the client only loads e.g. 100 items at a time. 3. Limit the Inventory Size Per Page Instead of showing all 500 slots at once, split the inventory into pages/tabs (100 slots each). When the user switches a tab, send only that page’s items. This requires some client-side editing, but it’s the most user-friendly long-term fix. 4. Database & Cache Optimizations Ensure your items table is indexed by owner_id to make the query for player items fast. Cache item templates and static data so they are not reloaded every time the inventory is shown. ⚠️ Things to Keep in Mind Increasing slots from 80 → 500 does not just change a number — it multiplies the workload for packet building and UI rendering. You can’t fully avoid some extra cost with 500 items, but you can keep it under a few milliseconds if you optimize how and when the data is sent.    
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock