daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Jan 11th, 2017 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //input 10 items
  2. if(Quest >> 16 == 13337)
  3.         {
  4.     forward = false;
  5.     MainServer::CPlayer::RemoveItem(pPlayer,9,4644,10);
  6.     g_MoneyCollect += 10;
  7.     if(g_MoneyCollect >= 2000)
  8.     {
  9.         Buffs *b = new Buffs;
  10.         //call your event
  11.        
  12.         b->BuffCPlayer();
  13.         std::cout << g_MoneyCollect << std::endl;
  14.         //g_MoneyCollect = 0;
  15.          // set back to 0 to start again.
  16.     }
  17.  
  18.    
  19. } //quest 2
  20.     //input 50 items
  21.         if(Quest >> 16 == 13338)
  22.                 {
  23.     forward = false;
  24.     MainServer::CPlayer::RemoveItem(pPlayer,9,4644,50);
  25.     g_MoneyCollect += 50;
  26.     if(g_MoneyCollect >= 2000)
  27.     {
  28.         Buffs *b = new Buffs;
  29.         //call your event
  30.        
  31.         b->BuffCPlayer();
  32.         std::cout << g_MoneyCollect << std::endl;
  33.         //g_MoneyCollect = 0;
  34.          // set back to 0 to start again.
  35.     }
  36.  
  37.    
  38. }
  39. //input 100 items
  40.                 if(Quest >> 16 == 13339)
  41.                 {
  42.     forward = false;
  43.     MainServer::CPlayer::RemoveItem(pPlayer,9,4644,100);
  44.     g_MoneyCollect += 100;
  45.     if(g_MoneyCollect >= 2000)
  46.     {
  47.         Buffs *b = new Buffs;
  48.         //call your event
  49.        
  50.         b->BuffCPlayer();
  51.         std::cout << g_MoneyCollect << std::endl;
  52.         //g_MoneyCollect = 0;
  53.          // set back to 0 to start again.
  54.     }
  55.  
  56.    
  57. }
  58. //input 1000 items
  59.                         if(Quest >> 16 == 13340)
  60.                 {
  61.     forward = false;
  62.     MainServer::CPlayer::RemoveItem(pPlayer,9,4644,1000);
  63.     g_MoneyCollect += 1000;
  64.     if(g_MoneyCollect >= 2000)
  65.     {
  66.         Buffs *b = new Buffs;
  67.         //call your event
  68.        
  69.         b->BuffCPlayer();
  70.         std::cout << g_MoneyCollect << std::endl;
  71.         //g_MoneyCollect = 0;
  72.          // set back to 0 to start again.
  73.     }
  74.  
  75.    
  76. }
RAW Paste Data
Top