Register for your free account! | Forgot your password?

You last visited: Today at 01:08

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

Advertisement



Random regen X/Y generator [PYTHON]

Discussion on Random regen X/Y generator [PYTHON] within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
KilleRzZ™'s Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 35
Received Thanks: 42
Random regen X/Y generator [PYTHON]

Hello. i was bored so i made this i dont know if its useful but maybe someone will need it so i post it here :P
its python file so you need python :P


Download:


PS:Sorry for shity code i did it fast
KilleRzZ™ is offline  
Thanks
3 Users
Old 05/29/2017, 20:27   #2
 
elite*gold: 150
Join Date: Feb 2009
Posts: 643
Received Thanks: 613
And what if the place where the monster spawns is a blocked area, which makes it impossible to reach it?

MfG
Cyber
Cyber36 is offline  
Old 05/29/2017, 21:32   #3
 
VegaS ♆'s Avatar
 
elite*gold: 10
Join Date: Jul 2013
Posts: 93
Received Thanks: 416
_

Good idea, code not look very good but if is working should be fine, but about the "language option" you can use a dict not a list, and do it in this mode because looks better and is more understable for users to can translate it.

Code:
languageOptionDict = {
	"EN" : {
		'SELECT_REGEN_TYPE' : "Give regen type: (m = mob / g = group):",
		'SELECT_ID' : "Give id Mob/Group:",
		'SELECT_RESPAWN' : "Give Respawn Time(example: 1m, 15s, 1h): ",
		'SELECT_MAX_MOBS' : "How much regens of this monster:",
		'POS_MAX_NUM_X' : "Give maximum x of map:",
		'POS_MAX_NUM_Y' : "Give maximum y of map:",
		'SELECT_TYPE' : "Please put a number bigger than 25.",
		'FILE_EXIST' : "File regen.txt already exists. do you want to make a new one or write on the existing one? ",
		'SELECT_TYPE_READ' : "1 = new 2 = on this one:"
	},
	"GR" : {
		######################################################
	}
}
langDict = languageOptionDict['EN'] # input()
print (langDict['FILE_EXIST'])
VegaS ♆ is offline  
Thanks
3 Users
Old 05/30/2017, 00:13   #4
 
KilleRzZ™'s Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 35
Received Thanks: 42
Quote:
Originally Posted by VegaS ♆ View Post
_

Good idea, code not look very good but if is working should be fine, but about the "language option" you can use a dict not a list, and do it in this mode because looks better and is more understable for users to can translate it.

Code:
languageOptionDict = {
	"EN" : {
		'SELECT_REGEN_TYPE' : "Give regen type: (m = mob / g = group):",
		'SELECT_ID' : "Give id Mob/Group:",
		'SELECT_RESPAWN' : "Give Respawn Time(example: 1m, 15s, 1h): ",
		'SELECT_MAX_MOBS' : "How much regens of this monster:",
		'POS_MAX_NUM_X' : "Give maximum x of map:",
		'POS_MAX_NUM_Y' : "Give maximum y of map:",
		'SELECT_TYPE' : "Please put a number bigger than 25.",
		'FILE_EXIST' : "File regen.txt already exists. do you want to make a new one or write on the existing one? ",
		'SELECT_TYPE_READ' : "1 = new 2 = on this one:"
	},
	"GR" : {
		######################################################
	}
}
langDict = languageOptionDict['EN'] # input()
print (langDict['FILE_EXIST'])

Thanks vegas im still learning i know my coding still bad :P
KilleRzZ™ is offline  
Old 05/30/2017, 15:01   #5
 
elite*gold: 0
Join Date: Sep 2014
Posts: 44
Received Thanks: 5
you can add check func. of attr_block attr_water with read server_attr
Bekir Akdemir is offline  
Old 05/30/2017, 21:27   #6

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764


I would recommend to add some empty lines to your code. I don't think that you'll be able to keep track over that big block of code.
rollback is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[PYTHON]Ingame Regen Generator
07/23/2016 - Metin2 PServer Guides & Strategies - 6 Replies
Hallo Liebe Community, Ich hatte es schon ca. vor einer Woche erstellt. Und hab mir gedacht vielleicht kann es der ein oder andere Gebrauchen. Zum Release: Es ist ein InGame Regen Generator wie es im Titel steht. Man hat zwei möglichkeit wenn man keine Einstellung hat Speichert er einfach nur die Kordinaten wo man steht in die Textdatei die sich "Kordi.txt" nennt oder wenn man die Vorlage ausgefüllt hat und gespeichert hat in die Regen.txt . Es ist nichts großes und habe mir beim Design...
DC Random 8 -> 100 Gems + Random 3M --> 18 M Food + Random 3M --> 18M Gold
01/24/2015 - Dragon City - 25 Replies
DC Random 8 -> 100 Gems + Random 3M --> 18 M Food + Random 3M --> 18M Gold Dragon City Gem + Gold + Food +Exp
Java Color.rgb(random,random,random)
05/19/2014 - Java - 4 Replies
Guten Abend liebe Community, ich habe ein Anliegen. Wie ist es möglich bei der Methode : setTextColor(Color.rgb(0,0,0)); anstatt (0,0,0) 3 random Integer zu verwenden wenn ja wie? Ich habe es mal so probiert: final Random r = new Random();



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


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.