Register for your free account! | Forgot your password?

You last visited: Today at 14:49

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

Advertisement



[Lib] Dice Fix

Discussion on [Lib] Dice Fix within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old 09/11/2013, 00:13   #16
 
Mijago's Avatar
 
elite*gold: 191
Join Date: May 2009
Posts: 1,214
Received Thanks: 2,594
Wenn du den Text kopierst werden Smiley's nicht mitkopiert
Mijago is offline  
Old 09/11/2013, 00:43   #17

 
vıo's Avatar
 
elite*gold: 0
The Black Market: 128/1/0
Join Date: Jun 2012
Posts: 1,768
Received Thanks: 356
Endlich isse's vollständig gefixxt, Danke dir vielmals :3
vıo is offline  
Old 09/11/2013, 01:49   #18
 
elite*gold: 0
Join Date: Jul 2009
Posts: 62
Received Thanks: 238
1. nicht wirklich ein fix gibt auch ein Grund:

es reicht völlig /dice -1 0 zu machen

keine Abfrage würde da greifen und er wird
durch 0 teilen weil du die einfachste
Mathematik Regel nicht beachtest -> Punkt vor strich.

2. ich hoffe mal das du nicht denkst das das die grenzen vom int sind

verbesser den code etwas und bedenke dabei das lediglich eine 0 den core zum Absturz bringt dabei ist es egal ob positiv od negativ
cryfact is offline  
Thanks
3 Users
Old 09/11/2013, 01:51   #19

 
.HC'iPwnage's Avatar
 
elite*gold: 170
Join Date: Mar 2013
Posts: 541
Received Thanks: 322
Thanks given . Good Job
.HC'iPwnage is offline  
Old 09/11/2013, 02:27   #20
 
Tyrar's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 1,637
Received Thanks: 1,119
PHP Code:
int number_ex(int a1int a2)
{
    
a1 &= 0x7fffffff;
    
a2 &= 0x7fffffff;

    
int v1 = (a1 a2 a2 a1);
    
int v2 = (a1 a2 a1 a2);

    return 
rand() % (v2 v1) + v1;

Ich bin der Meinung, dass diese Funktion ein wenig schöner ist
Tyrar is offline  
Thanks
3 Users
Old 09/11/2013, 11:29   #21
 
MrLibya's Avatar
 
elite*gold: 30
Join Date: Mar 2012
Posts: 517
Received Thanks: 339
Very Nice
But Also You Can Disable It From CMD
MrLibya is offline  
Old 09/11/2013, 12:20   #22
 
elite*gold: 0
Join Date: Sep 2013
Posts: 506
Received Thanks: 177
Nice,Danke.
.In¢redible´ is offline  
Old 09/11/2013, 12:41   #23
 
Fearn's Avatar
 
elite*gold: 108
Join Date: May 2013
Posts: 456
Received Thanks: 854
Danke iRemix!
Fearn is offline  
Old 09/11/2013, 14:34   #24
 
Zonni's Avatar
 
elite*gold: 100
Join Date: Feb 2008
Posts: 195
Received Thanks: 270
Quote:
Originally Posted by MrLibya View Post
Very Nice
But Also You Can Disable It From CMD
yea, we know at now 3 commands
maybe exist another one?
Zonni is offline  
Old 09/11/2013, 15:54   #25
 
miguelmig's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 113
Received Thanks: 44
Quote:
Originally Posted by Zonni View Post
yea, we know at now 3 commands
maybe exist another one?
What do you mean by that?
miguelmig is offline  
Old 09/11/2013, 15:57   #26

 
elite*gold: 0
Join Date: Feb 2008
Posts: 2,754
Received Thanks: 1,748
Quote:
Originally Posted by miguelmig View Post
What do you mean by that?
He means that there are many commands which use the number_ex function and there are also some alias for the dice function which could be also used to crash a server.
The only permanent fix is to fix the number_ex function and not to forbid any function which uses it.
Computerfreek is offline  
Thanks
1 User
Old 09/11/2013, 17:34   #27
 
xCPx's Avatar
 
elite*gold: 20
Join Date: Jun 2011
Posts: 2,897
Received Thanks: 3,336
Naja ...


Is ja nich so als gäbs das schon ewig...


bzw hatte es dann extra nochmal in kleinere Releases verlinkt:
xCPx is offline  
Old 09/12/2013, 08:53   #28

 
elite*gold: 0
Join Date: Jul 2009
Posts: 2,471
Received Thanks: 5,622
Code:
  int from2 = from;
  int to2 = to;

  if ( from > to )
  {
    to2 = from;
    from2 = to;
  }

  unsigned int div = to2 + 1 - from2;
  if (div==0)
	return 0;

  return from2 + thecore_random() % div;
done ...
.Alpha. is offline  
Old 09/12/2013, 09:03   #29
 
.Inya's Avatar
 
elite*gold: 50
Join Date: Mar 2013
Posts: 2,401
Received Thanks: 1,613
Vielen dank
.Inya is offline  
Reply

Tags
dice, dice fix, lib


Similar Threads Similar Threads
/dice
09/10/2013 - Metin2 Private Server - 2 Replies
give pls dif for game 2089M /dice -21474836482147483647
bug sa jin my dice
07/13/2011 - Grand Chase Philippines - 5 Replies
file:///D:/GrandChase/ScreenShot/GrandChase2011071 0_100513.JPG argggg mali huhuhuh pano ba mag lgay nang pic sa threads dahil may dice na lumalabas kaag na charge ako!
dice hack?
12/30/2009 - Grand Chase Hacks, Bots, Cheats & Exploits - 1 Replies
Closed#
Loot dice RNG?
10/07/2009 - General Gaming Discussion - 5 Replies
Assuming that the RNG for the loot roll is client-sided, is there a way to modify it so that it will never roll below, say, 80 or something like that?
Dice King?
10/01/2005 - Conquer Online 2 - 21 Replies
i downloaded the diceking hack.. but i have absolutly no idea on how to use it it has no instructions can anyone help?



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


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