Jump to content
  • 0

Auto annouce source


Jayz

Question


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  396
  • Reputation:   53
  • Joined:  07/24/12
  • Last Seen:  

[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-
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

@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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  396
  • Reputation:   53
  • Joined:  07/24/12
  • Last Seen:  

Thanks cydh

Solve.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  01/22/13
  • Last Seen:  

hello where can i put this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  01/22/13
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

please share the src :(

Link to comment
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.   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.

×
×
  • Create New...