Jump to content
  • 0

Different exp rates on some maps


boonpal2

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  10/31/14
  • Last Seen:  

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 !!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

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.

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  10/31/14
  • Last Seen:  

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 !!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

That's a good question. Never test it with comma, sorry.

Link to comment
Share on other sites

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.

×
×
  • Create New...