Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.91 KB | None | 0 0
  1. void Elmo15(int clientid)
  2. {
  3.     MOB *player = (MOB*)GetMobFromIndex(clientid);
  4.     int itenslot = GetFirstSlot(clientid,3151,0,0,0,0,0,0,64); 
  5.     if(player->Equip[1].Index && player->Equip[1].EF1 == 43 && player->Equip[1].EFV1 == 0 && player->Equip[1].EFV1 <= 8)
  6.     {
  7.         SendClientMsg(clientid,"Somente itens +9 podem ser Refinados.");
  8.         SendALL(clientid);
  9.         return;
  10.  
  11.     }
  12.     if(player->Equip[1].Index && player->Equip[1].EF1 == 43 && player->Equip[1].EFV1 == 9)
  13.     {
  14.  
  15.                     SendClientMsg(clientid, "Seu Elmo foi Refinada para +15");
  16.                     player->Equip[1].EF1 = 43;
  17.                     player->Equip[1].EFV1 = 250;
  18.                     player->Inventory[itenslot].Index = 0;
  19.                     SaveChar(1,clientid);
  20.                     SendEffect(3,14,clientid);
  21.                     SendItens(clientid,1);
  22.                     SendEquip(clientid);
  23.                     SendALL(clientid);
  24.                     return;
  25.                 }
  26.                 else
  27.                 {
  28.                     SendClientMsg(clientid,"Você não possui Elmo.");
  29.                 SendALL(clientid);
  30.                 }
  31.  
  32.         return;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement