Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         case 12: //NPC IDEAL
  2.         {
  3.             stream = fopen("Ideal.csv", "r");
  4.             while ((fscanf(stream, "%[^\n]", line)) != EOF)
  5.             {
  6.                 fgetc(stream);
  7.                 int Slot1,Slot2,Slot3,Slot4,Slot5,inv;
  8.                 sscanf(line, "%d,%d,%d,%d,%d,%d", &Slot1,&Slot2,&Slot3,&Slot4,&Slot5,&inv);
  9.                 if((cSlot1 == Slot1) && (cSlot2 == Slot2) && (cSlot3 == Slot3) && (cSlot4 == Slot4) && (cSlot5 == Slot5))
  10.                {
  11.                    PInt(SLOT1_ADDR+ addr_bclient) = 0;
  12.                     PInt(SLOT2_ADDR+ addr_bclient) = 0;
  13.                     PInt(SLOT3_ADDR+ addr_bclient) = 0;
  14.                     PInt(SLOT4_ADDR+ addr_bclient) = 0;
  15.                     PInt(SLOT5_ADDR+ addr_bclient) = 0;
  16.                     SendClientMessage(clientid, "Composto!!");
  17.                     DC(clientid);
  18.                     fclose(stream);
  19.                     return;
  20.                 }
  21.             }
  22.             SendChat(npcid, "Traga os 4Sephirots e a Imortalidade");
  23.             fclose(stream);
  24.             return;
  25.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement