harley Posted February 20, 2017 Posted February 20, 2017 (edited) Request for MVP announcer when killed to all map,getitem # by drop rate chance..Thanks for advance Edited February 20, 2017 by harley Quote
0 Cyro Posted February 21, 2017 Posted February 21, 2017 (edited) 4 hours ago, harley said: Request for MVP announcer when killed to all map,getitem # by drop rate chance..Thanks for advance - script #mvp_drop -1,{ OnNPCKillEvent: if (getmonsterinfo(killedrid,22)) // If mob has MOB_MVPEXP, it's an MVP. if (rand(100) < 50) //chnage % as your needs getitem 512,1; // your item id here announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and Got Apple at "+ strcharinfo(3),0,0x00FF00; } end; } Edited February 21, 2017 by Cyro 1 Quote
0 harley Posted February 21, 2017 Author Posted February 21, 2017 7 hours ago, Cyro said: - script #mvp_drop -1,{ OnNPCKillEvent: if (getmonsterinfo(killedrid,22)) // If mob has MOB_MVPEXP, it's an MVP. if (rand(100) < 50) //chnage % as your needs getitem 512,1; // your item id here announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and Got Apple at "+ strcharinfo(3),0,0x00FF00; } end; } Thank you so much.. it's working but can you make a script for Boss monster only and not for mini boss or monster? and Announce only when the player get the item with yellow letters? Thanks Quote
0 Cyro Posted February 21, 2017 Posted February 21, 2017 13 minutes ago, harley said: Thank you so much.. it's working but can you make a script for Boss monster only and not for mini boss or monster? and Announce only when the player get the item with yellow letters? Thanks you tested it with mini boss? i dont think mini boos give MOB_MVPEXP so it must be working for MVP only announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and Got Apple at "+ strcharinfo(3),0,0x00FF00; } change above line to announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and Got Apple at "+ strcharinfo(3),0; } Quote
0 harley Posted February 21, 2017 Author Posted February 21, 2017 (edited) Thank you.. Fixed :) Edited February 21, 2017 by harley Quote
0 Corsario Posted October 31, 2017 Posted October 31, 2017 how u fixed?, when i use this scrip and kill a kasa o salamander. The scrip dropme a item D;{ Quote
0 hendra814 Posted September 3, 2018 Posted September 3, 2018 On 10/31/2017 at 9:32 AM, Corsario said: how u fixed?, when i use this scrip and kill a kasa o salamander. The scrip dropme a item D;{ 16 minutes ago, K1NGRAFFY said: How did you fix this? try this - script #mvp_drop -1,{ OnNPCKillEvent: if (getmonsterinfo( killedrid, MOB_MVPEXP )) // If mob has MOB_MVPEXP, it's an MVP. if (rand(100) < 50) //chnage % as your needs getitem 512,1; // your item id here announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and Got Apple at "+ strcharinfo(3),0,0x00FF00; } end; } Quote
0 K1NGRAFFY Posted September 3, 2018 Posted September 3, 2018 Same script but what I mean is how did he fix the announcer because if I killed poring my name will be announcer I want to put it only in MVP and remove the apple etc. Quote
0 hendra814 Posted September 3, 2018 Posted September 3, 2018 7 minutes ago, K1NGRAFFY said: Same script but what I mean is how did he fix the announcer because if I killed poring my name will be announcer I want to put it only in MVP and remove the apple etc. Ops sory, change this announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and Got Apple at "+ strcharinfo(3),0,0x00FF00; } into this announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and Got Apple at "+ strcharinfo(3),0; } Quote
0 K1NGRAFFY Posted September 3, 2018 Posted September 3, 2018 Dude I want this to remove the "Got Apple" and If I killed Mini boss or normal it should be not announce for ONLY MVP Monster did you get what I mean?? Quote
0 hendra814 Posted September 4, 2018 Posted September 4, 2018 (edited) - script #mvp_drop -1,{ OnNPCKillEvent: set .itemrew, 7539; if (getmonsterinfo( killedrid, MOB_MVPEXP )) {// If mob has MOB_MVPEXP, it's an MVP. if (rand(100) < 50) {//chnage % as your needs getitem .itemrew,1; // your item id here announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and Got "+getitemname(.itemrew)+" at "+ strcharinfo(3),0; } end; } end; } Edited September 4, 2018 by hendra814 Quote
Question
harley
Request for MVP announcer when killed to all map,getitem # by drop rate chance..Thanks for advance
Edited by harley11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.