Subj : Trade Wars 2 Haggle values To : all From : vela025 Date : Fri Nov 29 2024 14:14:10 Hey all, I'm having a problem with the haggling in Trade Wars 2/Javascript included in the xtrn directory. It seems to cap out the value I can enter, for example: Traders offer for 20 units of Equipment is 534, I then try to enter 500 as my offer but I can only type 50 and then it gives me the "That was pretty funny" line. It does the same for 400 (only allowing 40), 300 only allowing 30, 250 only allowing 25 but does let me enter 200. At another port a trader wants 105 for 20 ore, which does allow me to enter 100. port.js has: while(offer==0) { console.write("Your offer? "); offer=InputFunc([{min:0,max:(buy?player.Credits:(price*amount*10))}]); if(offer==0) break; if(offer < price*amount/10 || offer > price*amount*10) { console.writeln("That was pretty funny, Now make a serious offer."); offer=0; } And InputFunc in input.js is quite lengthy so I won't paste that here. Am I doing something wrong, should I be entering the price per unit, not the price for all units? Or is this a bug? --- þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net .