Asthard

Untitled

Aug 16th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.78 KB | None | 0 0
  1.                                         if (number(1, 1) <= aiItemAttributeAddPercent[item2->GetAttributeCount()])
  2.                                         {
  3.                                             item2->AddAttribute();
  4.                                             item2->AddAttribute();
  5.                                             item2->AddAttribute();
  6.                                             item2->AddAttribute();
  7.                                             item2->AddAttribute();
  8.                                             //ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ĽÓĽş Ăß°ˇżˇ Ľş°řÇĎż´˝Ŕ´Ď´Ů."));
  9.  
  10.                                             int iAddedIdx = item2->GetAttributeCount() - 1;
  11.                                             LogManager::instance().ItemLog(
  12.                                                     GetPlayerID(),
  13.                                                     item2->GetAttributeType(iAddedIdx),
  14.                                                     item2->GetAttributeValue(iAddedIdx),
  15.                                                     item->GetID(),
  16.                                                     "ADD_ATTRIBUTE_SUCCESS",
  17.                                                     buf,
  18.                                                     GetDesc()->GetHostName(),
  19.                                                     item->GetOriginalVnum());
  20.                                         }
Advertisement
Add Comment
Please, Sign In to add comment