-
Activity
-
3
-
942
[40250] Reference Serverfile + Client + Src [15 Available Languages]
Cant be bad bcs they work -drop edits/proto bonuses (after i reset tables) and they are “saved” but like i said i dont want to reset them almost everytime i want to made custom bonuses of effect items like lolly and “itemshop rings” i know how to change description of items but like i said its all good when i change in item proto but in future if somehow i made a bad edit in smth else and i need to reset navicat tables i lose the progres of what i say and edit in proto.. -
942
[40250] Reference Serverfile + Client + Src [15 Available Languages]
Maybe your modifications are bad? Show examples. -
0
itemproto/connection
whenever i modify something i need to reset tables in navicat (account,common,player) bcs it gives me connection refused in putty, its ok but when i try to modify some items bonus or anything in item/mob proto working until THE NEXT CHANGE when i need to reset again the tables (bcs of connection refused in putty) and i lost all the progress/edits in protos. there is a fix or smth? [40k] -
942
[40250] Reference Serverfile + Client + Src [15 Available Languages]
@ TMP4whenever i modify something i need to reset tables in navicat (account,common,player) bcs it gives me connection refused in putty, its ok but when i try to modify some items bonus or anything in item/mob proto working until THE NEXT CHANGE when i need to reset again the tables (bcs of connection refused in putty) and i lost all the progress/edits in protos. there is a fix or smth? -
5
Can't Connect to server\Client shows not channels are active even tho they are \\\ Error Logs after compiling DB and Game Files \\
i do have a client source i compiled the client many times just like in the tutorials and everything was working now by the looks of it its a server\machine problem or whatever you all call it Oh also im using hamachi with this Like i said earlier i just want to play the game (alone) -
2
Dragon Soul Change Attribute
You are the best @Owsap as usual, thanks a lot !. Just a little suggestions, you didn't check the Dragon Flames item server side other than "IsDragonSoulRefineMaterial" but it's can be true with any DS material, so we can imagine a cheat sending other items if bypassing the client check bool IsDragonSoulRefineMaterial(LPITEM pItem) { if (pItem->GetType() != ITEM_MATERIAL) return false; return (pItem->GetSubType() == MATERIAL_DS_REFINE_NORMAL || pItem->GetSubType() == MATERIAL_DS_REFINE_BLESSED || pItem->GetSubType() == MATERIAL_DS_REFINE_HOLLY #if defined(__DS_CHANGE_ATTR__) || pItem->GetSubType() == MATERIAL_DS_CHANGE_ATTR #endif ); } I will suggest to add a little check also // Replace this line in DragonSoul.cpp DSManager::DoChangeAttribute else if (IsDragonSoulRefineMaterial(pItem)) // With subtype check else if (IsDragonSoulRefineMaterial(pItem) && pItem->GetSubType() == MATERIAL_DS_CHANGE_ATTR) // Or with vnum check else if (IsDragonSoulRefineMaterial(pItem) && (pItem->GetVnum() == 100700 || pItem->GetVnum() == 100701))- 1
-
-
5
Can't Connect to server\Client shows not channels are active even tho they are \\\ Error Logs after compiling DB and Game Files \\
What you mean with modifying the client correctly? Sounds like you dont even use a client source. -
4
-
-
Recently Browsing
- No registered users viewing this page.
Question
Shahin 110
Hello guys, is there anyone willing to share the Absorption % code from item.cpp ?
I have Miss-matching sash absorption for weapon and armor. It is not Precise. The min & Max values absorpted are not correct and i don't know how to correct it myself...
The code from item.cpp starts:
Thank you ^^
Link to comment
Share on other sites
Top Posters For This Question
18
14
1
1
Popular Days
Nov 4
11
Nov 5
8
Nov 6
8
Nov 2
3
Top Posters For This Question
Shahin 18 posts
Ikarus_ 14 posts
Xaleas 1 post
Jxxkub 1 post
Popular Days
Nov 4 2020
11 posts
Nov 5 2020
8 posts
Nov 6 2020
8 posts
Nov 2 2020
3 posts
Popular Posts
Ikarus_
Nope thanks, i really prefer to write here what i ve to explain you, because i don't really do this for you, i do this for the whole community. I prefer my explanation to be accessible to all who have your problem. I ve updated with the complete answer.
Ikarus_
double AttBonusMin = static_cast<double>(pkItemAbsorbed->alValues[3] + pkItemAbsorbed->alValues[5]); AttBonusMin *= acceItem->GetSocket(ACCE_ABSORPTION_SOCKET); AttBonusMin /= 100; AttBonusMin += 0.5; //todebug if(ch->IsPhase(PHASE_GAME)) ch->ChatPacket(CHAT_TYPE_INFO, "Going to add to your attack : min(%0.2f) max(%0.2f) ", AttBonusMin, AttBonusMax); *pdamMax += static_cast<int>(AttBonusMax); *pdamMin += static_cast<int>(AttBonusMin); They are
Ikarus_
the problem about the 29 vs 28 is just a rounding error. i m enoght sure you will solve it by making the 'viewed value' identical to the server side value (which is added as bonus) by copying from the c++ the formula and applying it to the python formula in uitooltip.py. long lAttGrade = pkItemAbsorbed->alValues[4] + pkItemAbsorbed->alValues[5]; if (pkItemAbsorbed->alValues[3] > pkItemAbsorbed->alValues[4]) lAttGrade = pkItemAbsorbed->alValues[3] + pkItemAbsorb
34 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now