Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 4.16 KB | None | 0 0
  1. if(richness == 1)
  2.     {
  3.         detail = {TEXT("Starter Pack"),5.48f,IAPManager::getInstance()->getBundlePacketId(richness-1)};
  4.         detail.type = 1;
  5.         detail.items.push_back({"head",0,true,90000,250000});
  6.         detail.items.push_back({"diamond",50,false});
  7.         detail.items.push_back({"combined_ticket",1,false});
  8.         detail.items.push_back({"bundlepower",5,false});
  9.        
  10.        
  11.     }
  12.     else if(richness == 2)
  13.     {
  14.         detail = {TEXT("Special Offer For You"),5.28f,IAPManager::getInstance()->getBundlePacketId(richness-1)};
  15.        
  16.         type = (type%6) + 1 ;
  17.         detail.type = type;
  18.        
  19.         if(type == 1)
  20.         {
  21.             detail.items.push_back({"mask",0,true,300000,1000000});
  22.             detail.items.push_back({"diamond",50,false});
  23.             detail.items.push_back({"gold",100000,false});
  24.             detail.items.push_back({"x2_supporter",1,false});
  25.         }
  26.         if(type == 2)
  27.         {
  28.             detail.discount = 5.32f;
  29.             detail.items.push_back({"head",0,true,300000,1000000});
  30.             detail.items.push_back({"gozluk",0,true,300000,1000000});
  31.             detail.items.push_back({"sapka",0,true,200000,800000});
  32.             detail.items.push_back({"diamond",50,false});
  33.         }
  34.         if(type == 3)
  35.         {
  36.             detail.discount = 6.12f;
  37.             detail.items.push_back({"stadiumNameTag",1,false});
  38.             detail.items.push_back({"mask",0,true,300000,1000000});
  39.             detail.items.push_back({"x2_gold",1,false});
  40.             detail.items.push_back({"gold",100000,false});
  41.         }
  42.         if(type == 4)
  43.         {
  44.             detail.discount = 8.97f;
  45.             detail.items.push_back({"x2_supporter",1,false});
  46.             detail.items.push_back({"stadiumJersey",1,false});
  47.             detail.items.push_back({"stadiumFlag",1,false});
  48.             detail.items.push_back({"stadiumNameTag",1,false});
  49.         }
  50.         if(type == 5)
  51.         {
  52.             detail.discount = 9.59f;
  53.             detail.items.push_back({"combined_ticket",1,false});
  54.             detail.items.push_back({"x2_gold",1,false});
  55.             detail.items.push_back({"diamond",50,false});
  56.             detail.items.push_back({"head",0,true,300000,1000000});
  57.         }
  58.         if(type == 6)
  59.         {
  60.             detail.discount =15.3f;
  61.             detail.items.push_back({"mask",0,true,500000,2000000});
  62.             detail.items.push_back({"krampon",50,false});
  63.             detail.items.push_back({"stadiumBundle",1,false});
  64.             detail.items.push_back({"diamond",50,false});
  65.         }
  66.        
  67.     }
  68.     else if(richness == 3)
  69.     {
  70.         type =  1 ;
  71.         detail = {TEXT("Special Offer For You"),3.19f,IAPManager::getInstance()->getBundlePacketId(richness-1)};
  72.         detail.type = type;
  73.        
  74.         if(type == 1)
  75.         {
  76.             detail.items.push_back({"gold",500000,false});
  77.             detail.items.push_back({"diamond",100,false});
  78.             detail.items.push_back({"x2_gold",1,false});
  79.             detail.items.push_back({"mask",0,true,1000000,8000000});
  80.         }
  81.        
  82.     }
  83.     else if(richness == 4)
  84.     {
  85.         type =  1 ;
  86.         detail = {TEXT("Special Offer For You"),2.01f,IAPManager::getInstance()->getBundlePacketId(richness-1)};
  87.         detail.type = type;
  88.        
  89.         if(type == 1)
  90.         {
  91.             detail.items.push_back({"mask",0,true,10000000,20000000});
  92.             detail.items.push_back({"x2_gold",1,false});
  93.             detail.items.push_back({"stadiumBundle",1,false});
  94.             detail.items.push_back({"diamond",500,false});
  95.         }
  96.        
  97.        
  98.     }
  99.     else if(richness == 5)
  100.     {
  101.         type =  1 ;
  102.        
  103.         detail = {TEXT("Special Offer For You"),2.0f,IAPManager::getInstance()->getBundlePacketId(richness-1)};
  104.         detail.type = type;
  105.        
  106.         if(type == 1)
  107.         {
  108.             detail.items.push_back({"kombin",0,true,30000000,1000000000});
  109.             detail.items.push_back({"diamond",2500,false});
  110.             detail.items.push_back({"x2_gold",1,false});
  111.             detail.items.push_back({"stadiumBundle",1,false});
  112.         }
  113.        
  114.        
  115.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement