Jump to content
  • 0

Modify getBattleFlag message display


Question

Posted

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;
}

 

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

 

-	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

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