Guest User

Untitled

a guest
Oct 17th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. void CompIdeal(int clientid, int npcid)
  2. {
  3. MOB *player = (MOB*)GetMobFromIndex(clientid);
  4. int itenslot1 = GetFirstSlotSADD(clientid,5334,64);
  5. int itenslot2 = GetFirstSlotSADD(clientid,5335,64);
  6. int itenslot3 = GetFirstSlotSADD(clientid,5336,64);
  7. int itenslot4 = GetFirstSlotSADD(clientid,5337,64);
  8. if(player->Equip[10].Index == 1742)
  9. {
  10. if(player->Equip[11].Index >= 1760 && player->Equip[11].Index <= 1763)
  11. {
  12. if(itenslot1 != -1 && itenslot2 != -1 && itenslot3 != -1 && itenslot4 != -1)
  13. {
  14. player->Inventory[itenslot1].Index = 5338;
  15. player->Inventory[itenslot2].Index = 0;
  16. player->Inventory[itenslot3].Index = 0;
  17. player->Inventory[itenslot4].Index = 0;
  18. player->Equip[11].Index = 0;
  19. player->Equip[10].Index = 0;
  20. SendALL(clientid);
  21. SendItens(clientid,10);
  22. SendItens(clientid,11);
  23. SendSay(npcid,"Que os Deuses iluminem você.");
  24. return;
  25. }
  26. else
  27. {
  28. SendSay(npcid,"Você precisa das quatro Pedras Secretas.");
  29. }
  30. }
  31. else
  32. {
  33. SendSay(npcid,"Você não possui sephirot.");
  34. }
  35. }
  36. else
  37. {
  38. SendSay(npcid,"Você não possui a Pedra da Imortalidade.");
  39. }
  40. return;
  41. }
Add Comment
Please, Sign In to add comment