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

Help [EMS] Itemfilter Secret Shadow Diary Page #

Question

Hello there 

I've recently updated the Itemfilter, and I was wondering if you guys could help me how I could add the Secret Shadow Diary Pages 1-6  so they could drop after i killed some monsters

I think I found the ID items of them but correct me if I am wrong 

2434715  Secret Shadow Diary Page 1
2434716  Secret Shadow Diary Page 2
2434717  Secret Shadow Diary Page 3
2434718  Secret Shadow Diary Page 4
2434719  Secret Shadow Diary Page 5
2434720  Secret Shadow Diary Page 6

Itemfilter V.118.2

/*
  Item Filter
  EMS v118.2
  Created by ?
*/
[enable]
alloc(ItemFilter,256)
alloc(ItemList,2048)
alloc(Mesos,4)
alloc(Mode,4)
RegisterSymbol(Mode)
RegisterSymbol(Mesos)
label(Return)
label(End)
label(FilterMesos)
label(RejectOrAccept)
label(AcceptFilter)
label(RejectFilter)
label(Ignore)


Mesos:
dd #11 // minimum meso


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


ItemList:
// item IDs here that you want to reject or accept
dd #4001832 //Spell trace
dd #2000006 //Mana Elixir
dd #2000003
dd #2432391
dd #2432392
dd #2432393
dd #2432394
dd #2432395
dd #2432396
dd #2432397
dd #2432398
dd #2432407
dd #2432408
dd 00 // end of list


// 8B CB 89 46 48 E8 5D 46 CD FF 8B CB 89 46 38 E8 F3 44 CD FF 0F B6 C8 89 4E 40 8B CB E8 96 45 CD FF 0F
00746B69:
jmp ItemFilter
Return:


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


FilterMesos:
mov [esi+40],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,#60000 // added this code otherwise mesos is dropped but not shown in accept mode
jle End
mov eax,0


End:
pop edx
mov ecx,ebx // org code
mov [esi+44],eax // org code
jmp Return


[disable]
00746B69:
mov ecx,ebx
mov [esi+44],eax

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0

You are able to update the script but apparently you're not able to read the instructions on how to add items to the filter?

ItemList:
// item IDs here that you want to reject or accept
dd #4001832 //Spell trace

Just add the IDs in the format seen above..

Edited by Repaper
  • Like 2

Share this post


Link to post
  • 0
4 hours ago, Repaper said:

You are able to update the script but apparently you're not able to read the instructions on how to add items to the filter?


ItemList:
// item IDs here that you want to reject or accept
dd #4001832 //Spell trace

Just add the IDs in the format seen above..

I did but still nothing happens 

Share this post


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

I did but still nothing happens 

 

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

 

Share this post


Link to post
  • 0

Just adding this here so others can see the problem too:

  •  
  • 120px-ProfileIcon22.jpg.b9dfe5fe764c632f
    DAVHEED10 Aug 19:04
    in your script you got mov [esi+44],eax // org code
  • 120px-ProfileIcon22.jpg.b9dfe5fe764c632f
    DAVHEED10 Aug 19:04
    in reality it's mov [esi+48],eax
Edited by Repaper
  • Like 1

Share this post


Link to post
  • 0

yep, you need to change esi+44 to esi+48 (there are two lines to change).

if its still glitched you need to change the mesos filter to 1, dunno why.

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  
×