Jump to content
  • 0

Modify getBattleFlag message display


deniswalle96

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  32
  • Reputation:   3
  • Joined:  03/15/20
  • Last Seen:  

I'm trying to create a simple script to display some battle_conf information when a players logs-in, but I need to make it so that instead of displaying the original value, it shows n/100.

For example, base_exp_rate should display "3" instead of "300", how can I achieve that?

-	script	motd	-1,{
	OnPCLoginEvent:
		announce "EXP - Base: "+getBattleFlag("base_exp_rate")+"% / Job: "+getBattleFlag("job_exp_rate")+"%"+"\n"+"Drop - General: "+getBattleFlag("item_rate_common")+"% Cards: "+getBattleFlag("item_rate_card")+"%",bc_self;
	end;
}

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   1
  • Joined:  12/17/11
  • Last Seen:  

 

-	script	motd	-1,{
	OnPCLoginEvent:
		announce "EXP - Base: "+(getBattleFlag("base_exp_rate")/100)+"% / Job: "+(getBattleFlag("job_exp_rate")/100)+"%"+"\n"+"Drop - General: "+(getBattleFlag("item_rate_common")/100)+"% Cards: "+(getBattleFlag("item_rate_card")/100)+"%",bc_self;
	end;
}

 

Edited by J4ND3RS0N
  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  32
  • Reputation:   3
  • Joined:  03/15/20
  • Last Seen:  

Thank you @J4ND3RS0N

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