YARDIM

Discussion in 'Kullanıcı Köşesi' started by ~GASEMON~, Mar 21, 2014.

Dear forum reader,

if you’d like to actively participate on the forum by joining discussions or starting your own threads or topics, please log into the game first. If you do not have a game account, you will need to register for one. We look forward to your next visit! CLICK HERE
Thread Status:
Not open for further replies.
  1. ~GASEMON~

    ~GASEMON~ User

    donama depo ya filan tıkladımmı bu yazı cıkıyor bi bakarmısınız

    '+"\n"; // Build a nice Table from RGB-Colors for(var r=0; r<257; r+=64){ strTable += "\n"; for(var g=0; g<257; g+=64) for(var b=0; b<257; b+=64) strTable += '
    <\/td>'+"\n"; strTable += "<\/tr>\n"; } strTable += "<\/table>\n"; $(LayerID).html(strTable); } $(LayerID).fadeIn('slow'); }else{ this.TextRange = false; $(LayerID).fadeOut('slow'); } }, initFontSizePicker: function(LayerID){ if(!$(LayerID).is(':visible')){ if (document.selection){ //Fuckin asshole IE - Hack this.TextRange = document.selection.createRange().duplicate(); } $(LayerID).fadeIn('slow'); }else{ this.TextRange = false; $(LayerID).fadeOut('slow'); } }, pickFontSize: function(fontSize){ RichTextEditor.addTags('[size:' + parseInt(fontSize) + ']','[/size]'); }, pickBgColor: function(elem){ RichTextEditor.addTags('[color:' + $(elem).css('background-color') + ']','[/color]'); }, addTags: function(Tag,fTag){ var obj = $(this.TextEditorID); obj.focus(); if (document.selection){ //Fuckin asshole IE - Hack var completeText= obj.val(); if(this.TextRange == false) this.TextRange = document.selection.createRange().duplicate(); var rangeText = this.TextRange.text; document.selection.createRange().text = Tag + rangeText + fTag; document.selection.createRange().select(); obj.focus(); } else if (typeof(obj) != "undefined"){ //Other var longueur = parseInt(obj.val().length); var selStart = obj[0].selectionStart; var selEnd = obj[0].selectionEnd; obj.val(obj.val().substring(0,selStart) + Tag + obj.val().substring(selStart,selEnd) + fTag + obj.val().substring(selEnd,longueur)); obj.focus(); } else obj.val(obj.val() + Tag + fTag); obj.focus(); this.TextRange = false; } }; /*********************************************************************** * Seafight JS Framework * Version 0.5 openBeta ***********************************************************************/ var Merchant = { saveOffsetAndSubmit : function(formID, contentWrapperID, discard) { if(window.confirmMessage){ if(!System.confirm(confirmMessage) === true){ return false; } } //if user wants to change manually the amount we set as max, murder script here. if(!FigureBox.confirmChanges(formID)){ return false; } var contentWrapperBar = ''; contentWrapperBar = contentWrapperID + '_flexcroll_vscrollerbar'; contentWrapperID += '_flexcroll_contentwrapper'; //check if formID and contentWrapperID exists if(($('#' + formID).length > 0) && ($('#' + contentWrapperID).length > 0)){ $('.flexcroll').each(function(i, domEl) { if(domEl.fleXcroll){ var flexPositionV = 0; var flexPosition = domEl.fleXdata.scrollPosition; if(typeof(flexPosition[1][0])=='number'){ var flexPositionV = flexPosition[1][0]; } Index.addInputElement(formID, 'hidden', flexPositionV, 'flexPositionV', 'flexPositionV', 'flexPositionV', true); } }); } if(discard == 'discard'){ $('#' + formID + ' .merchant_todo').val('discard'); } $('#' + formID).submit(); }, checkDetailsFormAndSubmit: function(formID) { if(FigureBox.confirmChanges(formID)){ $('#' + formID).submit(); } }, submitWrapper: function(formID) { if($('#' + formID)[0]){ $('#' + formID).submit(); } }, closeDetails : function(detailID) { Lightbox.fadeOutLayer('sfcontent_merchant_detail_item_'+detailID); }, confirmShipBuy: function(callBack){ Index.getMessageBox('confirm', 2, callBack); Lightbox.enableSystemAjaxLayer(); Lightbox.openLayer('sfcontent_System_Confirm_Layer'); }, switchLayer : function(mode) { if(mode == 'dispose'){ confirmMessage = confirmMessageLocal; $('#loadDispose').addClass('active'); $('#loadDispose').removeClass('inactive'); $('#loadBuy').addClass('inactive'); $('#loadBuy').removeClass('active'); $('.merchant_dispose').show(); $('.merchant_buy').hide(); //Block loading DetailLayer $('.js_clickBlocker').show(); //Hide items which user has not in stock $('.js_MerchantItem').each(function() { if (!$(this).hasClass('js_inStock')){ $(this).hide(); } }); //Show items which are crafted $('.js_MerchantItem').each(function() { if ($(this).hasClass('js_isCraft')){ $(this).show(); } }); //Show items which are notPurchasable $('.js_MerchantItem').each(function() { if ($(this).hasClass('js_noPurchase') && !$(this).hasClass('js_noDispose') ){ $(this).show(); } }); $('.js_MerchantHR').each(function() { if ($(this).hasClass('js_noPurchase')){ $(this).show(); } }); //Hide Headline if there r no items $('.sfcontent_merchant_list_hr_default').each(function() { var aSplitter = $(this).attr("class").split(' '); if(Util.isArray(aSplitter) && aSplitter[1]){ var sSplitter = aSplitter[1].split('_')[1]; var iFoundItems = 0; var iHiddenItems = 0; $('.ENTRY_'+ sSplitter).each(function() { iFoundItems = iFoundItems + 1; if($(this).css('display') == 'none') iHiddenItems = iHiddenItems + 1; }); if(iFoundItems == iHiddenItems) $(this).css('display','none'); } }); Index.tryPositionFlexContent(0); fleXenv.updateScrollBars(); $('.merchant_todo').val('dispose'); }else if(mode == 'buy'){ confirmMessage = null; $('#loadBuy').addClass('active'); $('#loadBuy').removeClass('inactive'); $('#loadDispose').addClass('inactive'); $('#loadDispose').removeClass('active'); $('.merchant_buy').show(); $('.merchant_dispose').hide(); //Enable loading DetailLayer $('.js_clickBlocker').hide(); //Show all items $('.js_MerchantItem').show(); // Show all Headlines $('.js_MerchantHR').show(); //Hide items which are crafted $('.js_MerchantItem').each(function() { if ($(this).hasClass('js_isCraft')){ $(this).hide(); } }); //Show items which are notPurchasable $('.js_MerchantItem').each(function() { if ($(this).hasClass('js_noPurchase')){ $(this).hide(); } }); $('.js_MerchantHR').each(function() { if ($(this).hasClass('js_noPurchase')){ $(this).hide(); } }); /*//Show Headline if there r some items $('.sfcontent_merchant_list_hr_default').each(function() { var aSplitter = $(this).attr("class").split(' '); if(Util.isArray(aSplitter) && aSplitter[1]){ var sSplitter = aSplitter[1].split('_')[1]; var bBlockItem = false; $('.ENTRY_' + sSplitter).each(function() { if($(this).css('display') == 'block') bBlockItem = true; }); if(bBlockItem) $(this).css('display','block'); } });*/ Index.tryPositionFlexContent(0); fleXenv.updateScrollBars(); $('.merchant_todo').val('hire'); } }, showBlackMarketList: function(type) { if(type == 'all'){ $('.list_hr_default').show(); $('.contentItem').show(); }else{ console.log(type); $('.list_hr_default').hide(); $('.contentItem').hide(); $('.displayGroup_'+type).show(); } Index.tryPositionFlexContent(0); fleXenv.updateScrollBars(); CSBfleXcroll('sfcontent_merchant_list_flexcroll'); }, updateMerchantList : function(newGroup) { console.log(newGroup); if(newGroup == 'all'){ $('.sfcontent_merchant_list_hr_default').show(); $('.sfcontent_merchant_list_flexcroll_item').show(); }else{ $('.sfcontent_merchant_list_hr_default').hide(); $('.sfcontent_merchant_list_flexcroll_item').hide(); $('.sfcontent_merchant_'+newGroup).show(); } //- check if this input exists if(typeof($('input:hidden[name=defaultListItem]')) != "undefined") { //- set the new post var! :) $('input:hidden[name=defaultListItem]').val(newGroup); } //Hide Headline if there r no items $('.sfcontent_merchant_list_hr_default').each(function() { var aSplitter = $(this).attr("class").split(' '); if(Util.isArray(aSplitter) && aSplitter[1]){ var sSplitter = aSplitter[1].split('_')[1]; var iFoundItems = 0; var iHiddenItems = 0; $('.ENTRY_'+ sSplitter).each(function() { iFoundItems = iFoundItems + 1; if($(this).css('display') == 'none') iHiddenItems = iHiddenItems + 1; }); if(iFoundItems == iHiddenItems) $(this).css('display','none'); } }); Index.tryPositionFlexContent(0); fleXenv.updateScrollBars(); CSBfleXcroll('sfcontent_merchant_list_flexcroll'); }, loadDetails : function(showID) { Lightbox.showShadow(); $('.sfcontent_merchant_detail_item').hide(); $('#sfcontent_merchant_detail_item_'+showID).fadeIn(); CSBfleXcroll('js_merchant_detail_item_'+showID); }, loadBuy : function() { $('#loadBuy').addClass('active'); $('#loadBuy').removeClass('inactive'); $('#loadDispose').addClass('inactive'); $('#loadDispose').removeClass('active'); $('.merchant_buy').show(); $('.merchant_dispose').hide(); $('.merchant_todo').val('purchase'); }, loadDispose : function() { $('#loadDispose').addClass('active'); $('#loadDispose').removeClass('inactive'); $('#loadBuy').addClass('inactive'); $('#loadBuy').removeClass('active'); $('.merchant_dispose').show(); $('.merchant_buy').hide(); $('.merchant_todo').val('dispose'); }, calcMaterialAufwand : function(itemAmount,config) { var needItem0 = Math.round((itemAmount*config.requiredItems[0].amount)); var needItem1 = Math.round((itemAmount*config.requiredItems[1].amount)); var needItem2 = Math.round((itemAmount*config.requiredItems[2].amount)); // var needItem0 = parseInt((itemAmount*config.requiredItems[0].amount)); // var needItem1 = parseInt((itemAmount*config.requiredItems[1].amount)); // var needItem2 = parseInt((itemAmount*config.requiredItems[2].amount)); var userAmount0 = config.requiredItems[0].userAmount; var userAmount1 = config.requiredItems[1].userAmount; var userAmount2 = config.requiredItems[2].userAmount; $('#item0 .whiteNormal').html(needItem0); $('#item1 .whiteNormal').html(needItem1); $('#item2 .whiteNormal').html(needItem2); if(needItem0 > userAmount0){ $('#item0 .whiteNormal').css('color', 'red'); }else{ $('#item0 .whiteNormal').css('color', '#FFFFFF'); } if(needItem1 > userAmount1){ $('#item1 .whiteNormal').css('color', 'red'); }else{ $('#item1 .whiteNormal').css('color', '#FFFFFF'); } if(needItem2 > userAmount2){ $('#item2 .whiteNormal').css('color', 'red'); }else{ $('#item2 .whiteNormal').css('color', '#FFFFFF'); } return true; }, updateBlacksmith: function(configID) { var config = eval("Blacksmith.allProducibleItems.c"+configID); var attribute = ""; for(var x=0;config.itemAttributes[x] != undefined; x++) { attribute+= config.itemAttributes[x].label+" "+config.itemAttributes[x].value+" "; } $("#sfcontent_merchant_Blacksmith_itemGFX").css("background-image","url('/img/global/content/merchant/"+config.itemType+"/gold/"+config.itemId+".png')"); $("#sfcontent_merchant_Blacksmith_item").text(config.userAmount); $(".header_Text").text(config.itemName); $(".header_Desc").text(config.itemDescription); $(".header_Attributes").html(attribute); $("#stockItem0 .userAmount").text(config.requiredItems[0].userAmount); $("#stockItem1 .userAmount").text(config.requiredItems[1].userAmount); $("#stockItem2 .userAmount").text(config.requiredItems[2].userAmount); $("#stockItem0").css("background-image","url('/img/global/content/merchant/"+config.requiredItems[0].itemType+"/small/"+config.requiredItems[0].itemId+".jpg')"); $("#stockItem1").css("background-image","url('/img/global/content/merchant/"+config.requiredItems[1].itemType+"/small/"+config.requiredItems[1].itemId+".jpg')"); $("#stockItem2").css("background-image","url('/img/global/content/merchant/"+config.requiredItems[2].itemType+"/small/"+config.requiredItems[2].itemId+".jpg')"); $("#item0 .whiteNormal").text(config.requiredItems[0].amount); $("#item1 .whiteNormal").text(config.requiredItems[1].amount); $("#item2 .whiteNormal").text(config.requiredItems[2].amount); $("#item0 .imageItem").attr("src","/img/global/content/merchant/"+config.requiredItems[0].itemType+"/medium/"+config.requiredItems[0].itemId+".jpg"); $("#item1 .imageItem").attr("src","/img/global/content/merchant/"+config.requiredItems[1].itemType+"/medium/"+config.requiredItems[1].itemId+".jpg"); $("#item2 .imageItem").attr("src","/img/global/content/merchant/"+config.requiredItems[2].itemType+"/medium/"+config.requiredItems[2].itemId+".jpg"); $("#BlacksmithConfig").val(configID); $("#Amount_merchantAmount").val(config.bulkSize); $("#Amount_realspace").val(config.initAmount); $("#Amount_workspace").val(config.initAmount); if(config.requiredItems[0].isElite == 1) { $("#elite_0_medium").css("display","block"); $("#elite_0_small").css("display","block"); } else { $("#elite_0_medium").css("display","none"); $("#elite_0_small").css("display","none"); } if(config.requiredItems[1].isElite == 1) { $("#elite_1_medium").css("display","block"); $("#elite_1_small").css("display","block"); } else { $("#elite_1_medium").css("display","none"); $("#elite_1_small").css("display","none"); } if(config.requiredItems[2].isElite == 1) { $("#elite_2_medium").css("display","block"); $("#elite_2_small").css("display","block"); } else { $("#elite_2_medium").css("display","none"); $("#elite_2_small").css("display","none"); } Merchant.calcMaterialAufwand(config.initAmount, config); Merchant.initBlacksmith(); }, //starts observers and hacks for the js which is needed in the blacksmith-corner initBlacksmith : function() { $('.sfcontent_input #Amount_workspace').removeAttr("onblur"); var blacksmithConfigId = $('#BlacksmithConfig').val(); var config = eval("Blacksmith.allProducibleItems.c"+blacksmithConfigId); //observers for plus and minus pieces + blur in inputBox (---> WRAPPER <---) $('.sfcontent_control .sfcontent_buttonplus').click( function() { if(config.bulkSize > 1) { //Add 9 (so there are always steps with an amount of 10 var plusval = parseInt($('.sfcontent_input .humanFigureInput').val()) + (config.bulkSize -1); plusval = Util.roundNumberByStep(plusval,config.bulkSize); $('.sfcontent_mediumfigure_frame #Amount_realspace').val(plusval); $('.sfcontent_input .humanFigureInput').val(plusval); } Merchant.calcMaterialAufwand($('.sfcontent_input .humanFigureInput').val(),config); }); $('.sfcontent_control .sfcontent_buttonminus').click( function() { if(config.bulkSize > 1) { //Substract 9 (so there are always steps with an amount of 10 var minusval = parseInt($('.sfcontent_input .humanFigureInput').val()) - (config.bulkSize -1); if(minusval < 1){ minusval = 0; } minusval = Util.roundNumberByStep(minusval,config.bulkSize); $('.sfcontent_mediumfigure_frame #Amount_realspace').val(minusval); $('.sfcontent_input .humanFigureInput').val(minusval); } Merchant.calcMaterialAufwand($('.sfcontent_input .humanFigureInput').val(),config); }); $('.sfcontent_input #Amount_workspace').blur( function() { var humanVal = $('.sfcontent_input .humanFigureInput').val(); if(humanVal < 0){ humanVal = 0; } humanVal = Util.roundNumberByStep(humanVal,config.bulkSize); $('.sfcontent_mediumfigure_frame #Amount_realspace').val(humanVal); $('.sfcontent_input .humanFigureInput').val(humanVal); Merchant.calcMaterialAufwand(humanVal,config); }); }, countdown : function(destinationid, exyear, exmonth, exday, exhour, exminute, exsecond, exformat) { var endDate = new Date(exyear,exmonth-1,exday,exhour,exminute,exsecond); var startDate = new Date(); // Aktuelles Datum // Countdown berechnen und anzeigen, bis Ziel-Datum erreicht ist if(startDate < endDate) { var cminutes=0, cminutes=0, cminutes=0; // exhourn chours = Math.floor((endDate-startDate)/(60*60*1000)); startDate.setTime(startDate.getTime()+chours*60*60*1000); // exminuten cminutes = Math.floor((endDate-startDate)/(60*1000)); startDate.setTime(startDate.getTime()+cminutes*60*1000); // exsecondn cseconds = Math.floor((endDate-startDate)/1000); if(cseconds<10){ cseconds = "0" + cseconds; } var timerString = exformat; // Parse Hours timerString = timerString.replace('H', chours); // Parse Minutes timerString = timerString.replace('i', cminutes); // Parse Seconds timerString = timerString.replace('s', cseconds); $('#'+destinationid).html(timerString); } else { // Anderenfalls alles auf Null setzen window.clearInterval(time_interval); finalCountdown(); } } }; $(document).ready( function() { $("#sfheader_serverSelect").click(function(){System.loadServerSelectionLayer();}); if (SLAYER) { SLAYER.init({ gameId : 14, instanceId : 634, gameTitle : 'Seafight', affiliateId : 824, userId : 229145477, userKeyId : 41850878, facebook : { appId : 355206115967, language : 'tr' }, google: { language : 'tr' } }); } } );
     
  2. Bigpatron

    Bigpatron Team Leader Team Seafight

    Flash player ve tarayıcınızın geçmişini siliniz. Farklı tarayıcılarda deneyiniz sorun değişmez ise supporta yazınız
     
    Hastasıyızzz_DeDe likes this.
Thread Status:
Not open for further replies.