boonpal2 Posted July 12, 2018 Posted July 12, 2018 Hello guys So is it possible if I want to make these maps, let's say gef_fild10 prt_fild10 mjolnir_05 give like 20% bonus exp, my server is only 1x, so in these maps my exp rate would be 1.2x Thank you for taking your time off to help me !! Quote
0 WhiteEagle Posted July 12, 2018 Posted July 12, 2018 You can work with OnNPCKillEvent: and strcharinfo(3). OnInit: setarray .map$,"prt_fild04","prt_fild05"; end; OnNPCKillEvent: for (.@i = 0; .@i < getarraysize(.map$); .@i++) if (strcharinfo(3) == .map$ ) { set .@mob_base,((getmonsterinfo(killedrid,MOB_BASEEXP) / 100) * YOURBONUS); set .@mob_job,((getmonsterinfo(killedrid,MOB_JOBEXP) / 100) * YOURBONUS); set BaseExp,(BaseExp + .@mob_base); set JobExp,(JobExp + .@mob_job); end; } end; Didn't test it, but like this should it work. Quote
0 boonpal2 Posted July 13, 2018 Author Posted July 13, 2018 17 hours ago, WhiteEagle said: You can work with OnNPCKillEvent: and strcharinfo(3). OnInit: setarray .map$,"prt_fild04","prt_fild05"; end; OnNPCKillEvent: for (.@i = 0; .@i < getarraysize(.map$); .@i++) if (strcharinfo(3) == .map$ ) { set .@mob_base,((getmonsterinfo(killedrid,MOB_BASEEXP) / 100) * YOURBONUS); set .@mob_job,((getmonsterinfo(killedrid,MOB_JOBEXP) / 100) * YOURBONUS); set BaseExp,(BaseExp + .@mob_base); set JobExp,(JobExp + .@mob_job); end; } end; Didn't test it, but like this should it work. Thanks ! but does the / in this line set .@mob_base,((getmonsterinfo(killedrid,MOB_BASEEXP) / 100) * YOURBONUS); mean base xp from that mob divided by 100 and then times my bonus so should the input be 1.2 set .@mob_base,((getmonsterinfo(killedrid,MOB_BASEEXP) / 100) * 1.2); or times 20 to increase 20 percents like set .@mob_base,((getmonsterinfo(killedrid,MOB_BASEEXP) / 100) * 20); anyhow, thanks so much, i appreciate your help !! Quote
0 WhiteEagle Posted July 13, 2018 Posted July 13, 2018 That's a good question. Never test it with comma, sorry. Quote
Question
boonpal2
Hello guys
So is it possible if I want to make these maps, let's say
gef_fild10
prt_fild10
mjolnir_05
give like 20% bonus exp,
my server is only 1x, so in these maps my exp rate would be 1.2x
Thank you for taking your time off to help me !!
3 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.