Register for your free account! | Forgot your password?

You last visited: Today at 11:11

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


[C++] Increased gold

Discussion on [C++] Increased gold within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old 07/26/2016, 21:42   #31
 
elite*gold: 0
Join Date: May 2010
Posts: 86
Received Thanks: 16
Quote:
Originally Posted by .T4Ump View Post
you using novaline?
fixed



+ exp quest function > pc.give_exp2





- exp quest function > pc.del_exp3




amukaçi35 is offline  
Old 07/31/2016, 20:09   #32
 
elite*gold: 233
Join Date: Aug 2014
Posts: 1,417
Received Thanks: 308
Geiler ****!


.0x404´Err0xR is offline  
Old 08/04/2016, 21:32   #33
 
elite*gold: 0
Join Date: Oct 2013
Posts: 115
Received Thanks: 191
Quote:
Originally Posted by .0x404´Err0xR View Post
Geiler ****!
Whaat? Positive or negative?
.T4Ump is offline  
Old 08/06/2016, 12:22   #34
 
elite*gold: 100
Join Date: Jun 2009
Posts: 167
Received Thanks: 707
Quote:
Originally Posted by kstmr View Post
what you said is what a wise person would do.
what you said is what most of those retarded player hate.
Otherwise, people can implement the Won System, since it adds a new currency of it.

@
1) Be sure to check the signness of the type and use it
Little example to make it cuter:
Code:
#ifdef ENABLE_GOLD_LIMIT_INCREASE
typedef long long GoldType;
typedef signed long long sGoldType;
typedef unsigned long long uGoldType;
#else
typedef int GoldType;
typedef signed int sGoldType;
typedef unsigned int uGoldType;
#endif
2) Doing as you did, you will get quite a lot of format warnings (and also errors) related to %d/%u -> %lld

Little example to make it cuter:
Code:
#ifdef ENABLE_GOLD_LIMIT_INCREASE
#define "%lld" GOLD_FORMAT
#define "%lld" SGOLD_FORMAT
#define "%llu" UGOLD_FORMAT
#else
#define "%d" GOLD_FORMAT
#define "%d" SGOLD_FORMAT
#define "%u" UGOLD_FORMAT
#endif
3) This if you want to use long long, and int, instead of int64_t/int32_t, and the relative PRId32/PRId64.



4) There's no need to change all the points to 64bit and create infinite bugs, when you can simply create a separate 64bit point handling just for the gold.


lollo_9_1 is offline  
Thanks
5 Users
Old 08/06/2016, 23:46   #35
 
elite*gold: 0
Join Date: Oct 2013
Posts: 115
Received Thanks: 191
Quote:
Originally Posted by lollo_9_1 View Post
Otherwise, people can implement the Won System, since it adds a new currency of it.

@
1) Be sure to check the signness of the type and use it
Little example to make it cuter:
Code:
#ifdef ENABLE_GOLD_LIMIT_INCREASE
typedef long long GoldType;
typedef signed long long sGoldType;
typedef unsigned long long uGoldType;
#else
typedef int GoldType;
typedef signed int sGoldType;
typedef unsigned int uGoldType;
#endif
2) Doing as you did, you will get quite a lot of format warnings (and also errors) related to %d/%u -> %lld

Little example to make it cuter:
Code:
#ifdef ENABLE_GOLD_LIMIT_INCREASE
#define "%lld" GOLD_FORMAT
#define "%lld" SGOLD_FORMAT
#define "%llu" UGOLD_FORMAT
#else
#define "%d" GOLD_FORMAT
#define "%d" SGOLD_FORMAT
#define "%u" UGOLD_FORMAT
#endif
3) This if you want to use long long, and int, instead of int64_t/int32_t, and the relative PRId32/PRId64.



4) There's no need to change all the points to 64bit and create infinite bugs, when you can simply create a separate 64bit point handling just for the gold.
Hmmm, thanks for training.
.T4Ump is offline  
Old 08/07/2016, 14:47   #36
 
elite*gold: 233
Join Date: Aug 2014
Posts: 1,417
Received Thanks: 308
Quote:
Originally Posted by .T4Ump View Post
Whaat? Positive or negative?
Positive
.0x404´Err0xR is offline  
Old 10/12/2016, 00:44   #37
 
elite*gold: 100
Join Date: Dec 2014
Posts: 93
Received Thanks: 51
Quote:
Originally Posted by lollo_9_1 View Post
Otherwise, people can implement the Won System, since it adds a new currency of it.

@
1) Be sure to check the signness of the type and use it
Little example to make it cuter:
Code:
#ifdef ENABLE_GOLD_LIMIT_INCREASE
typedef long long GoldType;
typedef signed long long sGoldType;
typedef unsigned long long uGoldType;
#else
typedef int GoldType;
typedef signed int sGoldType;
typedef unsigned int uGoldType;
#endif
2) Doing as you did, you will get quite a lot of format warnings (and also errors) related to %d/%u -> %lld

Little example to make it cuter:
Code:
#ifdef ENABLE_GOLD_LIMIT_INCREASE
#define "%lld" GOLD_FORMAT
#define "%lld" SGOLD_FORMAT
#define "%llu" UGOLD_FORMAT
#else
#define "%d" GOLD_FORMAT
#define "%d" SGOLD_FORMAT
#define "%u" UGOLD_FORMAT
#endif
3) This if you want to use long long, and int, instead of int64_t/int32_t, and the relative PRId32/PRId64.



4) There's no need to change all the points to 64bit and create infinite bugs, when you can simply create a separate 64bit point handling just for the gold.

In 2016 people don't use typedef is deprecated and will be removed soon.

Code:
#ifdef ENABLE_GOLD_LIMIT_INCREASE
using GoldType = long long;
using sGoldType = signed long long;
using uGoldType = unsigned long long;
#else
using GoldType = int;
using sGoldType = signed int;
using uGoldType = unsigned int;
#endif
The using syntax has an advantage when used within templates. If you need the type abstraction, but also need to keep template parameter to be possible to be specified in future.
fcsk_aim is offline  
Old 10/12/2016, 00:54   #38
 
elite*gold: 0
Join Date: Dec 2014
Posts: 420
Received Thanks: 190
Quote:
Originally Posted by fcsk_aim View Post
The using syntax has an advantage when used within templates. If you need the type abstraction, but also need to keep template parameter to be possible to be specified in future.
nice c&p from 4xy on
_asm is offline  
Thanks
1 User
Old 10/12/2016, 01:13   #39
 
elite*gold: 100
Join Date: Dec 2014
Posts: 93
Received Thanks: 51
Quote:
Originally Posted by _asm View Post
nice c&p from 4xy on
This don't make any sense.
I can't explain it, i know how to use it but i can't explain in my words since my English is not perfect. Soo, i better copy & paste in this way is easy for other people to understand.

THAT WAS one of the shorter explain that i found. But not this is the point , typedef is deprecated and in 2016 we should use 2016 offer. This is what you SHOULD notice from my comment. Not copy paste.

Don't try to look smart. :d
fcsk_aim is offline  
Old 10/12/2016, 08:26   #40
 
elite*gold: 100
Join Date: Jun 2009
Posts: 167
Received Thanks: 707
Quote:
Originally Posted by _asm View Post
nice c&p from 4xy on
What is more funny is that "typedef" isn't deprecated at all in c/c++.
So the intervention of that special kid is totally useless and very misleading.

@, .T4Ump removed his tutorial, so his thread can be closed now.


lollo_9_1 is offline  
Thanks
3 Users
Reply



« EterNexus 1.0.3.1a Reup. | [Kori Client Fix] Lästiger Inventar/Client Bug. »

Similar Threads
vip rates increased by 15
09/24/2009 - SRO Private Server - 14 Replies
22.09.2009 VIP: EXP-rates increased by 1.5. Registration will be online within the next days. All users with 500% Speed scrolls got blocked 14 days. Owning those scrolls is forbidden. Users cooperating with hackers and bugusers may be punished as well. Today we deleted arround 200 illegal items. NicoS has left the team for owning illegal sun-items. now i think the rates are 30x on vip :X
Mountspeed increased [PTR]
08/13/2007 - WoW Exploits, Hacks, Tools & Macros - 9 Replies
If you want your mount to ride faster than normal, just mount, log out and log in again and your mountspeed is something like 60% faster =) Wenn ihr wollt das euer Mount schneller reiten soll, geht auf euer Mount, loggt aus und loggt wieder ein, und ihr reitet ca 60% schneller. ;>
Increased framerate!?
12/16/2005 - Conquer Online 2 - 3 Replies
hi all! I noticed a while back that sometimes the framerate of my co2 went from 31-32 up to 37-39 and i didnt find an explanation. Now i know, whenever i open a browser and load the conqueronline.com page and keep it open, the framerate increases and the game runs more smoothly. Can some1 confirm this?



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


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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