Register for your free account! | Forgot your password?

You last visited: Today at 13:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[BugFix] Check Tax Display

Discussion on [BugFix] Check Tax Display within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
Pumaaa's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 569
Received Thanks: 695
[BugFix] Check Tax Display

In function

Code:
CWndSecretRoomChangeTaxRate::SetDefaultTax
Replace

Code:
m_nDefaultPurchaseTax	= (int)( CTax::GetInstance()->GetSalesTaxRate( nCont ) * 100 );
with

Code:
m_nDefaultPurchaseTax	= (int)( CTax::GetInstance()->GetPurchaseTaxRate( nCont ) * 100 );
Pumaaa is offline  
Thanks
5 Users
Old 05/28/2016, 19:21   #2
 
elite*gold: 0
Join Date: Apr 2013
Posts: 511
Received Thanks: 431
Quote:
Originally Posted by Pumaaa View Post
In function

Code:
CWndSecretRoomChangeTaxRate::SetDefaultTax
Replace

Code:
m_nDefaultPurchaseTax	= (int)( CTax::GetInstance()->GetSalesTaxRate( nCont ) * 100 );
with

Code:
m_nDefaultPurchaseTax	= (int)( CTax::GetInstance()->GetPurchaseTaxRate( nCont ) * 100 );
Bittttttteeeeeee

Quote:
m_nDefaultPurchaseTax = static_cast< int >( CTax::GetInstance()->GetPurchaseTaxRate( nCount ) * 100 );
#ThingsEpvpDoes
Wanetrain is offline  
Thanks
2 Users
Old 05/28/2016, 21:15   #3
 
elite*gold: 0
Join Date: May 2016
Posts: 3
Received Thanks: 0
Quote:
Originally Posted by Wanetrain View Post
Bittttttteeeeeee



#ThingsEpvpDoes
Kannst du das erklären?

M.E. ist ein C-Style Cast valides C++.
死神先生 is offline  
Old 05/28/2016, 22:40   #4
 
elite*gold: 0
Join Date: Jan 2015
Posts: 183
Received Thanks: 702
Quote:
Originally Posted by 死神先生 View Post
Kannst du das erklären?

M.E. ist ein C-Style Cast valides C++.
  • static_cast<>() gives you a compile time checking ability, C-Style cast doesn't.
  • static_cast<>() is more readable and can be spotted easily anywhere inside a C++ source code, C_Style cast is'nt.
  • Intentions are conveyed much better using C++ casts.
Blouflash is offline  
Old 05/28/2016, 23:25   #5
 
elite*gold: 0
Join Date: May 2016
Posts: 3
Received Thanks: 0
Quote:
Originally Posted by Blouflash View Post
  • static_cast<>() gives you a compile time checking ability, C-Style cast doesn't.
  • static_cast<>() is more readable and can be spotted easily anywhere inside a C++ source code, C_Style cast is'nt.
  • Intentions are conveyed much better using C++ casts.
Why do I need compile time checks for numeric casts? It won't cause runtime issues anyway.
That's a matter of opinion
That's a matter of opinion
死神先生 is offline  
Old 05/29/2016, 11:00   #6
 
macboyem07's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 239
Received Thanks: 33
after killing lucifer I change the tax but the tax not saving and also the occupied guild..
macboyem07 is offline  
Old 05/29/2016, 12:57   #7



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,177
Received Thanks: 14,475
Your title says you're a developer so look for yourself
Sedrika is offline  
Thanks
8 Users
Old 05/29/2016, 20:19   #8
 
Pumaaa's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 569
Received Thanks: 695
Quote:
Originally Posted by macboyem07 View Post
after killing lucifer I change the tax but the tax not saving and also the occupied guild..
Taxes are applied only when the LUA function succeeds the time check or a GM executes /tan. Which is only available if you enabled commands beyond /open for all languages not only korean.
Pumaaa is offline  
Thanks
2 Users
Old 05/31/2016, 04:21   #9
 
Pumaaa's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 569
Received Thanks: 695
Quote:
Originally Posted by Wanetrain View Post
Bittttttteeeeeee



#ThingsEpvpDoes
The return value and the tax value itself is a float and shouldn't be displayed as integer anyway. So best practice would be to rewrite the window to display the correct value.

But for a matter of simplicity i just included the basic "fix" so people can implement it without having to worry about further aspects.

Wether you use a C-Style cast or static is quite irrelevant here, the code design is still bad.

EDIT:
FML double post
Pumaaa is offline  
Old 05/31/2016, 10:59   #10
 
Mognakor's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 598
Received Thanks: 465
Quote:
Originally Posted by Pumaaa View Post
The return value and the tax value itself is a float and shouldn't be displayed as integer anyway. So best practice would be to rewrite the window to display the correct value.
Unless you can set the tax rate to the fraction of a percent, it doesn't matter if it's integer or float.
Mognakor is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
3.3.5a Mangos BugFix
01/07/2013 - WoW Private Server - 6 Replies
Hallo, Mir sind heute auf meinem Server drei Bugs aufgefallen einmal am Luftschift in der ICC stehen keine NPCS der globlin für die rakete und der andere dass es losfährt. Dann konnte mit meinem Pala keine Plattenrüsstung in Dala kaufen es wurde zwar Platte angezeigt aber ich konnte sie net tragen... Und dann auf der GM Insel waren keinerlei NPC`s Wie behebt man den solche Bugs wo genau muss man da suchen ?
2.4.3 Arcemu Bugfix
05/13/2010 - WoW Private Server - 0 Replies
Hallo liebe Community, ich suche eine Möglichkeit, dass auf meinem server man mehr als einen Buff haben kann. d.H er überschreibt den alten z.B ein Priester bufft sich Ausdauer und dananch Wille----> Ausdauer verschwindet Wille kommt. Leider weiß ich nicht wie das geht. Ist das eine .Lua oder .Sql File? Bitte um antwort würde auch ein nettes Danke und ein Thanks geben :) Gruß Lieblie
Wartungsarbeiten + Bugfix 29.07.08
07/30/2008 - Metin2 - 29 Replies
Metin2 Forum | News - Game | Wartungsarbeiten + Bugfix 29.07.08 was sagt ihr dazu -.-'



All times are GMT +1. The time now is 13:28.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.