Jump to content
  • 0
dfabsgwapings

MVP Card Announcer

Question

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

 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

maybe something like this:

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;

Share this post


Link to post
Share on other sites
  • 0
{
	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.

Share this post


Link to post
Share on other sites
  • 0

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

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
Answer this question...

×   Pasted as rich text.   Restore formatting

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

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.