Jump to content
  • 0

Making Global Drop not Affected to MVP Slave's.


Question

Posted (edited)

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

1 answer to this question

Recommended Posts

  • 0
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...