|
You last visited: Today at 11:42
Advertisement
[Lib] Dice Fix
Discussion on [Lib] Dice Fix within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
09/11/2013, 00:13
|
#16
|
elite*gold: 191
Join Date: May 2009
Posts: 1,214
Received Thanks: 2,594
|
Wenn du den Text kopierst werden Smiley's nicht mitkopiert
|
|
|
09/11/2013, 00:43
|
#17
|
elite*gold: 0
Join Date: Jun 2012
Posts: 1,768
Received Thanks: 356
|
Endlich isse's vollständig gefixxt, Danke dir vielmals :3
|
|
|
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
|
|
|
09/11/2013, 01:51
|
#19
|
elite*gold: 170
Join Date: Mar 2013
Posts: 541
Received Thanks: 322
|
Thanks given . Good Job
|
|
|
09/11/2013, 02:27
|
#20
|
elite*gold: 0
Join Date: Oct 2008
Posts: 1,637
Received Thanks: 1,119
|
PHP Code:
int number_ex(int a1, int a2) { a1 &= 0x7fffffff; a2 &= 0x7fffffff; int v1 = (a1 > a2 ? a2 : a1); int v2 = (a1 > a2 ? a1 : a2); return rand() % (v2 + 1 - v1) + v1; }
Ich bin der Meinung, dass diese Funktion ein wenig schöner ist
|
|
|
09/11/2013, 11:29
|
#21
|
elite*gold: 30
Join Date: Mar 2012
Posts: 517
Received Thanks: 339
|
Very Nice
But Also You Can Disable It From CMD
|
|
|
09/11/2013, 12:20
|
#22
|
elite*gold: 0
Join Date: Sep 2013
Posts: 506
Received Thanks: 177
|
Nice,Danke.
|
|
|
09/11/2013, 12:41
|
#23
|
elite*gold: 108
Join Date: May 2013
Posts: 456
Received Thanks: 854
|
Danke iRemix!
|
|
|
09/11/2013, 14:34
|
#24
|
elite*gold: 100
Join Date: Feb 2008
Posts: 195
Received Thanks: 270
|
Quote:
Originally Posted by MrLibya
Very Nice
But Also You Can Disable It From CMD
|
yea, we know at now 3 commands
maybe exist another one?
|
|
|
09/11/2013, 15:54
|
#25
|
elite*gold: 0
Join Date: Dec 2009
Posts: 113
Received Thanks: 44
|
Quote:
Originally Posted by Zonni
yea, we know at now 3 commands
maybe exist another one?
|
What do you mean by that?
|
|
|
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
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.
|
|
|
09/11/2013, 17:34
|
#27
|
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:
|
|
|
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 ...
|
|
|
09/12/2013, 09:03
|
#29
|
elite*gold: 50
Join Date: Mar 2013
Posts: 2,401
Received Thanks: 1,613
|
Vielen dank
|
|
|
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 11:42.
|
|