Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 16:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Help know the purpose of this code

Discussion on Help know the purpose of this code within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2015
Posts: 2
Received Thanks: 0
Question Help know the purpose of this code

Hey elitepvpers community, i recently started working on metin2 source (I'm a noob, so if you have any tips i'm open) and i want to know the purpose of this code fragment that is in char_battle.cpp in game/src.

Code:
CSkillProto* pkSk = CSkillManager::instance().Get(SKILL_RESIST_PENETRATE);

if (NULL != pkSk)
{
  pkSk->SetPointVar("k", 1.0f * GetSkillPower(SKILL_RESIST_PENETRATE) / 100.0f); // I'm interested in this line

  iPenetratePct -= static_cast<int>(pkSk->kPointPoly.Eval());
}
is it replacing the variable "k" in the skill_proto in the database?, if yes, can i create my own variable ? let say "z" that only appear in warrior skill and pass any double value ?

My ultimate goal is to pass a new variable to the skill_proto to modify a skill output damage(this variable can have any double value).

Thanks in advance...

Edit: I found what i was looking for ( Creating a new variable for skill proto), it was in char_skill.cpp
mohammed1900 is offline  
Reply

Tags
code, source


Similar Threads Similar Threads
[PLEASE HELP] ppl lag on purpose
11/01/2015 - Fifa - 0 Replies
hello I play fifa 16 in pc, and I have a problem when the ball in in my opponent side the game work smoothly when I get the ball and trey to get close to the gk and score a goal the game became laggy and I cant do a shit until i lose the ball and the game start to be smooth again iam pretty sure that my opponent lag me on purpose, allot of people doing this how can i protect my self that my game will work smooth always and block these people ddos or what ever it will be? thanks
What Is the Use/Purpose of the Item Editors? HELP?
06/18/2013 - Archlord - 3 Replies
Hi everyone, I was looking through the hacks that are still working for archlord and I came across the "Item ini Editor" and the "Data Editor" What exactly are EACH of these for, and how would I go about using them? I looked on the threads of the program and I couldn't find anything on what they are actually used for in Archlord, nor how to use them. Here are the links in case anyone doesn't know what I'm talking about. Any enlightenment on this question would be appreciated. LINKS: ITEM...
All Purpose Self-Custom DDS Files
07/22/2007 - CO2 Weapon, Armor, Effects & Interface edits - 174 Replies
no questions in this thread. if you have questions, please post them HERE! Alrighty people, since I felt the first thread on .DDS files was bulky, messy, and not that good, I decided to make a new one. Though I have a few rules I would like followed. Please don't post in this thread, that will help keep it clean and easy for people to find anything they are looking for. Also, if you have questions, message me on AOL Instant Messenger under the screenname of: OMG A DBZ VIDEO or email me...



All times are GMT +1. The time now is 16:48.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.