Premium Speachless 769 Posted January 21, 2015 Premium Share Posted January 21, 2015 What make this command : /costume . a player said he can make what costume want with bonuses . This command can be used by players. Link to comment Share on other sites More sharing options...
Premium Galet 515 Posted January 21, 2015 Premium Share Posted January 21, 2015 Judge by yourself. ^^ ACMD(do_costume) { char buf[512]; const size_t bufferSize = sizeof(buf); char arg1[256]; one_argument(argument, arg1, sizeof(arg1)); CItem* pBody = ch->GetWear(WEAR_COSTUME_BODY); CItem* pHair = ch->GetWear(WEAR_COSTUME_HAIR); ch->ChatPacket(CHAT_TYPE_INFO, "COSTUME status:"); if (pHair) { const char* itemName = pHair->GetName(); ch->ChatPacket(CHAT_TYPE_INFO, " HAIR : %s", itemName); for (int i = 0; i < pHair->GetAttributeCount(); ++i) { const TPlayerItemAttribute& attr = pHair->GetAttribute(i); if (0 < attr.bType) { snprintf(buf, bufferSize, FN_point_string(attr.bType), attr.sValue); ch->ChatPacket(CHAT_TYPE_INFO, " %s", buf); } } if (pHair->IsEquipped() && arg1[0] == 'h') ch->UnequipItem(pHair); } if (pBody) { const char* itemName = pBody->GetName(); ch->ChatPacket(CHAT_TYPE_INFO, " BODY : %s", itemName); if (pBody->IsEquipped() && arg1[0] == 'b') ch->UnequipItem(pBody); } } Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted January 21, 2015 Share Posted January 21, 2015 /cotume show u the costumes equiped /costume b , unequip the armor costume /costume h, unequip the hair costume. https://m2admin.net/ Link to comment Share on other sites More sharing options...
Premium Speachless 769 Posted January 22, 2015 Author Premium Share Posted January 22, 2015 Thanks. 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