Register for your free account! | Forgot your password?

You last visited: Today at 11:49

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

Advertisement



Status

Discussion on Status within the Flyff Private Server forum part of the Flyff category.

Closed Thread
 
Old   #1
 
Magnus_'s Avatar
 
elite*gold: 0
Join Date: Dec 2013
Posts: 21
Received Thanks: 3
Status

Hi guys,

Can you please gimme the code for this? I want to make the status HP, for example if my HP is 10000 it will only put in the status HP: 10k/10k
Magnus_ is offline  
Old 12/25/2013, 12:13   #2
 
Serenity-.'s Avatar
 
elite*gold: 20
Join Date: Jun 2013
Posts: 445
Received Thanks: 76
Thats cooler than the full HP
Lumex Flyff had it like that
Serenity-. is offline  
Old 12/25/2013, 12:23   #3

 
elite*gold: 142
Join Date: Apr 2010
Posts: 859
Received Thanks: 428
ehrm it sounds very simple.... in php i would write it.
PHP Code:
if($hp >= 10000 AND $hp 20000){
 
$hp .= '10k';

afaik it is the same in C++ - only the variables are different


PS: Falls ich müll laber sagen^^ - Vom src wie so oft gesagt net viel Ahnung, deswegen assoziier ich das meiste mit PHP
©ross is offline  
Old 12/25/2013, 13:34   #4
 
elite*gold: 0
Join Date: Oct 2007
Posts: 491
Received Thanks: 732
Quote:
Originally Posted by ©ross View Post
ehrm it sounds very simple.... in php i would write it.
PHP Code:
if($hp >= 10000 AND $hp 20000){
 
$hp .= '10k';

afaik it is the same in C++ - only the variables are different


PS: Falls ich müll laber sagen^^ - Vom src wie so oft gesagt net viel Ahnung, deswegen assoziier ich das meiste mit PHP
It points in the right direction, buy what if my HP is 11000 or 15000 or over 1 million? Create a big if-else construct?

As same as ©ross I dont know anything about C++ buy a little bit about PHP. I guess, no flyff player will get more than 100 million HP, also it would be great, if there are one to two decimal places (10k HP is a little inaccurate, 10.2k would be better).
PHP Code:
$strHP PLAYERS_HP_AS_INTEGER;

if(
$strHP >= 1000000) {
 
$strHP round($strHP 10000001) . 'm';
}
elseif(
$strHP >= 1000) {
 
$strHP round($strHP 10001) . 'k';

But I dont know where you find the sourcecode for the HP status. Also I dont know, if its clever to use the same variable.
Marv!n is offline  
Thanks
1 User
Old 12/25/2013, 16:01   #5
 
Magnus_'s Avatar
 
elite*gold: 0
Join Date: Dec 2013
Posts: 21
Received Thanks: 3
Quote:
Originally Posted by Xxl3lubbs View Post
It points in the right direction, buy what if my HP is 11000 or 15000 or over 1 million? Create a big if-else construct?

As same as ©ross I dont know anything about C++ buy a little bit about PHP. I guess, no flyff player will get more than 100 million HP, also it would be great, if there are one to two decimal places (10k HP is a little inaccurate, 10.2k would be better).
PHP Code:
$strHP PLAYERS_HP_AS_INTEGER;

if(
$strHP >= 1000000) {
 
$strHP round($strHP 10000001) . 'm';
}
elseif(
$strHP >= 1000) {
 
$strHP round($strHP 10001) . 'k';

But I dont know where you find the sourcecode for the HP status. Also I dont know, if its clever to use the same variable.
Where should i put this code? Btw, thanks
Magnus_ is offline  
Old 12/25/2013, 18:07   #6
 
Serenity-.'s Avatar
 
elite*gold: 20
Join Date: Jun 2013
Posts: 445
Received Thanks: 76
Wäre nicht schlecht wenn das ganz released wird und genau beschrieben wird wo was rein muss usw.
Serenity-. is offline  
Old 12/25/2013, 18:18   #7
 
elite*gold: 0
Join Date: Sep 2013
Posts: 39
Received Thanks: 76
Wäre nicht schlecht wenn ihr mal selber was machen würdet.

Iban24 is offline  
Thanks
4 Users
Closed Thread




All times are GMT +1. The time now is 11:51.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.