Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vector<DWORD> FilterItemsl;
- void __declspec(naked) _stdcall FilterASM()
- {
- _asm
- {
- push edx
- cmp [sMesos], 0
- je StartFilter
- mov edx, [Mesos]
- mov edx, [edx]
- cmp eax,edx
- jle FilterMesos
- nop
- nop
- nop
- nop
- StartFilter:
- mov edx, [FilterItemsl] //if i comment out this n the next line it wont crash
- mov edx, [edx] // And This it Doesnt Crash but becomes an All item filter
- jmp FilterItems
- nop
- nop
- nop
- FilterMesos:
- mov [esi+0x30],00
- jmp End
- nop
- nop
- nop
- FilterItems:
- cmp eax, [edx]
- je Ignore
- nop
- nop
- nop
- nop
- cmp dword ptr [edx],00
- je End
- nop
- nop
- nop
- nop
- add edx,4
- jmp FilterItems
- Ignore:
- mov eax,00
- End:
- pop edx
- mov ecx,edi
- mov [esi+0x34],eax
- jmp dword ptr ds:[FilterRet]
- }
- }
- void Trainer::removeitembutton_Click(System::Object^ sender, System::EventArgs^ e){
- for (int i = 0; i < FilterList->Items->Count; i++ )
- {
- if(FilterList->Items[i]->Selected){
- FilterList->Items[i]->Remove();
- FilterItemsl.erase(FilterItemsl.begin()+i);
- i--;
- }
- }
- FilterItemsl.push_back(0);
- }
- void Trainer::itemaddbutton_Click(System::Object^ sender, System::EventArgs^ e){
- ListViewItem^ lvi = gcnew ListViewItem( gcnew array<String^> { ItemNameBox->Text }, 0 ); // Adds the Item ID to the first collumn of the List View
- lvi->SubItems->Add( IdBox->Text ); // Adds the Item Name to the first subcollumn of the List View
- FilterList->Items->AddRange( gcnew array<ListViewItem^> { lvi } ); // Adds the range to the List View
- FilterItemsl.push_back(Convert::ToInt32(IdBox->Text)); // Sets 0 to the end of the list
- }
Add Comment
Please, Sign In to add comment