Guest User

Untitled

a guest
Oct 20th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.64 KB | None | 0 0
  1. vector<DWORD> FilterItemsl;
  2.  
  3. void __declspec(naked) _stdcall FilterASM()
  4. {
  5.     _asm
  6.     {
  7.         push edx
  8.         cmp [sMesos], 0
  9.         je StartFilter
  10.         mov edx, [Mesos]
  11.         mov edx, [edx]
  12.         cmp eax,edx
  13.         jle FilterMesos
  14.         nop
  15.         nop
  16.         nop
  17.         nop
  18.         StartFilter:
  19.         mov edx, [FilterItemsl] //if i comment out this n the next line it wont crash
  20.         mov edx, [edx] // And This it Doesnt Crash but becomes an All item filter
  21.         jmp FilterItems
  22.         nop
  23.         nop
  24.         nop
  25.  
  26.         FilterMesos:
  27.         mov [esi+0x30],00
  28.         jmp End
  29.         nop
  30.         nop
  31.         nop
  32.  
  33.         FilterItems:
  34.         cmp eax, [edx]
  35.         je Ignore
  36.         nop
  37.         nop
  38.         nop
  39.         nop
  40.         cmp dword ptr [edx],00
  41.         je End
  42.         nop
  43.         nop
  44.         nop
  45.         nop
  46.         add edx,4
  47.         jmp FilterItems
  48.  
  49.         Ignore:
  50.         mov eax,00
  51.  
  52.         End:
  53.         pop edx
  54.         mov ecx,edi
  55.         mov [esi+0x34],eax
  56.         jmp dword ptr ds:[FilterRet]
  57.     }
  58. }
  59.  
  60. void Trainer::removeitembutton_Click(System::Object^  sender, System::EventArgs^  e){
  61. for (int i = 0; i < FilterList->Items->Count; i++ )
  62.     {
  63.         if(FilterList->Items[i]->Selected){
  64.  
  65.             FilterList->Items[i]->Remove();
  66.             FilterItemsl.erase(FilterItemsl.begin()+i);
  67.             i--;
  68.         }
  69.     }
  70.     FilterItemsl.push_back(0);
  71. }
  72.  
  73. void Trainer::itemaddbutton_Click(System::Object^  sender, System::EventArgs^  e){
  74.     ListViewItem^ lvi = gcnew ListViewItem( gcnew array<String^> { ItemNameBox->Text }, 0 ); // Adds the Item ID to the first collumn of the List View  
  75.     lvi->SubItems->Add( IdBox->Text ); // Adds the Item Name to the first subcollumn of the List View  
  76.     FilterList->Items->AddRange( gcnew array<ListViewItem^> { lvi } ); // Adds the range to the List View  
  77.     FilterItemsl.push_back(Convert::ToInt32(IdBox->Text)); // Sets 0 to the end of the list  
  78. }
Add Comment
Please, Sign In to add comment