Jump to content
Moopler
  • 0
Sign in to follow this  
Buu

Question Hi-Five and Shining Santa Box ItemID

Question

Can someone help me fix the item filter so that only Hi-Five Boxes and Shining Santa boxes drop, if possible please! :)

 

Kind regards,

Buu

Share this post


Link to post

Recommended Posts

  • 0
55 minutes ago, kevintjuh93 said:

Shining Santa: 2431307
Hi-Five: 2435718

What should I edit in the script? Or do I need another item filter script?

//v178.3
[ENABLE]
alloc(ItemFilter,256)
alloc(ItemList,2048)
alloc(Mesos,4)
alloc(Mode,4)
label(Return)
label(End)
label(FilterMesos)
label(RejectOrAccept)
label(AcceptFilter)
label(RejectFilter)
label(Ignore)

Mesos:
dd #10 // Minimum meso

Mode:
dd #0 // 0 = Accept, 1 = reject

ItemList:

dd 00 // End of list

ItemFilter:
push edx
mov edx,[Mesos]
cmp eax,edx
jle FilterMesos
mov edx,ItemList
jmp RejectOrAccept

FilterMesos:
mov [esi+44],0
jmp End

RejectOrAccept:
cmp byte ptr [Mode],0
je AcceptFilter
cmp byte ptr [Mode],1
je RejectFilter

AcceptFilter:
cmp eax,[edx]
je End
cmp dword ptr [edx],0
je Ignore
add edx,4
jmp AcceptFilter

RejectFilter:
cmp eax,[edx]
je Ignore
cmp dword ptr [edx],0
je End
add edx,4
jmp RejectFilter

Ignore:
cmp eax,#50000 // Added this code otherwise mesos is dropped but not shown in accept mode
jle End
mov eax,0

End:
pop edx
mov ecx,ebx // Original Opcode
mov [esi+48],eax // Original Opcode
jmp Return

00B65CB9:
jmp ItemFilter
Return:

[DISABLE]
00B65CB9: // 8B ? 89 ? ? E8 ? ? ? ? 8B ? 89 ? ? E8 ? ? ? ? 0F ? ? 89 ? ? 8B ? E8 ? ? ? ? 0F [Second Result]
mov ecx,ebx
mov [esi+48],eax

dealloc(ItemFilter)
dealloc(ItemList)
dealloc(Mesos)
dealloc(Mode)

 

Share this post


Link to post
  • 0
1 minute ago, Buu said:

What should I edit in the script? Or do I need another item filter script?


//v178.3
[ENABLE]
alloc(ItemFilter,256)
alloc(ItemList,2048)
alloc(Mesos,4)
alloc(Mode,4)
label(Return)
label(End)
label(FilterMesos)
label(RejectOrAccept)
label(AcceptFilter)
label(RejectFilter)
label(Ignore)

Mesos:
dd #10 // Minimum meso

Mode:
dd #0 // 0 = Accept, 1 = reject

ItemList:

dd 00 // End of list

ItemFilter:
push edx
mov edx,[Mesos]
cmp eax,edx
jle FilterMesos
mov edx,ItemList
jmp RejectOrAccept

FilterMesos:
mov [esi+44],0
jmp End

RejectOrAccept:
cmp byte ptr [Mode],0
je AcceptFilter
cmp byte ptr [Mode],1
je RejectFilter

AcceptFilter:
cmp eax,[edx]
je End
cmp dword ptr [edx],0
je Ignore
add edx,4
jmp AcceptFilter

RejectFilter:
cmp eax,[edx]
je Ignore
cmp dword ptr [edx],0
je End
add edx,4
jmp RejectFilter

Ignore:
cmp eax,#50000 // Added this code otherwise mesos is dropped but not shown in accept mode
jle End
mov eax,0

End:
pop edx
mov ecx,ebx // Original Opcode
mov [esi+48],eax // Original Opcode
jmp Return

00B65CB9:
jmp ItemFilter
Return:

[DISABLE]
00B65CB9: // 8B ? 89 ? ? E8 ? ? ? ? 8B ? 89 ? ? E8 ? ? ? ? 0F ? ? 89 ? ? 8B ? E8 ? ? ? ? 0F [Second Result]
mov ecx,ebx
mov [esi+48],eax

dealloc(ItemFilter)
dealloc(ItemList)
dealloc(Mesos)
dealloc(Mode)

 

You really want to filter these beauty's?

Anyway add dd #<itemid here> above the dd 0 // End of...

Share this post


Link to post
  • 0
6 minutes ago, kevintjuh93 said:

You really want to filter these beauty's?

Anyway add dd #<itemid here> above the dd 0 // End of...

I meant that I want only Hi-Five Boxes and Shining Santa Boxes to drop so I dont get ETC and EQP and that stuff :) 

Edited by Buu

Share this post


Link to post
  • 0

find this part:

ItemList:

dd 00 // End of list
and just add your two items. It will look like this:

ItemList:

dd   2431307
dd  2435718 

 

  • Like 1

Share this post


Link to post
  • 0
9 minutes ago, hippo said:

find this part:


ItemList:

dd 00 // End of list

and just add your two items. It will look like this:

ItemList:

dd   2431307
dd  2435718 

 

Like this? It isn't working for me, all I get is mesos.

d21983630d7dc6a38287e80a68afa09e.png

Share this post


Link to post
  • 0
4 minutes ago, kevintjuh93 said:

No, don't remove the dd 0 after the items

Like this? It doesnt work, I'm probably very retarded but I dont understand

8525802660fee5604e3bc6855fcadb0d.png

Share this post


Link to post
  • 0
7 minutes ago, kevintjuh93 said:

No lel, like this:


ItemList:

dd  2431307
dd  2435718 
dd 00 // End of list

Like this..? Not working :P Can you edit the script for me? I'm fucking stupid

140165cf3af2a46c594d3cc5352de407.png

Edited by Buu

Share this post


Link to post
  • 0
4 minutes ago, Buu said:

Thanks o_o

Can I edit so I don't get mesos either?

Mesos:
dd #1000000000000000000000000000000 // Minimum meso

Share this post


Link to post
  • 0
19 minutes ago, xScriptZx said:

Mesos:
dd #1000000000000000000000000000000 // Minimum meso

Doesnt work. Tried #50000 as well.

e7005ab53f1a1956b359c312fc2223d3.png

Share this post


Link to post
  • 0
5 minutes ago, Buu said:

Doesnt work. Tried #50000 as well.

e7005ab53f1a1956b359c312fc2223d3.png

that's because this part of the script:

FilterMesos:
mov [esi+44],0
jmp End

 

is broken.

Share this post


Link to post
  • 0
Just now, DAVHEED said:

that's because this part of the script:


FilterMesos:
mov [esi+44],0
jmp End

 

is broken.

so I cant filter out mesos?

Share this post


Link to post
  • 0
2 minutes ago, Buu said:

so I cant filter out mesos?

you can, i believe if you change "mov [esi+44], 0" to "xor eax, eax" it _should_ work at least from what i remember.

Share this post


Link to post
  • 0
3 minutes ago, DAVHEED said:

you can, i believe if you change "mov [esi+44], 0" to "xor eax, eax" it _should_ work at least from what i remember.

It says it can't be compiled and I can't tick the script after I make the change.

Share this post


Link to post
  • 0
Just now, Buu said:

It says it can't be compiled and I can't tick the script after I make the change.

You have done something wrong then.

Share this post


Link to post
  • 0
10 minutes ago, DAVHEED said:

You have done something wrong then.

Probably

Edited by Buu
facepalm

Share this post


Link to post
  • 0

ermmm...

 

 

8 minutes ago, DAVHEED said:

you can, i believe if you change "mov [esi+44], 0" to "xor eax, eax" it _should_ work at least from what i remember.

He said change.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×