Jump to content
  • 0

Making Global Drop not Affected to MVP Slave's.


ryukazuna

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   10
  • Joined:  09/14/21
  • Last Seen:  

Hello rAthena.

I want to ask something about global drop system. Currently im using the fuction OnNPCKillEvent. It makes player get some item with fixed percentage that i set. 

But, the downside are many player currently abusing that from MVP Slave summon like Dracula mobs that spawn Familiar as a Slave.

Is it possible to make the global drop system unaffected to MVP Slave? so if player kill MVP slave will not get any item from global drop. Also, i dont want these global drop only from MVP kill.

 

This is current script of global drops im using :

-	script	Global_ShadowBox#0	-1,{
OnNPCKillEvent:

setarray .items,9900001;
    set .theitem, getarraysize(.items);
    set .dasitem, @items[@theitem];
    if (rand(1,1000) <= 15) {
        getitem .items[rand(.theitem-1)],1;
    }
    end;

}

 

Thanks!!

Edited by ryukazuna
typo
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

Try using getunitdata command

\doc\script_commands.txt lines 8182

You can test it with masteraid or slavecpycmd.

Not sure it will work /abs

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...