Jump to content
  • 0

Different exp rates on some maps


Question

Posted

Hello guys

So is it possible if I want to make these maps, let's say 

  1. gef_fild10

  2. prt_fild10

  3. 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

  • 0
Posted

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.

 

  • 0
Posted
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 !!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...