Advertisement
Kapa3a

Anti drop iteme in mapa

Nov 2nd, 2023
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | Source Code | 0 0
  1. I.Deschidem char_item.cpp (sursa game ):
  2.  
  3. *Cauta :
  4.  
  5. bool CHARACTER::DropItem(TItemPos Cell, BYTE bCount)
  6. {
  7.     LPITEM item = NULL;
  8.    
  9. *Sub add :
  10.  
  11. switch (GetMapIndex())
  12.     {
  13.     case 1:  // map_a1
  14.     case 3:  // map_a3
  15.     case 21: // map_b1
  16.     case 23: // map_b3
  17.     case 41: // map_c1
  18.     case 43: // map_c3
  19.         {
  20.         ChatPacket(CHAT_TYPE_INFO, "Nu poti arunca iteme pe jos in aceasta mapa..");
  21.         return false;
  22.         }
  23.     default: break;
  24.     }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement