Register for your free account! | Forgot your password?

You last visited: Today at 09:10

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

 

[RELEASE] Needing STATs instead of LVL

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2017
Posts: 15
Received Thanks: 24
[RELEASE] Needing STATs instead of LVL

In Metin2 - like other MMORPGs - you can make items need status points to be equipped. I'll show you how.

Open locale_game.txt (in locale_xy)

Search for: TOOLTIP_ITEM_LIMIT_CON

Below you'll see the rest, you can set the way you want them to appear like

TOOLTIP_ITEM_LIMIT_CON Needed CON: %d
TOOLTIP_ITEM_LIMIT_DEX Nedded DEX: %d
TOOLTIP_ITEM_LIMIT_INT Needed INT: %d
TOOLTIP_ITEM_LIMIT_LEVEL %d. szinttől
TOOLTIP_ITEM_LIMIT_STR Needed STR: %d

Next, open uitooltip.py in root and search for: if item.LIMIT_LEVEL == limitType:

Modify this part to make it look something like this (take care of tabulators):
Code:
			if item.LIMIT_LEVEL == limitType:
				color = self.GetLimitTextLineColor(player.GetStatus(player.LEVEL), limitValue)
				self.AppendTextLine(localeInfo.TOOLTIP_ITEM_LIMIT_LEVEL % (limitValue), color)
			elif item.LIMIT_STR == limitType:
				color = self.GetLimitTextLineColor(player.GetStatus(player.ST), limitValue)
				self.AppendTextLine(localeInfo.TOOLTIP_ITEM_LIMIT_STR % (limitValue), color)
			elif item.LIMIT_DEX == limitType:
				color = self.GetLimitTextLineColor(player.GetStatus(player.DX), limitValue)
				self.AppendTextLine(localeInfo.TOOLTIP_ITEM_LIMIT_DEX % (limitValue), color)
			elif item.LIMIT_INT == limitType:
				color = self.GetLimitTextLineColor(player.GetStatus(player.IQ), limitValue)
				self.AppendTextLine(localeInfo.TOOLTIP_ITEM_LIMIT_INT % (limitValue), color)
			elif item.LIMIT_CON == limitType:
				color = self.GetLimitTextLineColor(player.GetStatus(player.HT), limitValue)
				self.AppendTextLine(localeInfo.TOOLTIP_ITEM_LIMIT_CON % (limitValue), color)
If you're using txt item proto, then write DEX, INT, CON or STR to limittype0 and the value to limitvalue0 like when you set the level limit.

If you're item_proto is in mysql, then the limitvalue values are:
2 - STR
3 - DEX
4 - INT
5 - CON



ericblck is offline  
Thanks
5 Users
Old   #2
 
elite*gold: 0
Join Date: Oct 2013
Posts: 114
Received Thanks: 189
Screen?


.T4Ump is offline  
Old   #3

 
elite*gold: 1
Join Date: May 2014
Posts: 1,568
Received Thanks: 609
Quote:
Originally Posted by ericblck View Post
In Metin2 - like other MMORPGs - you can make items need status points to be equipped. I'll show you how.

Open locale_game.txt (in locale_xy)

Search for: TOOLTIP_ITEM_LIMIT_CON

Below you'll see the rest, you can set the way you want them to appear like

TOOLTIP_ITEM_LIMIT_CON Needed CON: %d
TOOLTIP_ITEM_LIMIT_DEX Nedded DEX: %d
TOOLTIP_ITEM_LIMIT_INT Needed INT: %d
TOOLTIP_ITEM_LIMIT_LEVEL %d. szinttől
TOOLTIP_ITEM_LIMIT_STR Needed STR: %d

Next, open uitooltip.py in root and search for: if item.LIMIT_LEVEL == limitType:

Modify this part to make it look something like this (take care of tabulators):
Code:
			if item.LIMIT_LEVEL == limitType:
				color = self.GetLimitTextLineColor(player.GetStatus(player.LEVEL), limitValue)
				self.AppendTextLine(localeInfo.TOOLTIP_ITEM_LIMIT_LEVEL % (limitValue), color)
			elif item.LIMIT_STR == limitType:
				color = self.GetLimitTextLineColor(player.GetStatus(player.ST), limitValue)
				self.AppendTextLine(localeInfo.TOOLTIP_ITEM_LIMIT_STR % (limitValue), color)
			elif item.LIMIT_DEX == limitType:
				color = self.GetLimitTextLineColor(player.GetStatus(player.DX), limitValue)
				self.AppendTextLine(localeInfo.TOOLTIP_ITEM_LIMIT_DEX % (limitValue), color)
			elif item.LIMIT_INT == limitType:
				color = self.GetLimitTextLineColor(player.GetStatus(player.IQ), limitValue)
				self.AppendTextLine(localeInfo.TOOLTIP_ITEM_LIMIT_INT % (limitValue), color)
			elif item.LIMIT_CON == limitType:
				color = self.GetLimitTextLineColor(player.GetStatus(player.HT), limitValue)
				self.AppendTextLine(localeInfo.TOOLTIP_ITEM_LIMIT_CON % (limitValue), color)
If you're using txt item proto, then write DEX, INT, CON or STR to limittype0 and the value to limitvalue0 like when you set the level limit.

If you're item_proto is in mysql, then the limitvalue values are:
2 - STR
3 - DEX
4 - INT
5 - CON
Interesting.. Thanks
xSaito is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[RELEASE] Needing STATs instead of LVL
#wrong topic, please delete
0 Replies - Metin2 PServer - Discussions / Questions
needing cps crystal server needing a decent amount
need asap!
1 Replies - Conquer Online 2 Trading
[Release] FireLion&NightMareHorse Instead of The Fake Jade Hare
i have made a poll and those two mounts got the highest votes http://img220.imageshack.us/img220/8447/zzzzl.png FireLion
9 Replies - CO2 PServer Guides & Releases
Stats help --------------> stats calculator!
Hi. Can anyone post here any site or program for calculating the stats so if u put points u see how much hp otp and all u have and where u can put...
3 Replies - Kal Online
stats generator or stats calculator
For reborn classes is there calculator or stat generator, which will show what effect would happen if u put #s of attrubites in str,hp,mana, dex. ...
7 Replies - CO2 Main - Discussions / Questions



All times are GMT +1. The time now is 09:10.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.