Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 12: //NPC IDEAL
- {
- stream = fopen("Ideal.csv", "r");
- while ((fscanf(stream, "%[^\n]", line)) != EOF)
- {
- fgetc(stream);
- int Slot1,Slot2,Slot3,Slot4,Slot5,inv;
- sscanf(line, "%d,%d,%d,%d,%d,%d", &Slot1,&Slot2,&Slot3,&Slot4,&Slot5,&inv);
- if((cSlot1 == Slot1) && (cSlot2 == Slot2) && (cSlot3 == Slot3) && (cSlot4 == Slot4) && (cSlot5 == Slot5))
- {
- PInt(SLOT1_ADDR+ addr_bclient) = 0;
- PInt(SLOT2_ADDR+ addr_bclient) = 0;
- PInt(SLOT3_ADDR+ addr_bclient) = 0;
- PInt(SLOT4_ADDR+ addr_bclient) = 0;
- PInt(SLOT5_ADDR+ addr_bclient) = 0;
- SendClientMessage(clientid, "Composto!!");
- DC(clientid);
- fclose(stream);
- return;
- }
- }
- SendChat(npcid, "Traga os 4Sephirots e a Imortalidade");
- fclose(stream);
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement