Yoona Posted March 13, 2014 Posted March 13, 2014 (edited) Hi guys! well i have a different idea of this kind of script ~ so let me explain it. so here, Everytime A Player kills an MVP's there will be 30 ~ 50% chance of summoning a single treasure chest ( randomly from each castle's ) Well i hope you guys can help me with this. thanks! rAthena! ( Got this idea from Aura Kingdom.. anyone here playing aura kingdom? Raise your hands! ) hahaha! Edited March 13, 2014 by Yoona Quote
sandbox Posted March 13, 2014 Posted March 13, 2014 Where do you want the tbox to be spawned, on their castle, or current position? Quote
Yoona Posted March 13, 2014 Author Posted March 13, 2014 Where do you want the tbox to be spawned, on their castle, or current position? at the same place where Player killed the MVP. Quote
sandbox Posted March 13, 2014 Posted March 13, 2014 - script tbox -1,{ OnNPCKillEvent: if(getmonsterinfo(killedrid,22) > 1) { getmapxy(.@mvp$,.@mx,.@my,0); if(rand(100) < 40) monster .@mvp$,.@mx,.@my,"--ja--",1234,1; } end; } change 1234 to tbox ID Quote
Yoona Posted March 13, 2014 Author Posted March 13, 2014 - script tbox -1,{ OnNPCKillEvent: if(getmonsterinfo(killedrid,22) > 1) { getmapxy(.@mvp$,.@mx,.@my,0); if(rand(100) < 40) monster .@mvp$,.@mx,.@my,"--ja--",1234,1; } end; } change 1234 to tbox ID what if summoning tbox will be random from different castle like the one Kriemhild summon then from scared_altar tbox. Quote
sandbox Posted March 14, 2014 Posted March 14, 2014 Here you go, just edit the mob ids. - script tbox -1,{ OnNPCKillEvent: if(getmonsterinfo(killedrid,22) > 1) { getmapxy(.@mvp$,.@mx,.@my,0); setarray .@T_Box[0],1111,2222,3333,4444; //Edit to Treasure Box MOB Ids if(rand(10) < 4) monster .@mvp$,.@mx,.@my,"--ja--",.@T_Box[rand(getarraysize(.@T_Box))],1; } end; } Quote
Question
Yoona
Hi guys! well i have a different idea of this kind of script ~ so let me explain it.
so here, Everytime A Player kills an MVP's there will be 30 ~ 50% chance of summoning a single treasure chest ( randomly from each castle's )
Well i hope you guys can help me with this. thanks! rAthena!
( Got this idea from Aura Kingdom.. anyone here playing aura kingdom? Raise your hands! ) hahaha!
Edited by Yoona5 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.