Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 4Story
You last visited: Today at 15:45

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

Advertisement



[Source] New Colors (Bronce/Dark Waterblue and Light Ice)

Discussion on [Source] New Colors (Bronce/Dark Waterblue and Light Ice) within the 4Story forum part of the MMORPGs category.

Closed Thread
 
Old   #1
 
[DEV] Tiger's Avatar
 
elite*gold: 0
Join Date: Oct 2014
Posts: 27
Received Thanks: 11
Exclamation [Source] New Colors (Bronce/Dark Waterblue and Light Ice)

Hey there, here are some fragments of the source through which you can make a new effect.

Code:
if ( pItem -> m_bLevel >= MIN_GRADE_EFFECT_LEVEL && pItem -> m_bGradeEffect ==  0 ) 
					pItem -> m_bGradeEffect = BYTE ( rand ()%  ( IE_COUNT - 1 )  )  +  1 ;
Open NetCode.h (TProtocol) and look for the line
Code:
TITEMGRADEEFFECT_TYPE
Now add a new color

Code:
typedef  enum TITEMGRADEEFFECT_TYPE
 { 
	IE_NONE =  0 , 
	IE_SEA , 
	IE_FIRE , 
	IE_LIGHTING , 
	IE_ICE , 
	IE_BLACK , 
	IE_NEW1 , 
	IE_NEW2 , 
	IE_NEW3 , 
	IE_NEW4 ,
        IE_NEW5 ,
        IE_NEW6 ,
        IE_NEW7 ,
	IE_COUNT
}  * LPTITEMGRADEEFFECT_TYPE ;
Now open TClientItem.cpp (TClient) and look for the line
Code:
LPTITEMGRADEVISUAL CTClientItem :: GetGradeVISUAL ()
And just add new colors

Code:
switch ( m_bGradeEffect ) 
			{ 
			case IE_SEA : 
				wGradeSkin =  4 ; 
				break ; 
			case IE_FIRE : 
				wGradeSkin =  5 ; 
				break ; 
			case IE_LIGHTING : 
				wGradeSkin =  6 ; 
				break ; 
			case IE_ICE : 
				wGradeSkin =  7 ; 
				break ; 
			case IE_BLACK : 
				wGradeSkin =  8 ; 
				break ; 
			case IE_NEW1 : 
				wGradeSkin =  9 ; 
				break ; 
			case IE_NEW2 : 
				wGradeSkin =  10 ; 
				break ; 
			case IE_NEW3 : 
				wGradeSkin =  11 ; 
				break ; 
			case IE_NEW4 : 
				wGradeSkin =  12 ; 
				break ; 
			case IE_NEW5 : 
				wGradeSkin =  13 ; 
				break ; 
			case IE_NEW6 : 
				wGradeSkin =  14 ; 
				break ; 
			case IE_NEW7 : 
				wGradeSkin =  15 ; 
				break ; 
			default : 
				wGradeSkin = 0 ; 
			}
Save and compile. Profit

New ItemGradeVisual.tcd :
[DEV] Tiger is offline  
Thanks
3 Users
Old 03/17/2015, 15:37   #2
 
elite*gold: 215
Join Date: May 2011
Posts: 217
Received Thanks: 461
IDK for what is this, all can use that Luoo´s tutorial, and if they aren´t idiots, they can do it.. So it´s useless..
iJirkusCZ is offline  
Thanks
3 Users
Old 03/17/2015, 15:43   #3


 
AncientCompiler's Avatar
 
elite*gold: 1
Join Date: Jan 2013
Posts: 898
Received Thanks: 688


....
AncientCompiler is offline  
Thanks
2 Users
Old 03/17/2015, 16:26   #4
 
elite*gold: 0
Join Date: Oct 2010
Posts: 546
Received Thanks: 152
This post is useless, new colors was already post but thank's for new
julianjl is offline  
Old 03/17/2015, 16:46   #5
 
elite*gold: 215
Join Date: May 2011
Posts: 217
Received Thanks: 461
Just ,,developers" like julian, which can´t edit normal one can use this..
iJirkusCZ is offline  
Thanks
4 Users
Closed Thread


Similar Threads Similar Threads
[Source] New Colors
12/19/2014 - 4Story - 50 Replies
Hey, hier die kleinen Source Snippets zum adden der neuen Farben. if(pItem->m_bLevel >= MIN_GRADE_EFFECT_LEVEL && pItem->m_bGradeEffect == 0) pItem->m_bGradeEffect = BYTE(rand()% (IE_COUNT-1) ) + 1; Wie wir hier sehen wird der Enum Count genommen um einen Random Farbe zu finden. Also müssen wir nur das enum erweitern. Fangen wir an :D
Dark and Light
09/01/2010 - General Gaming Discussion - 0 Replies
Habe heute etwas sehr interessantes gefunden. Dark and Light soll wieder neu entstehen. Diesesmal nimmt Snail Game die Sache in die Hand. Eine neue Grafikengine bekommt das Spiel wohl, doch die ganzen alten guten Ansätze bleiben wohl erhalten. Hier die Quelle: http://www.darkandlight.com/forum/sh...ad.php?t=72 742 (Info ist aus dem älteren aber noch existierenden Forum)



All times are GMT +2. The time now is 15:45.


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