how to fix the attack in 5165

12/27/2009 13:02 Sport#1
hello guys ..i believe that's my first topic in the forum and i hope somene can help me ..

i have a problem in attack ..
for example , 1 hit to kill from a newbie to a high lvl +12 dude .

that makes no scence .. so if anyone could help me how to fix this .. i will be thankful ..

and one more thing ...
sometimes the ( CPS ) goes minus ( - ) in my inventory . and even i can buy stuff from any npc who sells items for cps ...
is that could be fixed ? .

thanks ...
12/27/2009 13:44 Nullable#2
Quote:
Originally Posted by Sport View Post
hello guys ..i believe that's my first topic in the forum and i hope somene can help me ..

i have a problem in attack ..
for example , 1 hit to kill from a newbie to a high lvl +12 dude .

that makes no scence .. so if anyone could help me how to fix this .. i will be thankful ..

and one more thing ...
sometimes the ( CPS ) goes minus ( - ) in my inventory . and even i can buy stuff from any npc who sells items for cps ...
is that could be fixed ? .

thanks ...
I don't know about attacks or so but i know that if an integer is -ve then it is a signed integer, change the CPs to unsigned :}
12/27/2009 13:56 Sport#3
more explaination please :S ... i dont get it from where do i change that .............:/ ..

it's -90,000 CPS in my inv.
for example i buy +12 item which cost 1kk , it goes -1,090,000 cps in my inv .. which is sucks ... so i actually buy it for free .. and keep on going ..

is there a fix for that ? :S , and how ..
12/27/2009 14:03 Nullable#4
In the source you are using there should be a class where variables for the character are declared as hit points, stamina, money and cps all you have to do is change the type of integer for cps which is probably int
change it from int to uint, if long then change it to ulong, but don't change everything, just the cps variable
12/27/2009 14:08 Sport#5
i'm confused . . . . . but i will try to find out where the hell is that type of integer ...
:S ..

i hope someone can help me with that attack issue too ...
12/27/2009 18:38 Sport#6
..... anyone can help me fix the attack problem in client V5165 ? ...
12/27/2009 19:30 .Guru#7
Quote:
Originally Posted by Sport View Post
..... anyone can help me fix the attack problem in client V5165 ? ...
make your values stop at 0.. so that you don't get a negative integer..

the attack problem is simple. your attack calculations are crap. same
as everyone elses. you need to re-calculate pretty much all attacks in
the 5165.
12/27/2009 19:41 Sport#8
Quote:
Originally Posted by Hepatitis B View Post
make your values stop at 0.. so that you don't get a negative integer..

the attack problem is simple. your attack calculations are crap. same
as everyone elses. you need to re-calculate pretty much all attacks in
the 5165.


you really enjoy when you make fun of everyone saying ( crap , stupid , dumb ) or whatever ...

well . thank you for your help , i really appreciate that ..

if you please can give me the correct calculation . and where to put them i will be thankful ...

or else . still thanks ..
12/27/2009 20:03 .Guru#9
Quote:
Originally Posted by Sport View Post
you really enjoy when you make fun of everyone saying ( crap , stupid , dumb ) or whatever ...

well . thank you for your help , i really appreciate that ..

if you please can give me the correct calculation . and where to put them i will be thankful ...

or else . still thanks ..
first of all, i was saying the SOURCES' calculations are crap. it's your downloaded source, so YOUR SOURCES' calculations are crap. simple.
you didn't mess with them, it's how they came. re-read my post before
you tell me i was attempting to insult someone. i was simply helping.

Quote:
Originally Posted by Hepatitis B View Post
make your values stop at 0.. so that you don't get a negative integer..

the attack problem is simple. your attack calculations are crap. same
as everyone elses. you need to re-calculate pretty much all attacks in
the 5165.
12/27/2009 20:11 Sport#10
Quote:
Originally Posted by Hepatitis B View Post
first of all, i was saying the SOURCES' calculations are crap. it's your downloaded source, so YOUR SOURCES' calculations are crap. simple.
you didn't mess with them, it's how they came. re-read my post before
you tell me i was attempting to insult someone. i was simply helping.

thank you . and i apologize .

:) ..
12/27/2009 20:13 ImmuneOne#11
No need to argue about such a thing and make a big fuss about it, I ask you both to stop and get over it.

Hepatitis B, would you consider next time better terms to describe something.
For instance,
' your attack calculations are crap.'
Could be 'The calculations in the source you downloaded aren't properly done.'
12/27/2009 20:16 Sport#12
Quote:
Originally Posted by ImmuneOne View Post
No need to argue about such a thing and make a big fuss about it, I ask you both to stop and get over it.

Hepatitis B, would you consider next time better terms to describe something.
For instance,
' your attack calculations are crap.'
Could be 'The calculations in the source you downloaded aren't properly done.'
i agree. .. and thank you ..

i apologized to him ... i just needed someone to tell me what to do exactly ..

like where to go and what file to open and such thing ...

so far i get only titles of what i have to do ... but not where and how . lol

thank you guys tho :) ...
12/27/2009 22:03 Arcо#13
For the negative cps problems.
I think Cps are defined as a int*Correct me if I'm wrong.
Try defining them as a uint.

Like for example:
If something is defined as an int, it has the ability to be anywhere between -2,147,483,648 and 2,147,483,647.
Now if it was defined as a uint it would only have the ability to go to 4,294,967,295 and not in the negatives.
Understand?


12/27/2009 22:25 Sport#14
ok .. but from WHERE to change that ? ?????????? ........

which file.cs ?? i'm totally lost
12/27/2009 22:27 Arcо#15
Quote:
Originally Posted by Sport View Post
ok .. but from WHERE to change that ? ?????????? ........

which file.cs ?? i'm totally lost

Go to the definition of CPs.
Right click the word CPs and then "Go to definition".