Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1. void DEXparaFOR(int clientid)
  2. {
  3.     MOB *player = (MOB*)GetMobFromIndex(clientid);
  4.     int DEXFOR = GetFirstSlot(clientid,3156,0,0,0,0,0,0,64);
  5.     if(DEXFOR != -1)
  6.     {
  7.     if(player->bStatus.STR >= 0 && player->bStatus.DEX >= 100)
  8.     {
  9.      SendClientMsg(clientid,"Foi retirado 100 Dex e foi adicionado em For.");
  10.      player->Inventory[DEXFOR].Index = 0;
  11.      player->bStatus.DEX -= 100;
  12.      player->bStatus.STR += 100;
  13.      SendEffect(3,14,clientid);
  14.      GetCurrentScore(clientid);
  15.      SendStats(clientid);
  16.      SaveChar(1,clientid);
  17.      SendALL(clientid);
  18.     return;
  19.     }
  20.         SendClientMsg(clientid,"Pontos Insuficiente.");
  21.         SendALL(clientid);
  22.         return;
  23.     }
  24.     else
  25.     {
  26.         SendALL(clientid);
  27.     }
  28.     return;
  29.  
  30.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement