Jump to content

Chance to add bonus


Recommended Posts

Hi. I tried like that but it doesn't work

if (item2->AddRareAttribute() == true)
									{
										if (number(1, 100) <= 80)
										{
											ChatPacket(CHAT_TYPE_INFO, LC_TEXT("성공적으로 속성이 추가 되었습니다"));

											int iAddedIdx = item2->GetRareAttrCount() + 4;
											char buf[21];
											snprintf(buf, sizeof(buf), "%u", item2->GetID());

											item->SetCount(item->GetCount() - 1);
										}
										else
										{
											ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Fail"));
										}
									}
									else
									{
										ChatPacket(CHAT_TYPE_INFO, LC_TEXT("더 이상 이 아이템으로 속성을 추가할 수 없습니다"));
									}

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.