Jump to content
  • 0

Randon Rates Error


Zikoziz

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   16
  • Joined:  12/19/13
  • Last Seen:  

 

Greetings, I need your help to fix the message "Rates" I want you to tell me well the rates.

NOTA; Normal Rates 100x Base / 100x Job

TN5M.jpg

-	script	LizardRates	RATES_NPC,{
OnInit:
OnMinute01:

	set $@brate,rand(10000,19999);
	set $@jrate,rand(10000,19999);
	setbattleflag("base_exp_rate",$@brate);
	setbattleflag("job_exp_rate",$@jrate);

	announce "Evento Rates, Nuevos Rates: +1"+ (getbattleflag("base_exp_rate") - 10000) +" | Job Exp: +1"+ (getbattleflag("job_exp_rate") - 10000) +" !!",bc_all,0x00FFFF;
	end;


OnMinute02:
	atcommand "@reloadbattleconf";

	announce "Rates Establecidos a la normalidad",bc_all,0xFF6060;
	end;
}
Edited by Zikoziz
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   16
  • Joined:  12/19/13
  • Last Seen:  

Fixed with a / 100 replacing - 1000

 

Close Topic =B

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2370
  • Joined:  10/28/11
  • Last Seen:  

4 hours ago, Zikoziz said:

getbattleflag("base_exp_rate") - 10000

change to

(getbattleflag("base_exp_rate") / 100

 

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