That's because you seem not to know how programming C++ works:
if (class_ == CLASS_DEATH_KNIGHT && !HasPermission(RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_HEROIC_CHARACTER)) { // speedup check for heroic class disabled case uint32 heroic_free_slots = sWorld->getIntConfig(CONFIG_HEROIC_CHARACTERS_PER_REALM); if (heroic_free_slots == 0) { data << uint8(CHAR_CREATE_UNIQUE_CLASS_LIMIT); SendPacket(&data); return; } // speedup check for heroic class disabled case uint32 req_level_for_heroic = sWorld->getIntConfig(CONFIG_CHARACTER_CREATING_MIN_LEVEL_FOR_HEROIC_CHARACTER); if (req_level_for_heroic > sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL)) { data << uint8(CHAR_CREATE_LEVEL_REQUIREMENT); SendPacket(&data); return; } }
CharacterHandler.cppCode: [Select] if (class_ == CLASS_DEATH_KNIGHT && !HasPermission(RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_HEROIC_CHARACTER)) { // speedup check for heroic class disabled case uint32 heroic_free_slots = sWorld->getIntConfig(CONFIG_HEROIC_CHARACTERS_PER_REALM); if (heroic_free_slots == 0) { data << uint8(CHAR_CREATE_UNIQUE_CLASS_LIMIT); SendPacket(&data); return; } // speedup check for heroic class disabled case uint32 req_level_for_heroic = sWorld->getIntConfig(CONFIG_CHARACTER_CREATING_MIN_LEVEL_FOR_HEROIC_CHARACTER); if (req_level_for_heroic > sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL)) { data << uint8(CHAR_CREATE_LEVEL_REQUIREMENT); SendPacket(&data); return; } }
I'm very noob in C++ butYou released in first post a code for trinity Core to use this classHow i can add it in my trinity core? D:
Quote from: "kingarturr"I'm very noob in C++ butYou released in first post a code for trinity Core to use this classHow i can add it in my trinity core? D:By adding it into the core ?! Write/copy the code into your source ?! Compile after that ?!If you don't even know how to approach programming, do some crash courses. That are basics that we shouldn't have to explain, at all.
Quote from: "kingarturr"I'm very noob in C++ butYou released in first post a code for trinity Core to use this classHow i can add it in my trinity core? D:It's not hard. It is a patch.Copy/Paste from pastebin to a notepad, and save as Necromancer.patch. Drop it into your source folder, and patch with Git.Git Bash....Patch -p1 > Necromancer.patchIf any rejects -> apply manually. (There should be none). If ya get really really lost in that process, hit me up on Skype, I"m always willing to help, time permitting.MFerrill1
Quote from: "Ascathos"Quote from: "kingarturr"I'm very noob in C++ butYou released in first post a code for trinity Core to use this classHow i can add it in my trinity core? D:By adding it into the core ?! Write/copy the code into your source ?! Compile after that ?!If you don't even know how to approach programming, do some crash courses. That are basics that we shouldn't have to explain, at all.Already done that, i posted it because the .patch file don't worked... Quote from: "mferrill"Quote from: "kingarturr"I'm very noob in C++ butYou released in first post a code for trinity Core to use this classHow i can add it in my trinity core? D:It's not hard. It is a patch.Copy/Paste from pastebin to a notepad, and save as Necromancer.patch. Drop it into your source folder, and patch with Git.Git Bash....Patch -p1 > Necromancer.patchIf any rejects -> apply manually. (There should be none). If ya get really really lost in that process, hit me up on Skype, I"m always willing to help, time permitting.MFerrill1Ty, already done it applying manually, because .patch file don't work i'm trying do add things like languages, spells etc.