Jump to content
  • 0

Announce Drop Item


Question

Posted

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

8 answers to this question

Recommended Posts

Posted

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; }

Posted

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

Posted

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);

Posted

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.

Posted

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 :(

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