Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.86 KB | None | 0 0
  1. void CaçaArmia(int clientid)
  2. {
  3. MOB *player = (MOB*)GetMobFromIndex(clientid);
  4. int Armia = GetFirstSlotSADD(clientid, 3231, 64);
  5. if(Armia != -1)
  6. {
  7.   if(player->Inventory[Armia].EF1 == 61)
  8.     {
  9.         if(player->Inventory[Armia].EFV1 >= 1)
  10.             {
  11.             DoTeleport(clientid, 2100,2100);
  12.             player->Inventory[Armia].EFV1 -= 1;
  13.             SendALL(clientid); SendEquip(clientid);
  14.             SaveChar(1,clientid);
  15.             return;
  16.             }
  17.             }  
  18.             else if(player->Inventory[Armia].EFV1 == 0)
  19.             {
  20.             DoTeleport(clientid, 2100,2100);
  21.             player->Inventory[Armia].Index = 0;
  22.             SendALL(clientid); SendEquip(clientid);
  23.             SaveChar(1,clientid);
  24.             return;
  25.             }
  26.             }
  27.             else if(player->Inventory[Armia].EF1 == 0)
  28.             {
  29.             DoTeleport(clientid, 2100,2100);
  30.             player->Inventory[Armia].Index = 0;
  31.             SendALL(clientid); SendEquip(clientid);
  32.             SaveChar(1,clientid);
  33.             return;
  34.             }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement