boonpal2 Posted July 12, 2018 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 10/31/14 Last Seen: November 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
0 WhiteEagle Posted July 12, 2018 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 480 Reputation: 67 Joined: 08/28/12 Last Seen: 9 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 boonpal2 Posted July 13, 2018 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 10/31/14 Last Seen: November 5, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
0 WhiteEagle Posted July 13, 2018 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 480 Reputation: 67 Joined: 08/28/12 Last Seen: 9 hours ago Share Posted July 13, 2018 That's a good question. Never test it with comma, sorry. Quote Link to comment Share on other sites More sharing options...
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 !!
Link to comment
Share on other sites
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.