Jump to content
  • 0

Auto annouce source


Question

Posted (edited)

[s]if(battle_config.drop_announce){	//check if announcement is active
	   	 sprintf(output, "%s dropped %s %dx at %s", sd->status.name, item_data->jname, sd->status.inventory[i].amount, map[sd->bl.m].name);
	   	 intif_broadcast2(output, strlen(output) + 1, battle_config.drop_announcecolor, 0x190, 12, 0, 0);[/s]

how to make that for mapannounce only?

solved by cydh

Edited by Zack-

6 answers to this question

Recommended Posts

Posted (edited)

if (fontColor == 0xFE000000) // This is main chat message [LuzZza]
 clif_MainChatMessage(mes);
else
 clif_broadcast2(NULL, mes, len, fontColor, fontType, fontSize, fontAlign, fontY, ALL_CLIENT);

ALL_CLIENT ---> ALL_SAMEMAP

EDIT :

I didn't test it.

Edited by goddameit
Posted

@goddameit, it won't works, for target except ALL_CLIENT, it must declare the bl.. :D

struct block_list *bl;
bl = map_id2bl(sd->bl.id);
clif_broadcast2(bl, output, (int)strlen(output)+1, battle_config.drop_announcecolor, 0x190, 12, 0, 0, ALL_SAMEMAP);

@Zack-, I'm done.. I'll send you the final file.. :)

  • Upvote 2

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