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]);
// 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.');
}
Edit: and tell us if it work
Probably don't work, as Bigpoint fixed it and you 'll get pearls instead.
Probably don't work, as Bigpoint fixed it and you 'll get pearls instead.
Hmm.
Quote:
Originally Posted by Sooccer
well, with the little one its working..
And it work's for 90% of the payment pack's bp offer's. I can make a thread about it someday when I have time to post all pack's I have personally tested.
And it work's for 90% of the payment pack's bp offer's. I can make a thread about it someday when I have time to post all pack's I have personally tested.
Well, that's pretty nice. As I didn't know this. As it didn't work anymore for the 2, 5 and 10 euro packages I thought.
IOS7 Official Thread 09/24/2013 - Smartphones - 29 Replies Wie findet ihr es? Hier kann über das neue ios 7 diskutiert werden also viel spass ;).
Official +1 Thread! 02/18/2010 - Mabinogi - 71 Replies So, I decided I wanted to make a thread filled with just "+1" to see how long it lasts.
GOGOGOGOGOGO.
+1
The official thread. 08/01/2009 - EO PServer Hosting - 54 Replies Hey guys. This is the official thread. In this official thread there is everything you need to run or commands or what so ever. I did this to tidy the forum out. Also to stop Unless threads. By Jeffrob
Official Threads
Stickys
Private server List - credits spy_dude2000
http://www.elitepvpers.com/forum/eo-pserver-hostin g/184314-guide-setting-up-pally-db.html - credits thegamer1907
[Official Thread] HaydzCO (HCO) 07/11/2009 - CO2 Private Server - 46 Replies HaydzCo - Recreating HybridCo
-HaydzCo is a new private server of Conquer Online based on Hybrids old server HybridCo. It's a pure PVP server with neat commands.
-The purpose of this server is to succeed where TQ Digital failed, keeping our gamers happy, content with the server.
-FEATURES-
Complete Login.
The Official thread. 10/04/2008 - EO Exploits, Hacks, Tools & Macros - 6 Replies Hey this is the official thread for EO Exploits, Hacks, Tools & Macros by Jeffrob This is to make the forum tidy.
Official Thread
Itemtype Data Editor - credits rookiehacker
Eudemons Online Hack Speed Zoom Etc - credits *M*
Eudemons Online Mage Macro - credits MegaDragon