'+getText("goToMarketstall")+' | |
---|---|
'+sign_sum+' | '+moneyFormatInt(parseInt(this.getAttribute("value"),10))+' |
'+getText("ingredients")+' | '+produktPic(0,unsafeWindow.formulas[0][formula][3][w][0],createElement("div")).parentNode.innerHTML+' | '; str += ''+numberFormat(unsafeWindow.formulas[0][formula][3][w][1])+' '+sign_mult+' | '; str += ''+moneyFormat(gut[unsafeWindow.formulas[0][formula][3][w][0]])+' = | '; str += ''+moneyFormatInt(unsafeWindow.formulas[0][formula][3][w][1]*gut[unsafeWindow.formulas[0][formula][3][w][0]])+' | '; } str += '
---|
'+getText("gain")+' | ||
---|---|---|
'+produktPic(0,unsafeWindow.formulas[0][formula][5][0][0],createElement("div")).parentNode.innerHTML+' | '; str += ''+numberFormat(unsafeWindow.formulas[0][formula][5][0][1])+' '+sign_mult+' | '; str += ''+moneyFormat(gut[unsafeWindow.formulas[0][formula][5][0][0]])+' | '; str += '
'+prodName[0][prod]+' | |
---|---|
'+numberFormat(amount)+' '+sign_mult+' | '+moneyFormat(price)+' |
= | '+moneyFormat(amount*price)+' |
'+prodName[0][prod]+' | |
---|---|
'+numberFormat(amount)+' '+sign_mult+' | '+moneyFormat(price)+' |
= | '+moneyFormat(amount*price)+' |
'+getText("click")+': | '+getText("load")+' |
'+getText("clickCtrl")+': | '+getText("save")+' |
→ '+contractSave[currNr][0]+' | ||
'+numberFormat(contractSave[currNr][1][v][0])+' | '+produktPic(0,v,createElement("div")).parentNode.innerHTML+prodName[0][v]+' | '+moneyFormat(contractSave[currNr][1][v][1])+' |
--- |
Version:<\/b>(\d+\.\d+\.\d+)<\/p>/gi.exec($("content").innerHTML.replace(/\s/gi,""))[1];
if(compareVersions(uso_version,VERSION)<1){
$("install_script").firstElementChild.innerHTML="Already installed";
}else{
$("install_script").firstElementChild.innerHTML="Update ("+VERSION+" → "+uso_version+")";
}
}
return false;
}else if(!COUNTRY||!GAMEPAGES[COUNTRY]||!location.hostname.match(GAMEPAGES[COUNTRY])){
err_trace="COUNTRY error";
createElement("div",{"style":"position:absolute;top:0;left:0;width:340px;padding:30px;background-color:yellow;border:3px solid black;border-radius:10px;z-index:1000;font-family:Verdana,sans-serif;color:#000000;font-size:12pt;font-weight:bold;"},document.getElementsByTagName("body")[0],"You have to install a language pack. Download one at userscripts.org.")
}else{
err_trace="regular expressions";
regDelimThou=new RegExp(regDelimThou,"g");
regDelimThouShift=new RegExp(regDelimThouShift,"g");
regDelimThouDelete=new RegExp(regDelimThouDelete,"g");
regDelimDeci=new RegExp(regDelimDeci);
regMsgMarketsaleContent=new RegExp(getText("msgMarketsaleContent"));
regMsgContractsaleContent=new RegExp(getText("msgContractsaleContent"));
regMsgContractsaleList=new RegExp(getText("msgContractsaleList"));
regMsgFriend=new RegExp(getText("msgFriend"));
err_trace="Events";
if(DEVMODE_EVENTS&&(self==top)){
var allEvents=new Array();
// list of events:
allEvents.push("gameWindowContractNew"); // "create new contract"-frame is loaded
allEvents.push("gameChangedProdMinRackInit"); // prodMinRackInit is saved (rack amount detail configuration, market-frame)
allEvents.push("gameChangedProdMinRackAddon"); // prodMinRackAddon is saved
allEvents.push("gameChangedGut"); // gut is saved (market-frame)
allEvents.push("gameChangedBeobPrice"); // beobPrice is saved (market-frame)
allEvents.push("gameChangedOwnMarketOffers"); // ownMarketOffers is saved
allEvents.push("gameChangedLevelLog"); // levelLog is saved (message-frame)
allEvents.push("gameOtherAccReady"); // another account needs to be worked
allEvents.push("gameSessionEnds"); // the session ends soon (max 120s)
allEvents.push("gameInfoPanelOpen"); // the infoPanel is opened and filled
allEvents.push("gameInfoPanelOptions"); // the infoPanel has the option-tab loaded
allEvents.push("gameUpdateRack"); // the rack has loaded
allEvents.push("gameFieldModified"); // the plants on the opened field are loaded
allEvents.push("gameFieldOpened"); // a field is opened
allEvents.push("gameFieldPlanted"); // a field has been planted
allEvents.push("gameFieldWatered"); // a field has been watered
allEvents.push("gameFieldCropped"); // a field has been cropped
allEvents.push("gameFieldDemolished"); //
allEvents.push("gameFactoryKnittingStarted"); // a knitting factory has been started
allEvents.push("gameFactoryKnittingCropped"); // a knitting factory has been cropped
allEvents.push("gameFactoryKnittingDialogStart"); // a knitting factory has opened a production dialogue
allEvents.push("gameFarmLoaded"); // the farm is loaded
allEvents.push("gameFarmOpened"); // the farm is opened
allEvents.push("gameFarmersmarketCropped"); // the farmersmarket is cropped
allEvents.push("gameFarmersmarketStarted"); // the farmersmarket has been started
allEvents.push("gameFarmersmarketWatered"); // the farmersmarket has been watered
allEvents.push("gameFarmersmarketOpened"); // the farmersmarket is opened
allEvents.push("gameFarmersmarketOpened1"); // the farmersmarket building 1 is opened
allEvents.push("gameFarmersmarketOpened2"); // the farmersmarket building 2 is opened
allEvents.push("gameFarmersmarketSlotOpened"); // the farmersmarket building slot has been opened
allEvents.push("gameFarmersmarketDialogStart"); // the farmersmarket building has opened a dialogue
allEvents.push("gameFarmersmarketDialogCommit"); // the farmersmarket building has requested for commit of a dialogue
allEvents.push("gameFarmiNew"); // a new farmi is appeared
allEvents.push("gameFarmiResponse"); // a farmi is been rejected or accepted.
allEvents.push("gameMegafieldDialogStarted"); // the megafield view has been moved
allEvents.push("gameMegafieldMoved"); // a megafield vehicle has been bought
allEvents.push("gameMegafieldTourStarted"); // a megafield tour has been started
allEvents.push("gameMegafieldPlanted"); // a field has been planted on the megafield
allEvents.push("gameMegafieldVehicleBought"); // a megafield vehicle has been bought
allEvents.push("gameOpenCampaign"); // Forestry Quest is opened
allEvents.push("gameOpenStable"); // a stable is opened
allEvents.push("gameOpenFactory"); // a factory is opened
allEvents.push("gameOpenFactoryOil"); // an oil factory is opened
allEvents.push("gameOpenFactoryKnitting"); // an knitting factory is opened
allEvents.push("gameOpenMarket"); // the market is opened
allEvents.push("gameOpenMegafield"); // the megafield is opened
allEvents.push("gameOpenWindmill"); // the windmill is opened
allEvents.push("gameOpenGlobalCommitBox"); // GlobalCommitBox is opened
allEvents.push("gameOpenGlobalBox"); // GlobalBox is opened
allEvents.push("gameOpenForestry"); // Forestry is opened
allEvents.push("gameFoodworldCropped"); // Foodworld building has been cropped
allEvents.push("gameFoodworldOpened"); // Foodworld is opened
allEvents.push("gameFoodworldOpened1"); // Foodworld building 1 is opened
allEvents.push("gameFoodworldOpened2"); // Foodworld building 2 is opened
allEvents.push("gameFoodworldOpened3"); // Foodworld building 3 is opened
allEvents.push("gameFoodworldOpened4"); // Foodworld building 4 is opened
allEvents.push("gameFoodworldSlotOpened"); // Foodworld slot has been opened
allEvents.push("gameFoodworldStarted"); // Foodworld building has been started
allEvents.push("gameSawmillCropped"); // Sawmill has been cropped
allEvents.push("gameSawmillOpened"); // Sawmill is opened
allEvents.push("gameSawmillStarted"); // Sawmill has been started
allEvents.push("gameSawmillSlotOpened"); // Sawmill-Slot is opened
allEvents.push("gameCarpentryCropped"); // Carpentry has been cropped
allEvents.push("gameCarpentryOpened"); // Carpentry is opened
allEvents.push("gameCarpentryStarted"); // Carpentry has been started
allEvents.push("gameCarpentrySlotOpened"); // Carpentry-Slot is opened
allEvents.push("gameCity1"); // city 1 is opened
allEvents.push("gameCity2"); // city 2 is opened
allEvents.push("gameLotteryOpen"); // lottery frame is opened
allEvents.push("gameLotteryGotDailyLot"); // daily lot is taken
allEvents.push("gameLotteryGotLot"); // lot decision question is shown
allEvents.push("gameLotteryGotPrize"); // got price
allEvents.push("gameLotteryDailyLotAvailable"); //
allEvents.push("gamePoweruprackUpdated"); // Power-up data updated
allEvents.push("gameQuestNewAvailable"); // There is a new quest that can be played
allEvents.push("gameQuestAccepted"); // Quest is accepted
//allEvents.push("gameQuestActive"); // There is an activated quest
allEvents.push("gameQuestFinished"); // Quest is finished
allEvents.push("gameQuestSolvable");
allEvents.push("gameNewDay"); // a new day started
allEvents.push("gameWindmillStarted"); // the windmill has been started
allEvents.push("gameWindmillCropped"); // the windmill has been cropped
allEvents.push("gameWindmillDialogStart"); // the windmill has opened a recipe dialogue
allEvents.push("gameWindmillDialogCommit"); // the windmill has requested for commit of a recipe dialogue
allEvents.push("gameZoneReady"); // a zone is ready. unsafeData.readyZone is set
allEvents.push("gameUpdateFormuladealerOffers"); // the formula-dealer has filled the offers
allEvents.push("gameUpdateFormuladealerRack"); // the formula-dealer has filled the recipes rack
allEvents.push("gamePowerupActivated"); // a power-up has been executed
allEvents.push("gameReallocateBuilding"); // 2 buildings are swapped. unsafeData.reallocateBuildingSet is set [1..18,1..18]
allEvents.push("gameUserlevelUp"); // a new level is reached
allEvents.push("beraterDone"); // script successfully executed
for(var v=0;v
Reload in "+time+"sec.";
}
window.setTimeout(function(){ initScript(--time); },1000);
}else{
location.href=location.href;
}
}
}catch(err){GM_logError("initScript","","",err);}
}
initScript(20);