Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 05:58

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

Advertisement



[C++] Functions for adding an effect on a costume

Discussion on [C++] Functions for adding an effect on a costume within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
VegaS ♆'s Avatar
 
elite*gold: 10
Join Date: Jul 2013
Posts: 93
Received Thanks: 416
Lightbulb [Mini-Release] Functions for adding an effect on a costume

#old
VegaS ♆ is offline  
Thanks
3 Users
Old 06/22/2016, 16:49   #2
 
xCPx's Avatar
 
elite*gold: 20
Join Date: Jun 2011
Posts: 2,901
Received Thanks: 3,342
Nice Idea, but why do you allways make things via thousand ifs?

why not simply with a foreach of a dictionary or so?
xCPx is offline  
Thanks
1 User
Old 06/23/2016, 04:44   #3
 
kstmr's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 95
Received Thanks: 29
first of all nice release and thx. about the coding as xCPx said c++ has loops,(arrays/maps),iteration think about using them. (you don't have to use c++11)
better idea for ppl who plan to recode it and make it more simple to use :
metin2 has cpython module that are easy to manage. go get them.
kstmr is offline  
Thanks
1 User
Old 06/23/2016, 11:14   #4
 
elite*gold: 0
Join Date: Jun 2016
Posts: 4
Received Thanks: 9
to be honest thats horrible

do you even know how enums work?

Code:
enum ECostumeEffectMsm
{
	VALUE_MSM_1 = 40032, // = vnum [ (M) -> 41003, (F) -> 41004]
	VALUE_MSM_2, // = vnum [ (M) -> 41005, (F) -> 41006]
	VALUE_MSM_3, // = vnum [ (M) -> 41007, (F) -> 41008]
	VALUE_MSM_4, // = vnum [ (M) -> 41009, (F) -> 41010]
	VALUE_MSM_5, // = vnum [ (M) -> 41011, (F) -> 41012]
	VALUE_MSM_6, // = vnum [ (M) -> 41013, (F) -> 41014]
	VALUE_MSM_7, // = vnum [ (M) -> 41015, (F) -> 41016]
	VALUE_MSM_8, // = vnum [ (M) -> 41017, (F) -> 41018]
	VALUE_MSM_9, // = vnum [ (M) -> 41019, (F) -> 41020]
	VALUE_MSM_10 // = vnum [ (M) -> 41021, (F) -> 41022]
};
you dont need to specify a value for everything
it automatically adds 1if the first value was specified (if not, it starts with 0)

also, theres a lack of mathematical knowledge

Code:
if(szMsm >= VALUE_MSM_1 && szMsm <= VALUE_MSM_10)
works as well
Remix v138 is offline  
Thanks
2 Users
Reply

Tags
c++, epvp, metin2, vegas


Similar Threads Similar Threads
One Costume All Effect [Chameleon]
01/08/2017 - Rohan - 17 Replies
http://www.elitepvpers.com/forum/attachment.php?at tachmentid=237673&stc=1&d=1436433400 Video : https://www.youtube.com/watch?v=MaML2pIt14c&f eature=youtu.be
Adding Effect without npc?
02/25/2013 - CO2 Private Server - 5 Replies
hey guys today i sow something that was just what i need for my project so basically middle of tc it was burning, but the edit was not using any npc, so my question is how can you add a edit in a map without using a npc? Screenshot by Lightshot as you can see i did 1 and i made it with npc, and i named it (.) but you can still see. so if you know a way please let me know thank you
Costume Effect
09/12/2010 - Dekaron Private Server - 0 Replies
Is there a way to give a costume a glow effect? (for the transup/awaken sets)
Adding an effect
08/30/2010 - CO2 Private Server - 3 Replies
ohai everyone, How do I add an effect? It's got C3 files and .dds files.. Screenshot: http://i35.tinypic.com/1gnlnq.png Anybody have an idea how I can add it so I can use a string packet to launch that effect?
[Help]adding effect
10/30/2008 - CO2 Private Server - 2 Replies
how can u add a effect on a command so like when u us /revive u get the revive effect and /kill you see an effect can someone tell me how to do this



All times are GMT +1. The time now is 05:58.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.