Jump to content
  • 0

Formula not working properly


gekigengar

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   2
  • Joined:  08/30/13
  • Last Seen:  

I decided to change the ragnarok online formula, so i created an excel file to balance the growth as close as possible to the original.

 

But somehow, the values are not as it is in the excel file than in the Ragnarok online..

 

Status.c

str = ((15+(((TBL_PC*)bl)->status.base_level*(10/1)))+(((rstr)+(dex/5)+(status->luk/3)+(status->int_/5)+(status->agi/5))*((10/20)+((((TBL_PC*)bl)->status.base_level)*(10/1))*(1/32))));

 

status->matk_max = ((((float)level+20+((float)status_base_matk(status, level))*(11/10)    ))+(((float)level*(1/125))*(((((float)status->int_/4)+((float)status->dex/8)+((float)status->luk/6))*((float)status_base_matk(status, level)))/18)));

 

status->matk_min = (((float)level/2)+10+((float)status_base_matk(status, level))+(((float)level*(1/150))*((((((float)status->int_/4)+((float)status->dex/8)+((float)status->luk/6))*((float)status_base_matk(status, level)))/22))));

 


 

status->def2 += (int) (((1+((float)level/2)+((float)status->vit/2))+(((float)status->str/4)+((float)status->agi/6)+((float)status->dex/5)+((float)status->int_/7)+((float)status->vit/4)+((float)status->luk/5)*((float)level*(1/100)))*((float)level*(1/100))));

 

 

 

 

status->mdef2 += (int) ((((float)status->int_/2)+((float)level/2))+(((float)status->str/25)+((float)status->agi/4)+((float)status->dex/25)+((float)status->int_/2)+((float)status->vit/6)+((float)status->luk/7))*((float)level*(1/90))*((float)level*(1/100)));

 

These works properly in the excel, but does not work properly in Ragnarok Online..

 

Why?

 

Can anyone help me solve this?

 

http://www.mediafire.com/?gf4dkfboukm2qp8 Link to Excel File.

 

Can anyone please help me?

 

I am truly desperate, I finally found the perfect formula I will be using, but it does not seem to work,

I cannot understand why..

 

Anyone please..?

Edited by gekigengar
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   2
  • Joined:  08/30/13
  • Last Seen:  

nvm, I found the mistake, Thanks for viewing anyways.

 

In C, (1/100) results 0.

 

No wonder it fails to work.

 

Thanks for not trying to help guys!.

 

For those who encounters the same prolem,

 

Put ((float)1/100)

Edited by gekigengar
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...