xbruntix 0 Posted December 5, 2022 Share Posted December 5, 2022 Greetings! This will be my first post on the forum! I'm currently working on an attribute system. I've played around with case USE_ADD_ATTRIBUTE codes but got stuck at one point. The system uses an item "71353" which gives a specific attribute "APPLY_STR" to sword item. The code seems to work but the problem is that everytime I try to use the item, I get random attributes on the sword. Any help would be appreciated! Quote case USE_ADD_ATTRIBUTE3: if (item2->GetAttributeCount() < 4) { if (item->GetVnum() == 71353) { if (item2->GetType() == ITEM_WEAPON) { item2->ClearAttribute(); item2->SetForceAttribute(0, APPLY_STR, 5); //Güç +5 ChatPacket(CHAT_TYPE_INFO, "Başarıyla Eklendi"); } } item->SetCount(item->GetCount() - 1); } else { ChatPacket(CHAT_TYPE_INFO, "Eklenemedi"); } break; item_length.h > defined case USE_ADD_ATTRIBUTE3 Link to comment Share on other sites More sharing options...
TheGamer 10 Posted December 7, 2022 Share Posted December 7, 2022 you have a code that looks like what you want in cmd_gm.cpp ACMD search "do_attr_full_set" it might help you Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now