Sign in to follow this  
arthurmello18

Rare Advertising Item

Recommended Posts

 Can anyone tell me if there is a script like this or can any script do it if possible? 

Script: possible to announce when a very rare item is dropped from mvp when it is dead?

Share this post


Link to post
Share on other sites
1 hour ago, arthurmello18 said:
 Can anyone tell me if there is a script like this or can any script do it if possible? 

Script: possible to announce when a very rare item is dropped from mvp when it is dead?

you can use this

\conf\battle\drops.conf

// Make broadcast ** Player1 won Pupa's Pupa Card (chance 0.01%) ***
// This can be set to any value between 0~10000.
// Note: It also announces STEAL skill usage with rare items
// 0 = don't show announces at all
// 1 = show announces for 0.01% drop chance items
// 333 = show announces for 3.33% or lower drop chance items
// 10000 = show announces for all items
rare_drop_announce: 0

Share this post


Link to post
Share on other sites

-    script    Sample    -1,{
    OnNPCKillEvent:
        if ( getmonsterinfo( killedrid, 22 ) ) {
            for ( [email protected] = 0; [email protected] < getarraysize( .items ); [email protected] += 3 ) {
                if ( rand( 100 ) < .items[ [email protected] +  2 ] ) {
                    getitem .items[ [email protected] ], .items[ [email protected] + 1 ];
                    announce "Wow! " +strcharinfo( 0 )+ " has obtained " +getitemname( .items[ [email protected] ] )+ " [" +.items[ [email protected] + 1 ]+ "] from " +getmonsterinfo(killedrid, 0)+ ".",0;
                }
            }
        }
    end;
    
    OnInit:
        // <item id>,<amount>,<chance>
        setarray .items[0],
                607, 2, 100,
                503, 1, 100,
                504, 1, 100,
                505, 1, 100;
        end;
}


like this?

ps:

Share this post


Link to post
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
Reply to this topic...

×   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.

Loading...
Sign in to follow this