Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(p->ClientId < 1000 && p->MobId < 1000)
- {
- static const int mat_CapeBlue[] = {736,1766,1767,1768,543,545,734,3191,3194,3197};
- static const int mat_CapeRed[] = {737,1769,1770,1771,544,546,735,3192,3195,3198};
- short toDo, toDo2;
- for(int i = 0; i < 10; i++)
- {
- if(player->Equip[15].Index == mat_CapeBlue[i]) toDo = 1;
- else if(player->Equip[15].Index == mat_CapeRed[i]) toDo = 2;
- else if(dead->Equip[15].Index == mat_CapeBlue[i]) toDo2 = 1;
- else if(dead->Equip[15].Index == mat_CapeRed[i]) toDo2 = 2;
- }
- if(toDo + toDo2 == 3)
- {
- player->QuestInfo += 10;
- SendClientMsg(p->ClientId, "Fame + 10");
- }
- else
- {
- if(player->QuestInfo >= 5) player->QuestInfo -= 5;
- else player->QuestInfo == 0;
- SendClientMsg(p->ClientId, "Fame - 5 (Friendly Fire)");
- }
- }
Add Comment
Please, Sign In to add comment