Jump to content

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
https://metin2.dev/topic/16885-chance-to-add-bonus/
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.