|
You last visited: Today at 18:23
Advertisement
The New Upgrade System Script
Discussion on The New Upgrade System Script within the DarkOrbit forum part of the Browsergames category.
12/09/2011, 13:12
|
#16
|
elite*gold: 0
Join Date: Aug 2011
Posts: 110
Received Thanks: 18
|
This new system upgrade thing, SUCKS!!
I upgraded about 20 things at 20-25% and only got 1 thing upgraded!!!
|
|
|
12/09/2011, 13:48
|
#17
|
elite*gold: 0
Join Date: Dec 2011
Posts: 331
Received Thanks: 33
|
Quote:
Originally Posted by Vilikkeoplyse2
This new system upgrade thing, SUCKS!!
I upgraded about 20 things at 20-25% and only got 1 thing upgraded!!!
|
Same! I hate bp! First so laggy then so SUCK UPDATES. THINK...? OLD DARKORBIT LIKE [1-2YEARS] ARE BETTER THAN THAT SUCK DARKORBIT NOW. WAITING NEW SUCK UPDATES
|
|
|
12/09/2011, 15:28
|
#18
|
elite*gold: 0
Join Date: May 2010
Posts: 681
Received Thanks: 268
|
Quote:
Originally Posted by 0x60
Nome. There is no way to "hack" it. This is javascript, it's client side, and it sends a request to the server. All information is processed at the server. The only logical and possible way is by use of an "injection" which I have tried a couple times to no avail.
Code:
function numbersonly(e) {
var key;
var keychar;
if(window.event) key = window.event.keyCode;
else if(e) key = e.which;
else return true;
keychar = String.fromCharCode(key);
if((key==null)||(key==0)||(key==8)||
(key==9)||(key==13)||(key==27)) return true;
else if((('0123456789').indexOf(keychar)>-1))
return true;
else return false;
}
ensures you may not type in anything other than numbers (I disabled that so I could use backslashes and other chars) on the other hand,
Code:
function percentonly(input) {
val = parseInt(input.value);
if(val<5) val=5;
if(val>100) val=100;
if(val%5!=0) {
val = Math.round(val/10)*10;
}
input.value = val+'%';
jQuery('#chanceInfo').text(val+'%');
grade = val/5;
level = jQuery('#itemLevel').val()-1;
currency = jQuery('#itemCurrency').val();
currencyValue = jQuery('#itemCurrencyValue').val();
updateUpgradeInfo(grade, level, currency, currencyValue);
}
function minusUpgrade() {
val = parseInt(jQuery('#itemUpgradePercent').val());
if(val > 5) {
jQuery('#itemUpgradePercent').val(val-5+'%');
if (parseInt(jQuery('#itemUpgradePercent').val()) < 100) {
jQuery("#itemUpgradeButton div").html(buttonTextStartAttempt);
} else {
jQuery("#itemUpgradeButton div").html(buttonTextStart);
}
jQuery('#chanceInfo').text(val-5+'%');
grade = (val-5)/5;
level = jQuery('#itemLevel').val();
currency = jQuery('#itemCurrency').val();
currencyValue = jQuery('#itemCurrencyValue').val();
updateUpgradeInfo(grade, level-1, currency, currencyValue);
}
}
function plusUpgrade() {
val = parseInt(jQuery('#itemUpgradePercent').val());
if(val < 100) {
jQuery('#itemUpgradePercent').val(val+5+'%');
if (parseInt(jQuery('#itemUpgradePercent').val()) < 100) {
jQuery("#itemUpgradeButton div").html(buttonTextStartAttempt);
} else {
jQuery("#itemUpgradeButton div").html(buttonTextStart);
}
jQuery('#chanceInfo').text(val+5+'%');
grade = (val+5)/5;
level = jQuery('#itemLevel').val();
currency = jQuery('#itemCurrency').val();
currencyValue = jQuery('#itemCurrencyValue').val();
updateUpgradeInfo(grade, level-1, currency, currencyValue);
} else {
jQuery("#itemUpgradeButton").val(buttonTextStart);
}
}
function updateUpgradeInfo(grade, level, currency, currencyValue, resource_bonus, resource_bonus_short, resource_bonus_percent) {
if(grade != 1) {
// basic-costs + upgrade-costs
if(currency == 'Credits') {
costs_level_upgrade = 125000+level*125000*0.2;
for(var i=2; i<=grade; i++) {
costs_level_upgrade += 100000+i*0.05*level*500000;
}
}
else {
costs_level_upgrade = 200+level*200*0.75;
for(var i=2; i<=grade; i++) {
costs_level_upgrade += 60+(i-2)*15+level*15; //Uridium
}
}
} else {
// basic-costs
if(currency == 'Credits') costs_level_upgrade = 125000+level*125000*0.2;
else costs_level_upgrade = 200+level*200*0.75; //Uridium
}
costs_level_upgrade = 0.95*costs_level_upgrade;
jQuery('#costsInfo').text(parseInt(costs_level_upg rade)+' '+currencyValue);
bonus = jQuery('#itemBonus').val();
if(bonus.indexOf('/') != -1) {
bonus = bonus.split('/');
bonus = resource_bonus_percent.replace("%VALUE%", Math.round(parseFloat(bonus[0]*(level+1))*10)/10)
+'/'+resource_bonus_percent.replace("%VALUE%", Math.round(parseFloat(bonus[1]*(level+1))*10)/10);
} else bonus = resource_bonus_percent.replace("%VALUE%", Math.round(parseFloat(jQuery('#itemBonus').val()*( level+1))*10)/10);
jQuery('#bonusInfoTxt').attr('title',resource_bonu s_short).html(resource_bonus);
jQuery('#bonusInfo').text(bonus);
}
function updateUpgradeStatus(itemId, interval) {
upgrInfoText = '%VALUE%%';
upgrReadyText = 'Gata - clichează aici';
progress = parseFloat(jQuery('#progressId'+itemId).val());
tick = parseFloat(jQuery('#tickId'+itemId).val());
progress = progress+tick;
if(progress >= 100) {
interval=clearInterval(interval);
progress = 100;
jQuery('#infoId'+itemId).text(upgrReadyText);
finishUpgradeView(itemId);
jQuery('#upgrListItemId'+itemId).css('cursor','poi nter').click(function() {
document.upgradeForm.itemID.value=itemId;
document.upgradeForm.itemLevel.value=jQuery('#item LevelId'+itemId).text();
document.upgradeForm.itemType.value=jQuery('#typeI d'+itemId).val();
document.upgradeForm.submit();
});
jQuery('#itemLevel_'+itemId).css('background-position','-120px 0');
} else {
jQuery('#progressId'+itemId).val(progress);
upgrInfoText = upgrInfoText.replace("%VALUE%", Math.round(progress));
jQuery('#progressBar'+itemId).css('width',Math.rou nd(progress)+'%');
jQuery('#infoId'+itemId).text(upgrInfoText);
}
}
If we manage to change the values and submit to the server say level 2 upgrade, 100% chance, 5 credits; we might make it through, but I believe the server checks things like that.
This is what a request looks like for trying to upgrade a flax to lvl 3 from lvl 2
Code:
Request URL:http://us1.darkorbit.bigpoint.com/indexInternal.es
Request Method:POST
reloadToken: <HIDDEN>
action:internalItemUpgradeSystem
subAction:completeUpgrade
itemID:<HIDDEN>
itemLevel:2
itemType:drone
selectedType:
It convinces me that it is server-side checked.
|
THIS IS A TRAP PUT HERE BY ME!!! DON'T ASK WHY!! CLoserequest.
yes all it's server sided. and it's jquerry not javascript.
|
|
|
12/09/2011, 16:32
|
#19
|
elite*gold: 10
Join Date: May 2011
Posts: 2,340
Received Thanks: 728
|
Quote:
Originally Posted by BlackFlashBack
Same! I hate bp! First so laggy then so SUCK UPDATES. THINK...? OLD DARKORBIT LIKE [1-2YEARS] ARE BETTER THAN THAT SUCK DARKORBIT NOW. WAITING NEW SUCK UPDATES
|
END WITH THAT ****'! ****** GAME! I ENDED IMMIDIATELLY WHEN I SAW THE NEW THINGS... AGAIN and AGAIN..
|
|
|
12/10/2011, 02:31
|
#20
|
Trade Restricted
elite*gold: 329
Join Date: Nov 2009
Posts: 11,098
Received Thanks: 3,417
|
#Closed
|
|
|
|
|
Similar Threads
|
Darkorbit UPGRADE SYSTEM
12/12/2011 - DarkOrbit - 32 Replies
Hallo
Es gibt wieder ein neues Update:
Deutsche DO FORUM:
Hallo Spacepiloten,
Seit unserer Offensive in die Piratensektoren haben wir viel gelernt und es tauchen immer neue Technologien in den Wracks der Piraten auf. Die neueste Entdeckung ist die Upgrade-Technologie. Sie erlaubt uns einige unserer Ausrüstungsgegestände aufzuwerten und sie mit einem Bonus zu versehen.
|
Baruna Upgrade System verändern
07/10/2011 - Flyff Private Server - 3 Replies
Hey, ich find das Baruna Upgrade System sche... Kann man das irgendwie verändern, das man wie beim normalen, 10 sockeln reinhaun kann, und bei +10 (bzw +20 bei baruna) dann 5 Ulti slots hat? Wenn ja, wie?
|
how to change upgrade system??????
05/16/2011 - Metin2 Private Server - 3 Replies
hey guys i would like to know how to change the upgrade system of my server
plssss answer fast in this post not like the others
thanks
|
[Req]New upgrade system LOTF
08/07/2009 - CO2 Private Server - 3 Replies
I need help to add new upgrade system on global (minor major progres)
for guide to add horse (LOTF)
|
All times are GMT +2. The time now is 18:23.
|
|