No problem I just figured that out while I was developing my emulator long time ago ^^
Oh well, apparently I just picked a working one by chance, the others aren't exactly %5=0 long, I'll keep on trying to get the "missing" bits then, but the hint was already helping me
It might be not related to this section but either I am totally retarded or there's something weird going on (I tend to the first one).
Code:
DECLARE @val bigint = 450278816;
WHILE ( @val > 0 )
BEGIN
PRINT CONVERT(varchar(max),((@val%32)*100)/31)+'%'+CHAR(13)
SET @val = @val/32
END
Outputs it almost everytime correctly, BESIDES sometimes in a wrong order of the percentages OR on an EU 2Hands weapon 7 pseud-white stats.
I tried only accessories, misc gear pieces and a light staff out though ^^
Oh well, apparently I just picked a working one by chance, the others aren't exactly %5=0 long, I'll keep on trying to get the "missing" bits then, but the hint was already helping me
It might be not related to this section but either I am totally retarded or there's something weird going on (I tend to the first one).
Code:
DECLARE @val bigint = 450278816;
WHILE ( @val > 0 )
BEGIN
PRINT CONVERT(varchar(max),((@val%32)*100)/31)+'%'+CHAR(13)
SET @val = @val/32
END
Outputs it almost everytime correctly, BESIDES sometimes in a wrong order of the percentages OR on an EU 2Hands weapon 7 pseud-white stats.
I tried only accessories, misc gear pieces and a light staff out though ^^
The wrong order of the percentages is because the stats are not packed in the same order as they are displayed. If you take a look into SMC then you'll find the correct order of the stats:
Knowing the right order I made a very simple C# application to display the percentages correctly.
NOTE: This application identifies the type of the item by the amount of white stats (7 stats = weapon, 2 = stats accessory, ...) . This is actually a bad choice because equip & shield items both have 6 stats, you should rather identify it by its TypeIds. I was too lazy for that, so my application will display shield stats in the wrong order
//"<<" means left shift
stats = 0
stats = stats << 5 //This line is actually unnecessary because 0 << 5 is 0
stats = stats + magAbsorp
stats = stats << 5
stats = stats + phyAbsorp
//The result will be 1023, send this value to the client and you'll have a accessory
//with 100% white stats, no matter if it is a ring, earring or necklace
(...)
I for some reason feel that OR would be 'better' here than ADD (on stats + __Absorp). You're already working with bits.
(I'm talking about readability, not performance. Performance should be (about) equal.)
Maybe its not related to this topic more i think it is
I try parse the packet with the stats more i dont know if my parsing job is right anyone can check it for me ? because my values are not equal to the values in game
Code:
[byte] unknown(?? i think its the typeID)
[byte] unknown(??)
[byte] isFailed
[byte] item slot in inventory
[dword] 0 unknown(??)
[dword] itemID
[byte] plus value
[qword] item stats
[dword] durability
[byte] blues count
Loop
{
[dword] blue ID
[dword] value
}
Maybe its not related to this topic more i think it is
I try parse the packet with the stats more i dont know if my parsing job is right anyone can check it for me ? because my values are not equal to the values in game
Code:
[byte] unknown(?? i think its the typeID)
[byte] unknown(??)
[byte] isFailed
[byte] item slot in inventory
[dword] 0 unknown(??)
[dword] itemID
[byte] plus value
[qword] item stats
[dword] durability
[byte] blues count
Loop
{
[dword] blue ID
[dword] value
}
ye thats right, also when isfailed == 0x00
then 1 byte comes wihch will tell if its destroyed or failed.
if its destoryed == 0x01 then the packet ends
also after the blues parse the special item skills (like socket stones) will come
maybe if you post the whole packet and how you would parse it, then i can probably tell you why the values are not equal to the game
At least the most starts are the right values so i can finally finish my alchemy bot
Thanks for the help =)
The only thing i need right now is to know how i can redirect sro client with C# i found the loader in C# coded for RU sro more i dont understand how he did that redirect stuff
[Help]Editing Item Stats 12/21/2011 - Cabal Online - 2 Replies Someone know how to make something like this?:
Thor's Screenshots - Xfire
Thor's Screenshots - Xfire
If you know please share...dont matter if it works on private server or official server!
Changing item stats 01/06/2011 - CO2 Private Server - 3 Replies Hi all,
I got Kimo's source version 5095.
I want to change my item stats, I first thought that if i go into the database search for the item and then change it attack,defense etc etc it will change it in game to. So i went to cq_item and then searched for shield changed added some more defense and then saved after that I restarted the server so i want to look for the changes and i see that there are no changes. So my question is what am i doing wrong?
char stats, and item stats 01/27/2010 - Lineage 2 - 6 Replies hi all
today.. on a private server. i made a verry strange exp.....
some clannies called me to come to HS to help for pvp
as i came there i seen mass pvp arround 30 ppl
all hitted 1 person ................
a S dagger
items drago set and AS
i watched it....
he needed for everyone just 1 or 2 hits
beamed arround like hell..
Unequip item but still keep its stats 09/28/2006 - World of Warcraft - 7 Replies 1) Get the spider's kiss dagger.
2) Get 2 other weapons.
3) Equip the skd in your main hand.
4) Put one weapon in your off hand.
5) The thrid weapon in your inventory.
6) Switch the main weapon with your off hand (skd should be in your off hand now)
7) Switch your skd with your inventory weapon.
Cool You should have the bonus of your skd even though its in your inventory.