MVP Card Announcer

dfabsgwapings

New member
Messages
165
Points
0
Github
dfabsgwapings
Hi there to all scripters,

How can I make an MVP card to be announced when the player got an MVP card from an MVP and automatically get the card.

example:

If a player was able to kill the Baphomet and it drop its card, the card will automatically be taken by the player who killed the MVP. and it will be broadcasted to the server.

[Player 1] got Baphomet Card from Baphomet
 
maybe something like this:

Code:
OnPCKillEvent:
    if (rand(10) != 1) end; // artificial drop rate (1 in X chances to drop)
    delitem(Baphomet_Card, 1, killedrid); // force "drop"
    getitem(Baphomet_Card, 1); // force "pick-up"
    announce(sprintf("%s killed %s and obtained their Baphomet Card.",
        strcharinfo(PC_NAME), strcharinfo(PC_NAME, "unknown", killedrid)), bc_all);
    end;
 
{
Id: 4147
AegisName: "Baphomet_Card"
Name: "Baphomet Card"
Type: 6
Buy: 20
Weight: 10
Loc: 2
DropAnnounce: true
Script: <"
bonus bHit,-10;
bonus bSplashRange,1;
">
},

you can do it on all rate items that you want to announce.

 
DropAnnounce is not enough, as it doesn't force pickup by the other player, and also it's only triggered on mob kill event, not pc

 
Back
Top