Tales Posted April 15, 2015 Group: Members Topic Count: 163 Topics Per Day: 0.03 Content Count: 319 Reputation: 8 Joined: 02/05/12 Last Seen: January 11, 2016 Share Posted April 15, 2015 - script levelingcontrol -1,{ OnNPCKillEvent: if (BaseLevel - getmonsterinfo(killedrid,1) < 10) { BaseExp = BaseExp + BaseExp*0.35; JobExp = JobExp + JobExp*0.35; } } Quote Link to comment Share on other sites More sharing options...
Skorm Posted April 16, 2015 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted April 16, 2015 You can't use decimal in scripts...Instead you could do... BaseExp += ( BaseExp * 35 ) / 100; Which is roughly the same thing. Also for the record... BaseExp = BaseExp + BaseExp*0.35; And BaseExp = BaseExp * 1.35; Are the same.You could even shorten it to... BaseExp *= 1.35; In some languages. Quote Link to comment Share on other sites More sharing options...
CandyCandy Posted April 16, 2015 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 36 Reputation: 6 Joined: 02/01/12 Last Seen: August 6, 2024 Share Posted April 16, 2015 (edited) And there is probably no end; in case if this is not planned Edited April 16, 2015 by CandyCandy Quote Link to comment Share on other sites More sharing options...
Tales Posted April 18, 2015 Group: Members Topic Count: 163 Topics Per Day: 0.03 Content Count: 319 Reputation: 8 Joined: 02/05/12 Last Seen: January 11, 2016 Author Share Posted April 18, 2015 This script will give 0,35% more EXP for killing any mobs in game.I dont know why this dont work. Quote Link to comment Share on other sites More sharing options...
Skorm Posted April 20, 2015 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted April 20, 2015 This script will give 0,35% more EXP for killing any mobs in game. I dont know why this dont work. - script leveling_control -1,{ OnNPCKillEvent: .@range = BaseLevel - getmonsterinfo( killedrid, MOB_LV ); .@range = .@range < 0 ? -.@range : .@range; if ( .@range < 10 ) { .@base = getmonsterinfo( killedrid, MOB_BASEEXP ); .@job = getmonsterinfo( killedrid, MOB_JOBEXP ); if ( .@base > 0 ) set BaseExp, BaseExp + .@base * 35 / 100; if ( .@job > 0 ) set JobExp , JobExp + .@job * 35 / 100; } end; } 1 Quote Link to comment Share on other sites More sharing options...
Question
Tales
- script levelingcontrol -1,{
OnNPCKillEvent:
if (BaseLevel - getmonsterinfo(killedrid,1) < 10) {
BaseExp = BaseExp + BaseExp*0.35;
JobExp = JobExp + JobExp*0.35;
}
}
Link to comment
Share on other sites
4 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.