Jump to content
  • 0

Announce Drop Item


RyokoMVP

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  209
  • Reputation:   3
  • Joined:  11/28/11
  • Last Seen:  

how to make a few item ( example MVP Equip Drops ) Will Announce if drop from monster ?

example : xxxx has got hunting spear from MVP fallen bishop @map xxxxx , @time xxxxx

map ( map name )

time ( time when mvp died )

and teach me how to add more MVP Drops :( because i want to know who get mvp equip drops in my server :)

but not from picklog / mvplog , announce more better ~ ( maybe can inserted to phpmyadmin )

my MVP DROP item is 20% , so i can't use rare_Drop_announce

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Via script, it's not possible to announce item drops as they're calculated independently from the script engine (you could theoretically shift all drops into a massive script-drop database, but that's very impractical...). You can announce when an MVP is killed, though:

if (getmonsterinfo(killedrid,22)) { announce strcharinfo(0)+" has killed "+strmobinfo(1,killedrid)+"!",0; }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  209
  • Reputation:   3
  • Joined:  11/28/11
  • Last Seen:  

thanks b4 , but can i get without src editing?

Via script, it's not possible to announce item drops as they're calculated independently from the script engine (you could theoretically shift all drops into a massive script-drop database, but that's very impractical...). You can announce when an MVP is killed, though:

if (getmonsterinfo(killedrid,22)) { announce strcharinfo(0)+" has killed "+strmobinfo(1,killedrid)+"!",0; }

it's announce if MVP Killed? i need announce for MVP Drops equip :( because the drops is 20% so i can't use announce_drop_rare

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

what do you mean?you only want to announce the player who killed the mvp?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  209
  • Reputation:   3
  • Joined:  11/28/11
  • Last Seen:  

i only want announce if MVP equip drops from MVP Monster

example player xxxx has kill MVP xxx and get Icepick ( example ) i need info for MVP Equip oonly...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

this will announce all weapons and armors dropped by MVPs.(excludes those in MVP drop field)

Index: map/mob.c
===================================================================
--- map/mob.c (revision 16608)
+++ map/mob.c (working copy)
@@ -2406,6 +2406,12 @@
 //MSG: "'%s' won %s's %s (chance: %0.02f%%)"
 intif_broadcast(message,strlen(message)+1,0);
   }
+   if(mvp_sd && md->db->mexp && (it->type == IT_ARMOR || it->type == IT_WEAPON)){
+    char message[128];
+    sprintf (message, msg_txt(541), mvp_sd->status.name, md->name, it->jname, (float)drop_rate/100);
+    //MSG: "'%s' won %s's %s (chance: %0.02f%%)"
+    intif_broadcast(message,strlen(message)+1,0);
+   }
   // Announce first, or else ditem will be freed. [Lance]
   // By popular demand, use base drop rate for autoloot code. [skotlex]
   mob_item_drop(md, dlist, ditem, 0, md->db->dropitem[i].p, homkillonly);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

i only want announce if MVP equip drops from MVP Monster

example player xxxx has kill MVP xxx and get Icepick ( example ) i need info for MVP Equip oonly...

on item_announce. just put only the item that you wanted to be announce.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  209
  • Reputation:   3
  • Joined:  11/28/11
  • Last Seen:  

i only want announce if MVP equip drops from MVP Monster

example player xxxx has kill MVP xxx and get Icepick ( example ) i need info for MVP Equip oonly...

on item_announce. just put only the item that you wanted to be announce.

where is that? at conf/battle/drops.conf?

i only want announce if MVP equip drops from MVP Monster

example player xxxx has kill MVP xxx and get Icepick ( example ) i need info for MVP Equip oonly...

on item_announce. just put only the item that you wanted to be announce.

where is that?at conf/battle/drops.conf?

this will announce all weapons and armors dropped by MVPs.(excludes those in MVP drop field)

Index: map/mob.c
===================================================================
--- map/mob.c (revision 16608)
+++ map/mob.c (working copy)
@@ -2406,6 +2406,12 @@
 //MSG: "'%s' won %s's %s (chance: %0.02f%%)"
 intif_broadcast(message,strlen(message)+1,0);
}
+   if(mvp_sd && md->db->mexp && (it->type == IT_ARMOR || it->type == IT_WEAPON)){
+	char message[128];
+	sprintf (message, msg_txt(541), mvp_sd->status.name, md->name, it->jname, (float)drop_rate/100);
+	//MSG: "'%s' won %s's %s (chance: %0.02f%%)"
+	intif_broadcast(message,strlen(message)+1,0);
+   }
// Announce first, or else ditem will be freed. [Lance]
// By popular demand, use base drop rate for autoloot code. [skotlex]
mob_item_drop(md, dlist, ditem, 0, md->db->dropitem[i].p, homkillonly);

yes i know about src , but i hope i can use script only , so i don't edit src~ ( maybe ) if impossible...i'll edit my 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...