Register for your free account! | Forgot your password?

You last visited: Today at 07:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Package unlimeted ?

Discussion on Package unlimeted ? within the Seafight forum part of the Browsergames category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2012
Posts: 22
Received Thanks: 1
Package unlimeted ?

Buying limited payment packages :
Code:
function throwError(msg) {
    alert(msg);
    throw new Error(msg);
}

if (typeof(Payment) === "undefined") {
	try {
		var paymentLayer = document.getElementsByClassName('paymentContent')[0];
	} catch (e) {
		var paymentLayer = document.getElementsByTagName('iframe')[0];
	}
	
	if (typeof(paymentLayer) === "undefined") {
		throwError('No payment layer or window detected. Are you logged in and is a payment window visible?');
	}
	
	var confirmNewTab = confirm('Payment frame detected, but it\'s required to be opened as a seperate window.\n\n' + 
		'Click \"OK\" to open the frame in a new tab. You have to copy the script content in the console there again!' + 
		'\n\n(There is a good chance that your popup blocker will block this tab.)');
		
	if (confirmNewTab) {
		window.open(paymentLayer.src, '_blank');
		throw new Error('Continue in the newly opened tab');
	}
	
	throw new Error('Cancelled by user.');
}

if ((Payment.cartElements.length < 1) || (typeof(Payment.cartElements[0]) === "undefined")) {
	// Prepare the cart by removing old undefined entries
	Payment.cartElements = [];
	throwError('The shopping cart is empty! Add an item first (either by using a payment link or choosing something from the left list).');
}

var itemDesc = Payment.cartElements[0].item.textContent;
var targetAmount = prompt('Please enter how often you want to buy the package \"' + itemDesc + '\"');

if ((isNaN(targetAmount)) || (targetAmount == "") || (targetAmount < 1)) {
	throwError('Enter only numbers.');
}

// Make sure the is only one item in the cart
Payment.cartElements = Payment.cartElements.slice(0, 1);

var totalPrice = Payment.cartElements[0].shoppingCartPrice;
for (var i = 1; i < targetAmount; i++) {
	Payment.cartElements.push(Payment.cartElements[0]);
	
	totalPrice += Payment.cartElements.slice(-1)[0].shoppingCartPrice;
}

// For security list the cart elements in the console
var cartStr = 'Shopping cart content:\n';
for (i = 0; i < Payment.cartElements.length; i++) {
	cartStr += (i + 1) + '. ' + Payment.cartElements[i].item.textContent + '\n';
}

try {
	console.info(cartStr);
} catch (e) {}

var confirmBuy = confirm('You are going to buy the package \"' + itemDesc + '\" ' + 
	Payment.cartElements.length + ' times, for a total price of ' + totalPrice + getShoppingCartCurrency() + 
	'.\n\nYou have to pay the price of ' + totalPrice + getShoppingCartCurrency() + ', you don\'t get anything for free!' +
	'\nYOU HAVE BEEN WARNED!\n\nPlease also check the console, your shopping cart content is listed there.\n' + 
	'If everything is correct, press \"OK\"');
	
if (!confirmBuy) {
	// Reset cart to 1 element
	Payment.cartElements = Payment.cartElements.slice(0, 1);
	throwError('Cancelled by user.');
} else {
	Payment.calcSums();
	Payment.requestMethods();
	
	alert('Everything done. Now continue with the payment as normal.');
}
does work ?
sdrakula is offline  
Old 07/27/2014, 00:59   #2
 
elite*gold: 0
Join Date: Feb 2012
Posts: 176
Received Thanks: 50
yes
sandersmith is offline  
Old 07/27/2014, 01:02   #3
 
elite*gold: 0
Join Date: Jul 2012
Posts: 22
Received Thanks: 1
so 30 vodo cannon = 105 TL i can buy 315 tl = 90 voodo cannon ?
sdrakula is offline  
Old 07/27/2014, 02:17   #4
 
elite*gold: 0
Join Date: Jul 2013
Posts: 57
Received Thanks: 1
how can I use?
grandskull is offline  
Old 07/27/2014, 12:51   #5
 
elite*gold: 0
Join Date: Sep 2010
Posts: 122
Received Thanks: 11
it will work but big point will give you only one packeg and cheng the others to pearls
i did try it
the-h- is offline  
Old 07/27/2014, 21:31   #6
 
☛Tʜᴇʜᴀᴄᴋᴇʀ☚'s Avatar
 
elite*gold: 0
Join Date: Jun 2014
Posts: 49
Received Thanks: 2
Quote:
Originally Posted by the-h- View Post
it will work but big point will give you only one packeg and cheng the others to pearls
i did try it
Its works nicely.
Some pack cant be bought multiple times but the 200 eur Voodoo pack kan be bought multiple times
☛Tʜᴇʜᴀᴄᴋᴇʀ☚ is offline  
Old 07/27/2014, 21:33   #7
 
Uther's Avatar
 
elite*gold: 231
Join Date: Dec 2013
Posts: 578
Received Thanks: 746
For Google Chrome Press press SHIFT+CTRL+J Paste the code and press Enter.
Uther is offline  
Thanks
1 User
Old 07/28/2014, 19:09   #8
 
elite*gold: 1
Join Date: Aug 2013
Posts: 45
Received Thanks: 0
Kann mir einer die Links für die großen Kristallpakete schicken?
iPusheer is offline  
Old 07/28/2014, 20:18   #9
 
GOETHE.'s Avatar
 
elite*gold: 0
Join Date: Jun 2014
Posts: 235
Received Thanks: 49
Thanks to creator for the code .
GOETHE. is offline  
Old 07/29/2014, 23:53   #10
 
elite*gold: 0
Join Date: Jul 2013
Posts: 57
Received Thanks: 1
Red face

I did not work and I get the following

Payment.requestMethods();

alert('Everything done. Now continue with the payment as normal.');
SyntaxError: Unexpected end of input
message: "Unexpected end of input"
stack: (...)
get stack: function () { [native code] }
set stack: function () { [native code] }
__proto__: Error
grandskull is offline  
Reply

« CALIPSO | Hitpoints »

Similar Threads Similar Threads
[Buying] [x22]CoD Package oder Valve Package
03/03/2014 - elite*gold Trading - 0 Replies
Hey, ich suche entweder CoD Package oder Valve Package, bietet einfach mal was an, am besten ist Lifetim! Bezahlen würde ich mit e*Gold oder PSC. Wenn die E-mail dabei ist wäre das natürlich klasse!
[Buying] [X22]CoD Package oder Valve Package
03/03/2014 - Trading - 0 Replies
Hey, ich suche entweder CoD Package oder Valve Package, bietet einfach mal was an, am besten ist Lifetim! Bezahlen würde ich mit e*Gold oder PSC. Wenn die E-mail dabei ist wäre das natürlich klasse!
armor package speed package ...
02/20/2012 - Wolfteam - 1 Replies
was bringen die? sind die gut ? welche stats haben die?
Unlimeted Ammo
11/20/2011 - Combat Arms - 3 Replies
Hay Leute, ich sehe zurzeit ganz viele Hacker, die ungefähr 20 heal Packs in 2sec runterwerfen. und Leute die einfach 100von Waffen auf den Boden werfen, Wie machen sie das? ich hab den Gordonsys hack, ich würde den Unlimeted Ammo auch gerne haben. Danke euch!



All times are GMT +1. The time now is 07:40.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.