Advertisement
Kapa3a

Fix add 5 bonusuri

Nov 29th, 2023
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | Source Code | 0 0
  1. 1.Mergem in char_item.cpp si cautam:
  2.  
  3. case USE_ADD_ATTRIBUTE :
  4.  
  5.  
  6. *Inlocuim toata functia cu :
  7.  
  8.                                 case USE_ADD_ATTRIBUTE :
  9.                                 {
  10.                                     if (item2->GetAttributeSetIndex() == -1)
  11.                                     {
  12.                                         ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
  13.                                         return false;
  14.                                     }
  15.                                    
  16.                                     bool canTake = false;
  17.                                     while (item2->GetAttributeCount() < 5)
  18.                                     {
  19.                                         item2->AddAttribute();
  20.                                         canTake = true;
  21.                                     }
  22.                                    
  23.                                     if (canTake)
  24.                                         ChatPacket(CHAT_TYPE_INFO, "Ai adaugat 5 bonusuri cu succes.");
  25.                                 }
  26.                                 break;
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement